diff --git a/chrome/content/zotero/advancedSearch.js b/chrome/content/zotero/advancedSearch.js index 896829686b..4a921b51f3 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