From: Juergen Spitzmueller Date: Sun, 25 Feb 2024 07:10:23 +0000 (+0100) Subject: Consider biblatex author -> bookauthor mapping in preview X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=ce27f5beca427ddcc2d1d22f4bb2fffd6d91e970;p=features.git Consider biblatex author -> bookauthor mapping in preview --- diff --git a/src/BiblioInfo.cpp b/src/BiblioInfo.cpp index 2a2e8d476c..a9245c6a77 100644 --- a/src/BiblioInfo.cpp +++ b/src/BiblioInfo.cpp @@ -1295,6 +1295,10 @@ docstring BibTeXInfo::getValueForKey(string const & oldkey, Buffer const & buf, // to booktitle. Same for subtitle etc. if (biblatex && prefixIs(key, "book")) 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()) // success! break;