From 10f41547aa24a2652b40d2836557d384d293ba19 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 11 Feb 2021 01:46:18 -0500 Subject: [PATCH] Search for words separately in PDF reader notes pane --- chrome/content/zotero/contextPane.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/chrome/content/zotero/contextPane.js b/chrome/content/zotero/contextPane.js index 558ec3e8c8..d95f598c4c 100644 --- a/chrome/content/zotero/contextPane.js +++ b/chrome/content/zotero/contextPane.js @@ -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);