Exclude feeds from Quick Format searches

Addresses #1126
This commit is contained in:
Dan Stillman 2016-12-06 07:13:52 -05:00
parent 1d45f3d008
commit 99cd11e793

View file

@ -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;