Consider biblatex author -> bookauthor mapping in preview

This commit is contained in:
Juergen Spitzmueller 2024-02-25 08:10:23 +01:00
parent 43ee724fcf
commit ce27f5beca

View File

@ -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;