Search for words separately in PDF reader notes pane

This commit is contained in:
Dan Stillman 2021-02-11 01:46:18 -05:00
parent a1655e5643
commit 10f41547aa

View file

@ -447,7 +447,10 @@ var ZoteroContextPane = new function () {
s.addCondition('itemType', 'is', 'note');
s.addCondition('noChildren', 'true');
if (query) {
s.addCondition('note', 'contains', query, true);
let parts = Zotero.SearchConditions.parseSearchString(query);
for (let part of parts) {
s.addCondition('note', 'contains', part.text);
}
}
var notes = await s.search();
notes = Zotero.Items.get(notes);