itemPane.xul (6019B)
1 <?xml version="1.0"?> 2 <!-- 3 ***** BEGIN LICENSE BLOCK ***** 4 5 Copyright © 2009 Center for History and New Media 6 George Mason University, Fairfax, Virginia, USA 7 http://zotero.org 8 9 This file is part of Zotero. 10 11 Zotero is free software: you can redistribute it and/or modify 12 it under the terms of the GNU Affero General Public License as published by 13 the Free Software Foundation, either version 3 of the License, or 14 (at your option) any later version. 15 16 Zotero is distributed in the hope that it will be useful, 17 but WITHOUT ANY WARRANTY; without even the implied warranty of 18 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19 GNU Affero General Public License for more details. 20 21 You should have received a copy of the GNU Affero General Public License 22 along with Zotero. If not, see <http://www.gnu.org/licenses/>. 23 24 ***** END LICENSE BLOCK ***** 25 --> 26 <?xml-stylesheet href="chrome://zotero/skin/itemPane.css" type="text/css"?> 27 <?xml-stylesheet href="chrome://zotero-platform/content/itemPane.css" type="text/css"?> 28 29 <!DOCTYPE window SYSTEM "chrome://zotero/locale/zotero.dtd"> 30 31 <overlay xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> 32 <script src="include.js"/> 33 <script src="itemPane.js" type="application/javascript;version=1.8"/> 34 35 <vbox id="zotero-item-pane" zotero-persist="width height"> 36 <!-- My Publications --> 37 <hbox id="zotero-item-pane-top-buttons-my-publications" class="zotero-item-pane-top-buttons" hidden="true"> 38 <button id="zotero-item-collection-show-hide"/> 39 </hbox> 40 41 <!-- Trash --> 42 <hbox id="zotero-item-pane-top-buttons-trash" class="zotero-item-pane-top-buttons" hidden="true"> 43 <button id="zotero-item-restore-button" label="&zotero.items.menu.restoreToLibrary;" 44 oncommand="ZoteroPane_Local.restoreSelectedItems()"/> 45 <button id="zotero-item-delete-button" label="&zotero.item.deletePermanently;" 46 oncommand="ZoteroPane_Local.deleteSelectedItems()"/> 47 </hbox> 48 49 <!-- Feed --> 50 <hbox id="zotero-item-pane-top-buttons-feed" class="zotero-item-pane-top-buttons" hidden="true"> 51 <button id="zotero-feed-item-toggleRead-button" 52 oncommand="ZoteroPane_Local.toggleSelectedItemsRead();"/> 53 <button id="zotero-feed-item-addTo-button" type="menu-button" 54 oncommand="ZoteroItemPane.translateSelectedItems()"> 55 <menupopup id="zotero-item-addTo-menu" onpopupshowing="ZoteroItemPane.buildTranslateSelectContextMenu(event);"/> 56 </button> 57 </hbox> 58 59 <!-- Commons --> 60 <button id="zotero-item-show-original" label="Show Original" 61 oncommand="ZoteroPane_Local.showOriginalItem()" hidden="true"/> 62 63 <deck id="zotero-item-pane-content" selectedIndex="0" flex="1"> 64 <!-- Center label (for zero or multiple item selection) --> 65 <groupbox id="zotero-item-pane-groupbox" pack="center" align="center"> 66 <vbox id="zotero-item-pane-message-box"/> 67 </groupbox> 68 69 <!-- Regular item --> 70 <tabbox id="zotero-view-tabbox" flex="1" onselect="if (!ZoteroPane_Local.collectionsView.selection || event.originalTarget.localName != 'tabpanels') { return; }; ZoteroItemPane.viewItem(ZoteroPane_Local.getSelectedItems()[0], ZoteroPane_Local.collectionsView.editable ? 'edit' : 'view', this.selectedIndex)"> 71 <tabs id="zotero-editpane-tabs"> 72 <tab id="zotero-editpane-info-tab" label="&zotero.tabs.info.label;"/> 73 <tab id="zotero-editpane-notes-tab" label="&zotero.tabs.notes.label;"/> 74 <tab id="zotero-editpane-tags-tab" label="&zotero.tabs.tags.label;"/> 75 <tab id="zotero-editpane-related-tab" label="&zotero.tabs.related.label;"/> 76 </tabs> 77 <tabpanels id="zotero-view-item" flex="1"> 78 <tabpanel> 79 <zoteroitembox id="zotero-editpane-item-box" flex="1"/> 80 </tabpanel> 81 82 <tabpanel flex="1" orient="vertical"> 83 <vbox flex="1" id="zotero-editpane-notes" class="zotero-box"> 84 <hbox align="center"> 85 <label id="zotero-editpane-notes-label"/> 86 <button id="zotero-editpane-notes-add" label="&zotero.item.add;" oncommand="ZoteroItemPane.addNote(event.shiftKey);"/> 87 </hbox> 88 <grid flex="1"> 89 <columns> 90 <column flex="1"/> 91 <column/> 92 </columns> 93 <rows id="zotero-editpane-dynamic-notes" flex="1"/> 94 </grid> 95 </vbox> 96 </tabpanel> 97 98 <tabpanel> 99 <tagsbox id="zotero-editpane-tags" flex="1"/> 100 </tabpanel> 101 102 <tabpanel> 103 <relatedbox id="zotero-editpane-related" flex="1"/> 104 </tabpanel> 105 </tabpanels> 106 </tabbox> 107 108 <!-- Note item --> 109 <groupbox id="zotero-view-note" flex="1"> 110 <!-- 111 'onerror' handler crashes the app on a save error to prevent typing in notes 112 while they're not being saved 113 --> 114 <zoteronoteeditor id="zotero-note-editor" flex="1" notitle="1" 115 previousfocus="zotero-items-tree" 116 onerror="ZoteroPane.displayErrorMessage(); this.mode = 'view'"/> 117 <button id="zotero-view-note-button" 118 label="&zotero.notes.separate;" 119 oncommand="ZoteroItemPane.openNoteWindow()"/> 120 </groupbox> 121 122 <!-- Attachment item --> 123 <groupbox> 124 <zoteroattachmentbox id="zotero-attachment-box" flex="1"/> 125 </groupbox> 126 127 <!-- Duplicate merging --> 128 <vbox id="zotero-duplicates-merge-pane" flex="1"> 129 <groupbox> 130 <button id="zotero-duplicates-merge-button" oncommand="Zotero_Duplicates_Pane.merge()"/> 131 </groupbox> 132 133 <groupbox id="zotero-duplicates-merge-version-select"> 134 <description>&zotero.duplicatesMerge.versionSelect;</description> 135 <hbox> 136 <listbox id="zotero-duplicates-merge-original-date" onselect="Zotero_Duplicates_Pane.setMaster(this.selectedIndex)" rows="0"/> 137 </hbox> 138 </groupbox> 139 140 <groupbox flex="1"> 141 <description id="zotero-duplicates-merge-field-select">&zotero.duplicatesMerge.fieldSelect;</description> 142 <zoteroitembox id="zotero-duplicates-merge-item-box" flex="1"/> 143 </groupbox> 144 </vbox> 145 </deck> 146 </vbox> 147 </overlay>