From f548efde1543622870f1d06b784d822d7ba794c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adomas=20Ven=C4=8Dkauskas?= Date: Thu, 15 Feb 2024 08:47:50 +0200 Subject: [PATCH] Citation dialog: Allow citing the same item multiple times Removed as part of #3544 but it turns out there's good uses for it: https://forums.zotero.org/discussion/111831/multiple-citations-of-the-same-source The same item still won't appear multiple times in the Open Documents section, but you can look for it in your Library or Cited section --- chrome/content/zotero/integration/quickFormat.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/chrome/content/zotero/integration/quickFormat.js b/chrome/content/zotero/integration/quickFormat.js index 2c93f899cf..e82882841b 100644 --- a/chrome/content/zotero/integration/quickFormat.js +++ b/chrome/content/zotero/integration/quickFormat.js @@ -458,7 +458,7 @@ var Zotero_QuickFormat = new function () { } } } - return citedItemsMatchingSearch.filter(i => !options.citationItemIDs.has(i.cslItemID ? i.cslItemID : i.id)); + return citedItemsMatchingSearch; } } @@ -599,7 +599,6 @@ var Zotero_QuickFormat = new function () { } items.sort(Zotero_QuickFormat.citingNotes ? _noteSort : _itemSort); - items = items.filter(i => !options.citationItemIDs.has(i.cslItemID ? i.cslItemID : i.id)); // Split filtered items into selected and other bins let matchingSelectedItems = [];