From f5ce2d238eb20dcf39f1d3ef8712a45a343c65d0 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 9 Apr 2015 02:57:29 -0400 Subject: [PATCH] Fixes #546, Advanced search : match "any" is broken --- chrome/content/zotero/advancedSearch.js | 20 +---------------- .../zotero/xpcom/collectionTreeView.js | 15 ------------- chrome/content/zotero/xpcom/search.js | 22 +++++++++++++++++-- 3 files changed, 21 insertions(+), 36 deletions(-) diff --git a/chrome/content/zotero/advancedSearch.js b/chrome/content/zotero/advancedSearch.js index 896829686..4a921b51f 100644 --- a/chrome/content/zotero/advancedSearch.js +++ b/chrome/content/zotero/advancedSearch.js @@ -62,25 +62,7 @@ var ZoteroAdvancedSearch = new function() { isSearchMode: function() { return true; }, getItems: function () { var search = _searchBox.search.clone(); - - // Hack to create a condition for the search's library -- - // this logic should really go in the search itself instead of here - // and in collectionTreeView.js - var conditions = search.getSearchConditions(); - if (!conditions.some(function (condition) condition.condition == 'libraryID')) { - let libraryID = _searchBox.search.libraryID; - // TEMP: libraryIDInt - if (libraryID) { - search.addCondition('libraryID', 'is', libraryID); - } - else { - let groups = Zotero.Groups.getAll(); - for (let i=0; i