]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetBibitem.cpp
Routines for calculating numerical labels for BibTeX citations.
[lyx.git] / src / insets / InsetBibitem.cpp
index b5b4b44ca0952a82533b61b88f554654ecc0b346..5eb0d448b4f646ef93430fcf7a3dcbda698eb1f8 100644 (file)
@@ -254,7 +254,7 @@ void InsetBibitem::fillWithBibKeys(BiblioInfo & keys, InsetIterator const & it)
 
 
 // Update the counters of this inset and of its contents
-void InsetBibitem::updateLabels(ParIterator const & it
+void InsetBibitem::updateLabels(ParIterator const & it, bool)
 {
        BufferParams const & bp = buffer().masterBuffer()->params();
        Counters & counters = bp.documentClass().counters();
@@ -277,9 +277,9 @@ docstring InsetBibitem::xhtml(XHTMLStream & xs, OutputParams const &) const
        // need to use "name" anyway, eventually, because some browsers do not
        // handle jumping to ids. If we don't do that, though, we can just put the
        // id into the span tag.
-       string const attrs = "id='" + to_utf8(bibLabel()) + "'";
+       string const attrs = "id='" + to_utf8(getParam("key")) + "'";
        xs << CompTag("a", attrs);
-       xs << StartTag("span", "class='biblabel'");
+       xs << StartTag("span", "class='bibitemlabel'");
        xs << bibLabel();
        xs << EndTag("span");
        return docstring();