From e0097df068299b759447b639dbb2e48df30b70e2 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Wed, 30 Mar 2022 13:58:59 -0400 Subject: [PATCH] Remove "Store Annotations in File" option (#2498) This is a confusing, bad option, which was already disabled in groups, and this removes it from personal libraries as well. People seem to be using it mainly because they think annotations are locked into Zotero if they don't, which is causing them to ask for this to be done automatically on every edit, which we don't do because it would result in constant file syncing and file conflicts [1]. We provide multiple export options for exporting PDFs with annotations, and people can use those when sharing a file with people who don't use Zotero. Otherwise, if storing annotations in the file is a priority, they can use an external reader that's not designed to be tightly integrated into Zotero. (As a rare hack, it's of course also possible to export the PDF with annotations, replace the original file, and import the annotations.) [1] https://www.zotero.org/support/kb/annotations_in_database --- .../content/zotero/standalone/standalone.js | 3 -- .../content/zotero/standalone/standalone.xul | 6 ---- chrome/content/zotero/xpcom/reader.js | 30 ++----------------- chrome/locale/en-US/zotero/zotero.dtd | 1 - 4 files changed, 3 insertions(+), 37 deletions(-) diff --git a/chrome/content/zotero/standalone/standalone.js b/chrome/content/zotero/standalone/standalone.js index 8d6d29ae8b..26ec8c7b42 100644 --- a/chrome/content/zotero/standalone/standalone.js +++ b/chrome/content/zotero/standalone/standalone.js @@ -166,13 +166,10 @@ const ZoteroStandalone = new function() { && !(item.deleted || item.parentItem && item.parentItem.deleted)) { let annotations = item.getAnnotations(); let canTransferFromPDF = annotations.find(x => x.annotationIsExternal); - let canTransferToPDF = annotations.find(x => !x.annotationIsExternal); this.updateMenuItemEnabled('menu_transferFromPDF', canTransferFromPDF); - this.updateMenuItemEnabled('menu_transferToPDF', canTransferToPDF); } else { this.updateMenuItemEnabled('menu_transferFromPDF', false); - this.updateMenuItemEnabled('menu_transferToPDF', false); } } diff --git a/chrome/content/zotero/standalone/standalone.xul b/chrome/content/zotero/standalone/standalone.xul index aac6d2ee37..ccc1482a20 100644 --- a/chrome/content/zotero/standalone/standalone.xul +++ b/chrome/content/zotero/standalone/standalone.xul @@ -160,12 +160,6 @@ label="&zotero.pdfReader.transferFromPDF;" oncommand="ZoteroStandalone.onReaderCmd('transferFromPDF')" /> - -