Don't copy external annotations to between libraries
This commit is contained in:
parent
9156d69110
commit
c6d03753fd
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue