]> git.lyx.org Git - features.git/commitdiff
Consider biblatex author -> bookauthor mapping in preview
authorJuergen Spitzmueller <spitz@lyx.org>
Sun, 25 Feb 2024 07:10:23 +0000 (08:10 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Sun, 25 Feb 2024 07:10:23 +0000 (08:10 +0100)
src/BiblioInfo.cpp

index 2a2e8d476cc327bf9ad31aa51126f873563a7789..a9245c6a77c6435dd2355bfe2b9570f2cf69a1bf 100644 (file)
@@ -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;