From 99cd11e7937c24bba3adef01e08f9e00ab2ea78a Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Tue, 6 Dec 2016 07:13:52 -0500 Subject: [PATCH] Exclude feeds from Quick Format searches Addresses #1126 --- chrome/content/zotero/integration/quickFormat.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index 8fdf7a96e..e1d8af526 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -270,6 +270,9 @@ var Zotero_QuickFormat = new function () { str = str.replace(/ (?:&|and) /g, " ", "g"); if(charRe.test(str)) { Zotero.debug("QuickFormat: QuickSearch: "+str); + // Exclude feeds + Zotero.Feeds.getAll() + .forEach(feed => s.addCondition("libraryID", "isNot", feed.libraryID)); s.addCondition("quicksearch-titleCreatorYear", "contains", str); s.addCondition("itemType", "isNot", "attachment"); haveConditions = true;