]> git.lyx.org Git - lyx.git/blobdiff - src/insets/InsetCitation.cpp
Strip et al. for citation search
[lyx.git] / 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