www

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | Submodules | README | LICENSE

commit c1af72fcd2e51a8de484830f071fc57e1aec51e0
parent ea20a4067f15c6975736daffe3d65e139ec5fd65
Author: Dan Stillman <dstillman@zotero.org>
Date:   Thu,  4 Aug 2011 06:00:57 +0000

Allow "Create Parent Item from Selected Item" for PDFs, at least until failed metadata retrieval does something more helpful


Diffstat:
Mchrome/content/zotero/zoteroPane.js | 13++++++-------
Mchrome/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 @@ -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 @@ -278,8 +278,8 @@ <menuitem oncommand="Zotero_File_Interface.bibliographyFromItems();"/> <menuitem oncommand="Zotero_Report_Interface.loadItemReport()"/> <menuseparator/> - <menuitem oncommand="ZoteroPane_Local.createParentItemsFromSelected();"/> <menuitem oncommand="Zotero_RecognizePDF.recognizeSelected();"/> + <menuitem oncommand="ZoteroPane_Local.createParentItemsFromSelected();"/> <menuitem oncommand="ZoteroPane_Local.renameSelectedAttachmentsFromParents()"/> <menuitem oncommand="ZoteroPane_Local.reindexItem();"/> </menupopup>