mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 14:15:32 +00:00
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:
parent
c90b4fcb87
commit
fab1494f49
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user