mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-19 22:40:26 +00:00
DocBook: use the right key when generating bibiomixed.
This commit is contained in:
parent
0c0613327c
commit
5324566013
@ -6,9 +6,9 @@
|
|||||||
<section>
|
<section>
|
||||||
<title>Publications</title>
|
<title>Publications</title>
|
||||||
<bibliography>
|
<bibliography>
|
||||||
<bibliomixed id='1'>First Folio. </bibliomixed>
|
<bibliomixed xml:id='first'>First Folio. </bibliomixed>
|
||||||
<bibliomixed id='2'>Second Folio. </bibliomixed>
|
<bibliomixed xml:id='second'>Second Folio. </bibliomixed>
|
||||||
<bibliomixed id='3'>Third Folio. </bibliomixed>
|
<bibliomixed xml:id='third'>Third Folio. </bibliomixed>
|
||||||
</bibliography>
|
</bibliography>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
2277
autotests/export/docbook/bibliography_precooked_aastex.lyx
Normal file
2277
autotests/export/docbook/bibliography_precooked_aastex.lyx
Normal file
File diff suppressed because it is too large
Load Diff
1117
autotests/export/docbook/bibliography_precooked_aastex.xml
Normal file
1117
autotests/export/docbook/bibliography_precooked_aastex.xml
Normal file
File diff suppressed because it is too large
Load Diff
@ -346,7 +346,6 @@ void InsetBibitem::updateBuffer(ParIterator const & it, UpdateType utype, bool c
|
|||||||
void InsetBibitem::docbook(XMLStream &, OutputParams const &) const
|
void InsetBibitem::docbook(XMLStream &, OutputParams const &) const
|
||||||
{
|
{
|
||||||
// Nothing to do: everything is implemented in makeParagraphBibliography.
|
// Nothing to do: everything is implemented in makeParagraphBibliography.
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -348,7 +348,7 @@ ParagraphList::const_iterator makeParagraphBibliography(
|
|||||||
Inset const *ip = par->getInset(0);
|
Inset const *ip = par->getInset(0);
|
||||||
if (ip != nullptr && ip->lyxCode() == BIBITEM_CODE) {
|
if (ip != nullptr && ip->lyxCode() == BIBITEM_CODE) {
|
||||||
const auto * bibitem = dynamic_cast<const InsetBibitem*>(par->getInset(i));
|
const auto * bibitem = dynamic_cast<const InsetBibitem*>(par->getInset(i));
|
||||||
attr = from_utf8("xml:id='") + bibitem->bibLabel() + from_utf8("'");
|
attr = from_utf8("xml:id='") + bibitem->getParam("key") + from_utf8("'");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user