Skip to content

Commit

Permalink
Add back group library duplicate hack
Browse files Browse the repository at this point in the history
  • Loading branch information
egh committed Nov 23, 2017
1 parent 3eefdb1 commit 1e4d0ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions extension/content/modules/Core.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,11 @@ function findByEasyKey(key, zotero) {
} else {
let search = buildEasyKeySearch(new zotero.Search(), parsedKey);
return runSearch(search, zotero).then (function (items) {
if (items.length > 1) {
// hack to ignore group library duplicates
// remove all items not in the local library
items = items.filter(function (item) { return item.libraryID === zotero.Libraries.userLibraryID; });
}
if (items.length === 1) {
return knownEasyKeys[key] = items[0];
} else if (items.length > 1) {
Expand Down

0 comments on commit 1e4d0ee

Please sign in to comment.