+2002-04-22 Angus Leeming <a.leeming@ic.ac.uk>
+
+ * biblio.C (getAbbreviatedAuthor, getYear): Deal with sub-standard
+ BibTeX databases in a WYSIWYM way.
+
2002-04-22 Angus Leeming <a.leeming@ic.ac.uk>
* biblio.C (getAbbreviatedAuthor, getYear): Cæsar is dead. RIP; he was
if (author.empty())
author = parseBibTeX(it->second, "editor");
+ if (author.empty()) {
+ author = parseBibTeX(it->second, "key");
+ if (author.empty())
+ author = key;
+ return author;
+ }
+
vector<string> authors = getVectorFromString(author, "and");
if (!authors.empty()) {
}
string year = parseBibTeX(it->second, "year");
+ if (year.empty())
+ year = _("No year");
+
return year;
}