Output keys with bibliography, too.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32893 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2010-01-08 18:38:10 +00:00
parent c90b4fcb87
commit fab1494f49

View File

@ -931,11 +931,14 @@ docstring InsetBibtex::xhtml(XHTMLStream & xs, OutputParams const &) const
// The same name/id problem we have elsewhere. // The same name/id problem we have elsewhere.
string const attr = "id='" + to_utf8(entry.key()) + "'"; string const attr = "id='" + to_utf8(entry.key()) + "'";
xs << CompTag("a", attr); xs << CompTag("a", attr);
docstring label = entry.label(); docstring citekey = entry.citeKey();
if (label.empty()) if (citekey.empty()) {
label = entry.key(); citekey = entry.label();
if (citekey.empty())
citekey = entry.key();
}
xs << StartTag("span", "class='bibtexlabel'") xs << StartTag("span", "class='bibtexlabel'")
<< label << citekey
<< EndTag("span"); << EndTag("span");
// FIXME Right now, we are calling BibInfo::getInfo on the key, // FIXME Right now, we are calling BibInfo::getInfo on the key,
// which will give us all the cross-referenced info. But for every // which will give us all the cross-referenced info. But for every