From: Richard Heck Date: Fri, 8 Jan 2010 18:38:10 +0000 (+0000) Subject: Output keys with bibliography, too. X-Git-Tag: 2.0.0~4494 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=fab1494f49c0a25f46921db5dc142d7d05f17d17;p=lyx.git Output keys with bibliography, too. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32893 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/insets/InsetBibtex.cpp b/src/insets/InsetBibtex.cpp index 2c426c72f4..b4179a4f9e 100644 --- a/src/insets/InsetBibtex.cpp +++ b/src/insets/InsetBibtex.cpp @@ -931,11 +931,14 @@ docstring InsetBibtex::xhtml(XHTMLStream & xs, OutputParams const &) const // The same name/id problem we have elsewhere. string const attr = "id='" + to_utf8(entry.key()) + "'"; xs << CompTag("a", attr); - docstring label = entry.label(); - if (label.empty()) - label = entry.key(); + docstring citekey = entry.citeKey(); + if (citekey.empty()) { + citekey = entry.label(); + if (citekey.empty()) + citekey = entry.key(); + } xs << StartTag("span", "class='bibtexlabel'") - << label + << citekey << EndTag("span"); // FIXME Right now, we are calling BibInfo::getInfo on the key, // which will give us all the cross-referenced info. But for every