Skip to content

Commit

Permalink
Exclude feeds from Quick Format searches
Browse files Browse the repository at this point in the history
Addresses zotero#1126
  • Loading branch information
dstillman committed Dec 6, 2016
1 parent 1d45f3d commit 99cd11e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chrome/content/zotero/integration/quickFormat.js
Expand Up @@ -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;
Expand Down

0 comments on commit 99cd11e

Please sign in to comment.