home *** CD-ROM | disk | FTP | other *** search
/ PC World 2008 April / PCWorld_2008-04_cd.bin / v cisle / ozo / zotero-1.0.3.xpi / chrome / zotero.jar / content / zotero / itemPane.xul < prev    next >
Encoding:
Extensible Markup Language  |  2007-08-15  |  5.1 KB  |  113 lines

  1. <?xml version="1.0"?>
  2. <!--
  3.     ***** BEGIN LICENSE BLOCK *****
  4.     
  5.     Copyright (c) 2006  Center for History and New Media
  6.                         George Mason University, Fairfax, Virginia, USA
  7.                         http://chnm.gmu.edu
  8.     
  9.     Licensed under the Educational Community License, Version 1.0 (the "License");
  10.     you may not use this file except in compliance with the License.
  11.     You may obtain a copy of the License at
  12.     
  13.     http://www.opensource.org/licenses/ecl1.php
  14.     
  15.     Unless required by applicable law or agreed to in writing, software
  16.     distributed under the License is distributed on an "AS IS" BASIS,
  17.     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  18.     See the License for the specific language governing permissions and
  19.     limitations under the License.
  20.     
  21.     ***** END LICENSE BLOCK *****
  22. -->
  23. <?xml-stylesheet href="chrome://zotero/skin/itemPane.css" type="text/css"?>
  24. <?xml-stylesheet href="chrome://zotero-platform/content/itemPane.css" type="text/css"?>
  25. <!DOCTYPE window SYSTEM "chrome://zotero/locale/zotero.dtd">
  26.  
  27. <overlay 
  28.     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
  29.     
  30.     <script src="itemPane.js"/>    
  31.     <deck id="zotero-view-item" flex="1" onselect="if (this.selectedIndex!==''){ ZoteroItemPane.loadPane(this.selectedIndex) }">
  32.             <scrollbox id="zotero-info" flex="1" orient="vertical" style="overflow:auto">
  33.                 <popupset>
  34.                     <popup id="zotero-creator-type-menu" position="after_start"
  35.                         oncommand="var otherFields = ZoteroItemPane.getCreatorFields(document.popupNode.parentNode);
  36.                             var typeID = event.explicitOriginalTarget.getAttribute('typeid');
  37.                             document.popupNode.setAttribute('label',
  38.                                 Zotero.getString('creatorTypes.' + Zotero.CreatorTypes.getName(typeID)) + ':');
  39.                             document.popupNode.setAttribute('typeid', typeID);
  40.                             ZoteroItemPane.modifyCreator(document.popupNode.getAttribute('fieldname').split('-')[1],
  41.                                 'typeID', typeID, otherFields)"/>
  42.                     <popup id="zotero-field-menu">
  43.                         <menu label="&zotero.item.textTransform;">
  44.                             <menupopup>
  45.                                 <menuitem label="&zotero.item.textTransform.lowercase;" class="menuitem-non-iconic"
  46.                                     oncommand="ZoteroItemPane.textTransform(document.popupNode, 'lower')"/>
  47.                                 <menuitem label="&zotero.item.textTransform.titlecase;" class="menuitem-non-iconic"
  48.                                     oncommand="ZoteroItemPane.textTransform(document.popupNode, 'title')"/>
  49.                             </menupopup>
  50.                         </menu>
  51.                     </popup>
  52.                 </popupset>
  53.                 <hbox id="zotero-editpane-go-buttons" align="center">
  54.                     <button id="zotero-go-to-url"
  55.                         onfocus="ZoteroItemPane.ensureElementIsVisible(this)"
  56.                         oncommand="ZoteroItemPane.onViewClick(this, event)" disabled="false"/>
  57.                     <button id="zotero-openurl" label="&zotero.toolbar.openURL.label;"
  58.                         tooltiptext="&zotero.toolbar.openURL.tooltip;"
  59.                         onfocus="ZoteroItemPane.ensureElementIsVisible(this)"
  60.                         oncommand="ZoteroItemPane.onOpenURLClick(event);"/>
  61.                 </hbox>
  62.                 <hbox align="center">
  63.                     <menulist id="zotero-editpane-type-menu" oncommand="ZoteroItemPane.changeTypeTo(this.value, this)" flex="1"
  64.                         onfocus="ZoteroItemPane.ensureElementIsVisible(this)"
  65.                         onkeypress="if (event.keyCode == event.DOM_VK_TAB){ if (!event.shiftKey) { ZoteroItemPane.focusFirstField('info'); event.preventDefault(); } }">
  66.                         <menupopup/>
  67.                     </menulist>
  68.                 </hbox>
  69.                 <grid flex="1">
  70.                     <columns>
  71.                         <column/>
  72.                         <column flex="1"/>
  73.                     </columns>
  74.                     <rows id="zotero-editpane-dynamic-fields" flex="1"/>
  75.                 </grid>
  76.             </scrollbox>
  77.             <vbox flex="1">
  78.                 <hbox align="center">
  79.                     <label id="zotero-editpane-notes-label"/>
  80.                     <button label="&zotero.item.add;" oncommand="ZoteroItemPane.addNote();"/>
  81.                 </hbox>
  82.                 <grid flex="1">
  83.                     <columns>
  84.                         <column flex="1"/>
  85.                         <column/>
  86.                     </columns>
  87.                     <rows id="zotero-editpane-dynamic-notes" flex="1"/>
  88.                 </grid>
  89.             </vbox>
  90.             <vbox flex="1">
  91.                 <hbox align="center">
  92.                     <label id="zotero-editpane-attachments-label"/>
  93.                     <button id="zotero-tb-item-attachments-add" type="menu" label="&zotero.item.add;">
  94.                         <menupopup>
  95.                             <menuitem class="menuitem-iconic" id="zotero-tb-item-attachments-link" label="&zotero.toolbar.attachment.linked;" oncommand="ZoteroItemPane.addAttachmentFromDialog(true);"/>
  96.                             <menuitem class="menuitem-iconic" id="zotero-tb-item-attachments-file" label="&zotero.toolbar.attachment.add;" oncommand="ZoteroItemPane.addAttachmentFromDialog();"/>
  97.                             <menuitem class="menuitem-iconic" id="zotero-tb-item-attachments-web-link" label="&zotero.toolbar.attachment.weblink;" oncommand="ZoteroItemPane.addAttachmentFromPage(true);"/>
  98.                             <menuitem class="menuitem-iconic" id="zotero-tb-item-attachments-snapshot" label="&zotero.toolbar.attachment.snapshot;" oncommand="ZoteroItemPane.addAttachmentFromPage();"/>
  99.                         </menupopup>
  100.                     </button>
  101.                 </hbox>
  102.                 <grid flex="1">
  103.                     <columns>
  104.                         <column flex="1"/>
  105.                         <column/>
  106.                     </columns>
  107.                     <rows id="zotero-editpane-dynamic-attachments" flex="1"/>
  108.                 </grid>
  109.             </vbox>
  110.             <tagsbox id="zotero-editpane-tags" flex="1"/>
  111.             <seealsobox id="zotero-editpane-related" flex="1"/>
  112.     </deck>
  113. </overlay>