diff --git a/chrome/content/zotero/standalone/standalone.js b/chrome/content/zotero/standalone/standalone.js
index 9819910149..4c0df56ecf 100644
--- a/chrome/content/zotero/standalone/standalone.js
+++ b/chrome/content/zotero/standalone/standalone.js
@@ -143,6 +143,46 @@ const ZoteroStandalone = new function() {
}
catch (e) {}
this.updateMenuItemEnabled('manage-attachments-menu', active);
+
+ // TEMP: Quick implementation
+ try {
+ let menuitem = document.getElementById('menu_export_files');
+ let sep = menuitem.nextSibling;
+
+ let zp = Zotero.getActiveZoteroPane();
+ if (zp) {
+ let numFiles = zp.getSelectedItems().reduce((num, item) => {
+ if (item.isPDFAttachment()) {
+ return num + 1;
+ }
+ if (item.isRegularItem()) {
+ return num + item.numPDFAttachments();
+ }
+ return num;
+ }, 0);
+ if (numFiles) {
+ menuitem.hidden = false;
+ sep.hidden = false;
+ if (numFiles == 1) {
+ menuitem.label = 'Export PDF…';
+ }
+ else {
+ menuitem.label = 'Export PDFs…';
+ }
+ }
+ else {
+ menuitem.hidden = true;
+ sep.hidden = true;
+ }
+ }
+ else {
+ menuitem.hidden = true;
+ sep.hidden = true;
+ }
+ }
+ catch (e) {
+ Zotero.logError(e);
+ }
};
diff --git a/chrome/content/zotero/standalone/standalone.xul b/chrome/content/zotero/standalone/standalone.xul
index 42434bb6aa..335fcbc378 100644
--- a/chrome/content/zotero/standalone/standalone.xul
+++ b/chrome/content/zotero/standalone/standalone.xul
@@ -147,7 +147,10 @@
command="cmd_zotero_newStandaloneNote"/>
-
+
+
+
+