From c6d03753fd8c4983a9473b984e65678d4d63b4fc Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 9 Feb 2022 07:08:18 -0500 Subject: [PATCH] Don't copy external annotations to between libraries --- chrome/content/zotero/xpcom/data/items.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/chrome/content/zotero/xpcom/data/items.js b/chrome/content/zotero/xpcom/data/items.js index 77ca9a37f1..332d0e1c98 100644 --- a/chrome/content/zotero/xpcom/data/items.js +++ b/chrome/content/zotero/xpcom/data/items.js @@ -896,6 +896,10 @@ Zotero.Items = function() { if (fromItem.isFileAttachment()) { let annotations = fromItem.getAnnotations(); for (let annotation of annotations) { + // Don't copy embedded PDF annotations + if (annotation.annotationIsExternal) { + continue; + } let newAnnotation = annotation.clone(toItem.libraryID); newAnnotation.parentItemID = toItem.id; // If there's no explicit author and we're copying from a group, set the author