mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Strip et al. for citation search
This commit is contained in:
parent
307498894c
commit
eb294eadb5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user