www

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

addCitationDialog.xul (13748B)


      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://global/skin/" type="text/css"?>
     27 <?xml-stylesheet href="chrome://global/skin/dialog.css" type="text/css"?>
     28 <?xml-stylesheet href="chrome://zotero/skin/zotero.css" type="text/css"?>
     29 <?xml-stylesheet href="chrome://zotero/skin/overlay.css" type="text/css"?>
     30 <?xml-stylesheet href="chrome://zotero-platform/content/overlay.css" type="text/css"?>
     31 <?xml-stylesheet href="chrome://zotero/skin/integration.css" type="text/css"?>
     32 <!DOCTYPE window SYSTEM "chrome://zotero/locale/zotero.dtd">
     33 
     34 <dialog
     35 	id="zotero-add-citation-dialog"
     36 	windowtype="zotero:item-selector"
     37 	orient="vertical"
     38 	title="&zotero.integration.addEditCitation.title;"
     39 	width="600" height="450"
     40 	onload="Zotero_Citation_Dialog.load();"
     41 	onunload="doUnload();"
     42 	ondialogaccept="return Zotero_Citation_Dialog.accept();"
     43 	ondialogcancel="Zotero_Citation_Dialog.cancel();"
     44 	onclose="Zotero_Citation_Dialog.cancel();"
     45 	xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
     46 	persist="screenX screenY width height"
     47 	resizable="true"
     48 	buttons="extra1,extra2,accept,cancel"
     49 	ondialogextra2="Zotero_Citation_Dialog.toggleEditor()"
     50 	ondialogextra1="Zotero_Citation_Dialog.toggleMultipleSources()">
     51 	
     52 	<script src="../include.js"/>
     53 	<script src="../selectItemsDialog.js"/>
     54 	<script src="addCitationDialog.js"/>
     55 	
     56 	<vbox id="zotero-select-items-container" flex="1">
     57 		<vbox flex="1">
     58 			<hbox flex="1">
     59 				<vbox align="stretch" flex="1">
     60 					<hbox align="center" pack="end">
     61 						<textbox id="zotero-tb-search" type="search" timeout="250" oncommand="onSearch()" tabindex="1"
     62 								onkeypress="if(event.keyCode == event.DOM_VK_ESCAPE) { if (this.value == '') { cancelDialog(); return false; } this.value = ''; onSearch(); return false; } return true;"/>
     63 					</hbox>
     64 					<hbox flex="1" style="margin-top: 5px">
     65 						<tree id="zotero-collections-tree"
     66 							style="width: 200px;" hidecolumnpicker="true" seltype="cell"
     67 							onselect="onCollectionSelected();">
     68 							<treecols>
     69 								<treecol
     70 									id="zotero-collections-name-column"
     71 									flex="1"
     72 									primary="true"
     73 									hideheader="true"/>
     74 							</treecols>
     75 							<treechildren/>
     76 						</tree>
     77 						
     78 						<deck id="zotero-items-pane-content" selectedIndex="0" flex="1">
     79 							<tree id="zotero-items-tree"
     80 									enableColumnDrag="true" flex="1" seltype="single"
     81 									onselect="onItemSelected(); Zotero_Citation_Dialog.treeItemSelected();">
     82 								<treecols id="zotero-items-columns-header">
     83 									<treecol
     84 										id="zotero-items-column-title" primary="true"
     85 										label="&zotero.items.title_column;"
     86 										flex="4" persist="width ordinal hidden sortActive sortDirection"/>
     87 									<splitter class="tree-splitter"/>
     88 									<treecol
     89 										id="zotero-items-column-firstCreator"
     90 										label="&zotero.items.creator_column;"
     91 										flex="1" persist="width ordinal hidden sortActive sortDirection"/>
     92 									<splitter class="tree-splitter"/>
     93 									<treecol
     94 										id="zotero-items-column-itemType" hidden="true"
     95 										label="&zotero.items.type_column;"
     96 										width="40" persist="width ordinal hidden sortActive sortDirection"/>
     97 									<splitter class="tree-splitter"/>
     98 									<treecol
     99 										id="zotero-items-column-date" hidden="true"
    100 										label="&zotero.items.date_column;"
    101 										flex="1" persist="width ordinal hidden sortActive sortDirection"/>
    102 									<splitter class="tree-splitter"/>
    103 									<treecol
    104 										id="zotero-items-column-year" hidden="true"
    105 										label="&zotero.items.year_column;"
    106 										flex="1" persist="width ordinal hidden sortActive sortDirection"/>
    107 									<splitter class="tree-splitter"/>
    108 									<treecol
    109 										id="zotero-items-column-publisher" hidden="true"
    110 										label="&zotero.items.publisher_column;"
    111 										flex="1" persist="width ordinal hidden sortActive sortDirection"/>
    112 									<splitter class="tree-splitter"/>
    113 									<treecol
    114 										id="zotero-items-column-publicationTitle" hidden="true"
    115 										label="&zotero.items.publication_column;"
    116 										flex="1" persist="width ordinal hidden sortActive sortDirection"/>
    117 									<splitter class="tree-splitter"/>
    118 									<treecol
    119 										id="zotero-items-column-journalAbbreviation" hidden="true"
    120 										label="&zotero.items.journalAbbr_column;"
    121 										flex="1" persist="width ordinal hidden sortActive sortDirection"/>
    122 									<splitter class="tree-splitter"/>
    123 									<treecol
    124 										id="zotero-items-column-language" hidden="true"
    125 										label="&zotero.items.language_column;"
    126 										flex="1" persist="width ordinal hidden sortActive sortDirection"/>
    127 									<splitter class="tree-splitter"/>
    128 									<treecol
    129 										id="zotero-items-column-accessDate" hidden="true"
    130 										label="&zotero.items.accessDate_column;"
    131 										flex="1" persist="width ordinal hidden sortActive sortDirection"/>
    132 									<splitter class="tree-splitter"/>
    133 									<treecol
    134 										id="zotero-items-column-libraryCatalog" hidden="true"
    135 										label="&zotero.items.libraryCatalog_column;"
    136 										flex="1" persist="width ordinal hidden sortActive sortDirection"/>
    137 									<splitter class="tree-splitter"/>
    138 									<treecol
    139 										id="zotero-items-column-callNumber" hidden="true"
    140 										submenu="true"
    141 										label="&zotero.items.callNumber_column;"
    142 										flex="1" persist="width ordinal hidden sortActive sortDirection"/>
    143 									<splitter class="tree-splitter"/>
    144 									<treecol
    145 										id="zotero-items-column-rights" hidden="true"
    146 										submenu="true"
    147 										label="&zotero.items.rights_column;"
    148 										flex="1" persist="width ordinal hidden sortActive sortDirection"/>
    149 									<splitter class="tree-splitter"/>
    150 									<treecol
    151 										id="zotero-items-column-dateAdded" hidden="true"
    152 										label="&zotero.items.dateAdded_column;"
    153 										flex="1" persist="width ordinal hidden sortActive sortDirection"/>
    154 									<splitter class="tree-splitter"/>
    155 									<treecol
    156 										id="zotero-items-column-dateModified" hidden="true"
    157 										label="&zotero.items.dateModified_column;"
    158 										flex="1" persist="width ordinal hidden sortActive sortDirection"/>
    159 									<splitter class="tree-splitter"/>
    160 									<treecol
    161 										id="zotero-items-column-archive" hidden="true"
    162 										submenu="true"
    163 										label="&zotero.items.archive_column;"
    164 										flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
    165 									<splitter class="tree-splitter"/>
    166 									<treecol
    167 										id="zotero-items-column-archiveLocation" hidden="true"
    168 										submenu="true"
    169 										label="&zotero.items.archiveLocation_column;"
    170 										flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
    171 									<splitter class="tree-splitter"/>
    172 									<treecol
    173 										id="zotero-items-column-place" hidden="true"
    174 										submenu="true"
    175 										label="&zotero.items.place_column;"
    176 										flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
    177 									<splitter class="tree-splitter"/>
    178 									<treecol
    179 										id="zotero-items-column-volume" hidden="true"
    180 										submenu="true"
    181 										label="&zotero.items.volume_column;"
    182 										flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
    183 									<splitter class="tree-splitter"/>
    184 									<treecol
    185 										id="zotero-items-column-edition" hidden="true"
    186 										submenu="true"
    187 										label="&zotero.items.edition_column;"
    188 										flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
    189 									<splitter class="tree-splitter"/>
    190 									<treecol
    191 										id="zotero-items-column-pages" hidden="true"
    192 										submenu="true"
    193 										label="&zotero.items.pages_column;"
    194 										flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
    195 									<splitter class="tree-splitter"/>
    196 									<treecol
    197 										id="zotero-items-column-issue" hidden="true"
    198 										submenu="true"
    199 										label="&zotero.items.issue_column;"
    200 										flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
    201 									<splitter class="tree-splitter"/>
    202 									<treecol
    203 										id="zotero-items-column-series" hidden="true"
    204 										submenu="true"
    205 										label="&zotero.items.series_column;"
    206 										flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
    207 									<splitter class="tree-splitter"/>
    208 									<treecol
    209 										id="zotero-items-column-seriesTitle" hidden="true"
    210 										submenu="true"
    211 										label="&zotero.items.seriesTitle_column;"
    212 										flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
    213 									<splitter class="tree-splitter"/>
    214 									<treecol
    215 										id="zotero-items-column-court" hidden="true"
    216 										submenu="true"
    217 										label="&zotero.items.court_column;"
    218 										flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
    219 									<splitter class="tree-splitter"/>
    220 									<treecol
    221 										id="zotero-items-column-medium" hidden="true"
    222 										submenu="true"
    223 										label="&zotero.items.medium_column;"
    224 										flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
    225 									<splitter class="tree-splitter"/>
    226 									<treecol
    227 										id="zotero-items-column-genre" hidden="true"
    228 										submenu="true"
    229 										label="&zotero.items.genre_column;"
    230 										flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
    231 									<splitter class="tree-splitter"/>
    232 									<treecol
    233 										id="zotero-items-column-system" hidden="true"
    234 										submenu="true"
    235 										label="&zotero.items.system_column;"
    236 										flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
    237 									<splitter class="tree-splitter"/>
    238 									<treecol
    239 										id="zotero-items-column-extra" hidden="true"
    240 										label="&zotero.items.extra_column;"
    241 										flex="1" zotero-persist="width ordinal hidden sortActive sortDirection"/>
    242 								</treecols>
    243 								<treechildren/>
    244 							</tree>
    245 						
    246 							<!-- Label for displaying messages when items pane is hidden
    247 							 (e.g. "Advanced search mode — press Enter to search.")-->
    248 							<vbox id="zotero-items-pane-message-box" pack="center" align="center"/>
    249 						</deck>
    250 					</hbox>
    251 				</vbox>
    252 						
    253 				<hbox hidden="true" id="multiple-sources" align="stretch">
    254 					<vbox align="center" pack="center" id="citation-buttons">
    255 						<toolbarbutton id="up" oncommand="Zotero_Citation_Dialog.up()" disabled="true"/>
    256 						<toolbarbutton id="add" oncommand="Zotero_Citation_Dialog.add()" disabled="true"/>
    257 						<toolbarbutton id="remove" oncommand="Zotero_Citation_Dialog.remove()" disabled="true"/>
    258 						<toolbarbutton id="down" oncommand="Zotero_Citation_Dialog.down()" disabled="true"/>
    259 					</vbox>
    260 					<vbox align="left">
    261 						<checkbox id="keepSorted" hidden="true" checked="false" oncommand="Zotero_Citation_Dialog.citationSortUnsort()" label="&zotero.citation.keepSorted.label;"/>
    262 						<listbox id="citation-list" flex="1" align="stretch" seltype="single"
    263 							onselect="Zotero_Citation_Dialog.listItemSelected();"/>
    264 					</vbox>
    265 				</hbox>
    266 			</hbox>
    267 			
    268 			<hbox align="stretch" style="margin-top: 8px">
    269 				<vbox flex="1">
    270 					<hbox align="center">
    271 						<label value="&zotero.citation.prefix.label;"/>
    272 						<textbox oninput="Zotero_Citation_Dialog.confirmRegenerate(false)" onchange="Zotero_Citation_Dialog.confirmRegenerate(true)" class="fix" id="prefix" align="stretch" flex="1" tabindex="3"/>
    273 					</hbox>
    274 					<hbox align="center">
    275 						<label value="&zotero.citation.suffix.label;"/>
    276 						<textbox oninput="Zotero_Citation_Dialog.confirmRegenerate(false)" onchange="Zotero_Citation_Dialog.confirmRegenerate(true)" class="fix" id="suffix" align="stretch" flex="1" tabindex="4"/>
    277 					</hbox>
    278 					<spacer flex="1"/>
    279 				</vbox>
    280 				<separator flex="4"/>
    281 				<vbox flex="1">
    282 					<hbox align="stretch">
    283 						<menulist onchange="Zotero_Citation_Dialog.confirmRegenerate(true)" id="label" tabindex="5">
    284 							<menupopup id="locator-type-popup"/>
    285 						</menulist>
    286 						<textbox oninput="Zotero_Citation_Dialog.confirmRegenerate(false)" onchange="Zotero_Citation_Dialog.confirmRegenerate(true)" id="locator" tabindex="2" flex="1"/>
    287 					</hbox>
    288 					<separator style="height: 2px" flex="1"/>
    289 					<checkbox oncommand="Zotero_Citation_Dialog.confirmRegenerate(true)" id="suppress-author" label="&zotero.citation.suppressAuthor.label;" tabindex="6"/>
    290 				</vbox>
    291 			</hbox>
    292 		</vbox>
    293 		
    294 		<textbox id="editor" type="styled" mode="integration" hidden="true" flex="1"/>
    295 		<description id="zotero-editor-warning" style="margin: 9px 1px 0" hidden="true">&zotero.citation.editorWarning.label;</description>
    296 	</vbox>
    297 </dialog>