commit 99cd11e7937c24bba3adef01e08f9e00ab2ea78a
parent 1d45f3d00826b21651cf9a18d5137a687a28f752
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 6 Dec 2016 07:13:52 -0500
Exclude feeds from Quick Format searches
Addresses #1126
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git 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;