Search for words separately in PDF reader notes pane
This commit is contained in:
parent
a1655e5643
commit
10f41547aa
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue