]> git.lyx.org Git - lyx.git/commitdiff
Output keys with bibliography, too.
authorRichard Heck <rgheck@comcast.net>
Fri, 8 Jan 2010 18:38:10 +0000 (18:38 +0000)
committerRichard Heck <rgheck@comcast.net>
Fri, 8 Jan 2010 18:38:10 +0000 (18:38 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32893 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/InsetBibtex.cpp

index 2c426c72f4e7f6ff74c8ac960dc3b13498a586ce..b4179a4f9e1bd320b1e952e14da960c2c3194e03 100644 (file)
@@ -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