mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 18:08:10 +00:00
Consider biblatex author -> bookauthor mapping in preview
This commit is contained in:
parent
43ee724fcf
commit
ce27f5beca
@ -1295,6 +1295,10 @@ docstring BibTeXInfo::getValueForKey(string const & oldkey, Buffer const & buf,
|
|||||||
// to booktitle. Same for subtitle etc.
|
// to booktitle. Same for subtitle etc.
|
||||||
if (biblatex && prefixIs(key, "book"))
|
if (biblatex && prefixIs(key, "book"))
|
||||||
ret = (*xr)[key.substr(4)];
|
ret = (*xr)[key.substr(4)];
|
||||||
|
// likewise, author is maped onto bookauthor
|
||||||
|
else if (biblatex && contains(key, ":bookauthor"))
|
||||||
|
ret = xr->getValueForKey(subst(key, "bookauthor", "author"),
|
||||||
|
buf, ci, xr_dummy, maxsize);
|
||||||
if (!ret.empty())
|
if (!ret.empty())
|
||||||
// success!
|
// success!
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user