]> git.lyx.org Git - features.git/commitdiff
Strip et al. for citation search
authorJuergen Spitzmueller <spitz@lyx.org>
Tue, 21 Feb 2023 07:12:59 +0000 (08:12 +0100)
committerJuergen Spitzmueller <spitz@lyx.org>
Tue, 21 Feb 2023 07:12:59 +0000 (08:12 +0100)
src/insets/InsetCitation.cpp

index 0deb02472b3163d4ca93677a8147a431948f4fa7..d878056cd6a3be952cde07254d49c0c5155a267d 100644 (file)
@@ -213,10 +213,11 @@ void InsetCitation::openCitation()
                CiteItem ci;
                titledata = bi.getInfo(kvar, buffer(), ci,
                                       from_ascii(lyxrc.citation_search_pattern));
-               // some cleanup: commas and " and ", as used in name lists,
+               // some cleanup: commas, " and " and " et al.", as used in name lists,
                // are not expected in file names
                titledata = subst(titledata, from_ascii(","), docstring());
                titledata = subst(titledata, from_ascii(" and "), from_ascii(" "));
+               titledata = subst(titledata, from_ascii(" et al."), docstring());
                bi.getLocators(kvar, doi, url, file);
                LYXERR(Debug::INSETS, "Locators: doi:" << doi << " url:"
                        << url << " file:" << file << " title data:" << titledata