From c1af72fcd2e51a8de484830f071fc57e1aec51e0 Mon Sep 17 00:00:00 2001 From: Dan Stillman Date: Thu, 4 Aug 2011 06:00:57 +0000 Subject: [PATCH] Allow "Create Parent Item from Selected Item" for PDFs, at least until failed metadata retrieval does something more helpful --- chrome/content/zotero/zoteroPane.js | 13 ++++++------- chrome/content/zotero/zoteroPane.xul | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/chrome/content/zotero/zoteroPane.js b/chrome/content/zotero/zoteroPane.js index 437d4b474..329bf1f14 100644 --- a/chrome/content/zotero/zoteroPane.js +++ b/chrome/content/zotero/zoteroPane.js @@ -2149,8 +2149,8 @@ var ZoteroPane = new function() 'createBib', 'loadReport', 'sep4', - 'createParent', 'recognizePDF', + 'createParent', 'renameAttachments', 'reindexItem' ]; @@ -2290,12 +2290,11 @@ var ZoteroPane = new function() show.push(m.recognizePDF); showSep4 = true; } - else { - // If not a PDF, allow parent item creation - if (item.isTopLevelItem()) { - show.push(m.createParent); - showSep4 = true; - } + + // Allow parent item creation for standalone attachments + if (item.isTopLevelItem()) { + show.push(m.createParent); + showSep4 = true; } // Attachment rename option diff --git a/chrome/content/zotero/zoteroPane.xul b/chrome/content/zotero/zoteroPane.xul index e36f0c506..b3ba8a837 100644 --- a/chrome/content/zotero/zoteroPane.xul +++ b/chrome/content/zotero/zoteroPane.xul @@ -278,8 +278,8 @@ - +