]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/cat/marcedit.xul
Fast single item add from within marc editor. Good for home users, but all cataloger...
[working/Evergreen.git] / Open-ILS / xul / staff_client / server / cat / marcedit.xul
1 <?xml version="1.0"?>
2 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
3 <?xml-stylesheet href="chrome://open_ils_staff_client/skin/global.css" type="text/css"?>
4 <?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
5 <?xml-stylesheet href="marcedit.css" type="text/css"?>
6
7 <!-- LOCALIZATION -->
8 <!DOCTYPE window PUBLIC "" ""[
9 <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
10 ]>
11
12 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
13
14 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:xhtml="http://www.w3.org/1999/xhtml" onload="try { my_init(); font_helper(); } catch(E) { alert(E); }">
15
16 <scripts id="openils_util_scripts"/>
17 <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
18
19 <script src="marcedit.js" type="application/x-javascript; e4x=1"/>
20
21 <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties" />
22 <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" />
23
24 <groupbox flex="0">
25         <caption label="&staff.cat.marcedit.options.label;"/>
26         <hbox flex="1">
27                 <checkbox persist="checked" accesskey="&staff.cat.marcedit.stackSubfields.accesskey;" label="&staff.cat.marcedit.stackSubfields.label;" oncommand="stackSubfields(this);" checked="false" id="stackSubfields"/>
28         <checkbox persist="checked" accesskey="&staff.cat.marcedit.fastItemAdd.accesskey;" label="&staff.cat.marcedit.fastItemAdd.label;" oncommand="fastItemAdd_toggle(this);" checked="false" id="fastItemAdd_checkbox"/>
29         <hbox id="fastItemAdd_textboxes">
30             <label control="fastItemAdd_callnumber" accesskey="&staff.cat.marcedit.fastItemAdd_callnumber.accesskey;" value="&staff.cat.marcedit.fastItemAdd_callnumber.label;" />
31             <textbox id="fastItemAdd_callnumber" persist="value" onchange="this.setAttribute('value',this.value);"/>
32             <label control="fastItemAdd_barcode" accesskey="&staff.cat.marcedit.fastItemAdd_barcode.accesskey;" value="&staff.cat.marcedit.fastItemAdd_barcode.label;" />
33             <textbox id="fastItemAdd_barcode"/>
34         </hbox>
35                 <button label="&staff.cat.marcedit.validate.label;" accesskey="&staff.cat.marcedit.validate.accesskey;" oncommand="validateAuthority(this);"/>
36                 <button id="save-button" accesskey="&staff.cat.marcedit.save-button.accesskey;"/>
37                 <button label="&staff.cat.marcedit.help.label;" accesskey="&staff.cat.marcedit.help.accesskey;"
38                         oncommand="alert(
39                                 $('catStrings').getString('staff.cat.marcedit.help.add_row') + '\n' +
40                                 $('catStrings').getString('staff.cat.marcedit.help.insert_row') + '\n' +
41                                 $('catStrings').getString('staff.cat.marcedit.help.add_subfield') + '\n' +
42                                 $('catStrings').getString('staff.cat.marcedit.help.remove_row') + '\n' +
43                                 $('catStrings').getString('staff.cat.marcedit.help.remove_subfield') + '\n' +
44                                 $('catStrings').getString('staff.cat.marcedit.help.replace_006') + '\n' +
45                                 $('catStrings').getString('staff.cat.marcedit.help.replace_007') + '\n' +
46                                 $('catStrings').getString('staff.cat.marcedit.help.replace_008')
47                         );"
48                 />
49         </hbox>
50 </groupbox>
51
52 <groupbox flex="1">
53         <caption label="&staff.cat.marcedit.caption.label;"/>
54         <vbox flex="1" style="overflow: auto;">
55                 <hbox>
56                 <groupbox flex="0">
57                         <caption>
58                                 <label value="&staff.cat.marcedit.toggleFFE.label;" ondblclick="toggleFFE();"/>
59                                 <label id="recordTypeLabel" context="recordTypeMenu"/>
60                         </caption>
61                         <vbox flex="0">
62                                 <grid flex="0" id="leaderGrid" type="BKS" hidden="false" persist="hidden">
63                                         <columns>
64                                                 <column flex="1"/>
65                                                 <column flex="1"/>
66                                                 <column flex="1"/>
67                                                 <column flex="1"/>
68                                                 <column flex="1"/>
69                                                 <column flex="1"/>
70                                                 <column flex="1"/>
71                                                 <column flex="1"/>
72                                                 <column flex="1"/>
73                                                 <column flex="1"/>
74                                                 <column flex="1"/>
75                                                 <column flex="1"/>
76                                         </columns>
77                                         <rows>
78                                                 <row>
79                                                         <label name="Type" set="BKS SER VIS MIX MAP SCO REC COM" value="Type" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
80                                                         <textbox class="plain" name="Type" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
81                                                         <label name="ELvl" set="BKS SER VIS MIX MAP SCO REC COM" value="ELvl" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
82                                                         <textbox class="plain" name="ELvl" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
83                                                         <label name="Srce" set="BKS SER VIS MIX MAP SCO REC COM" value="Srce" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
84                                                         <textbox class="plain" name="Srce" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
85                                                         <label name="Audn" set="BKS VIS SCO REC COM" value="Audn" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
86                                                         <textbox class="plain" name="Audn" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
87                                                         <label name="Ctrl" set="BKS SER VIS MIX MAP SCO REC COM" value="Ctrl" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
88                                                         <textbox class="plain" name="Ctrl" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
89                                                         <label name="Lang" set="BKS SER VIS MIX MAP SCO REC COM" value="Lang" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
90                                                         <textbox class="plain" name="Lang" maxlength="3" size="3" oninput="updateFixedFields(this);"/>
91                                                 </row>
92                                                 <row>
93                                                         <label name="BLvl" set="BKS SER VIS MIX MAP SCO REC COM" value="BLvl" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
94                                                         <textbox class="plain" name="BLvl" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
95                                                         <label name="Form" set="BKS SER VIS MIX MAP SCO REC" value="Form" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
96                                                         <textbox class="plain" name="Form" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
97                                                         <label name="Conf" set="BKS SER" value="Conf" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
98                                                         <textbox class="plain" name="Conf" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
99                                                         <label name="Biog" set="BKS" value="Biog" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
100                                                         <textbox class="plain" name="Biog" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
101                                                         <label name="MRec" set="BKS SER VIS MIX MAP SCO REC COM" value="MRec" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
102                                                         <textbox class="plain" name="MRec" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
103                                                         <label name="Ctry" set="BKS SER VIS MIX MAP SCO REC COM" value="Ctry" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
104                                                         <textbox class="plain" name="Ctry" maxlength="3" size="3" oninput="updateFixedFields(this);"/>
105                                                 </row>
106                                                 <row>
107                                                         <label name="S/L" set="SER" value="S/L" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
108                                                         <textbox class="plain" name="S/L" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
109                                                         <label name="Cont" set="BKS SER" value="Cont" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
110                                                         <textbox class="plain" name="Cont" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
111                                                         <label name="GPub" set="BKS SER VIS MAP COM" value="GPub" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
112                                                         <textbox class="plain" name="GPub" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
113                                                         <label name="LitF" set="BKS" value="LitF" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
114                                                         <textbox class="plain" name="LitF" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
115                                                         <label name="Indx" set="BKS MAP" value="Indx" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
116                                                         <textbox class="plain" name="Indx" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
117                                                         <label name="Alph" set="SER" value="Alph" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
118                                                         <textbox class="plain" name="Alph" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
119                                                 </row>
120                                                 <row>
121                                                         <label name="Desc" set="BKS SER VIS MIX MAP SCO REC COM" value="Desc" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
122                                                         <textbox class="plain" name="Desc" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
123                                                         <label name="Ills" set="BKS" value="Ills" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
124                                                         <textbox class="plain" name="Ills" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
125                                                         <label name="Fest" set="BKS" value="Fest" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
126                                                         <textbox class="plain" name="Fest" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
127                                                         <label name="DtSt" set="BKS SER VIS MIX MAP SCO REC COM" value="DtSt" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
128                                                         <textbox class="plain" name="DtSt" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
129                                                         <label name="Date1" set="BKS SER VIS MIX MAP SCO REC COM" value="Date1" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
130                                                         <textbox class="plain" name="Date1" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
131                                                         <label name="Date2" set="BKS SER VIS MIX MAP SCO REC COM" value="Date2" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
132                                                         <textbox class="plain" name="Date2" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
133                                                 </row>
134                                                 <row>
135                                                         <label name="SrTp" set="SER" value="SrTp" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
136                                                         <textbox class="plain" name="SrTp" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
137                                                         <label name="Regl" set="SER" value="Regl" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
138                                                         <textbox class="plain" name="Regl" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
139                                                         <label name="Orig" set="SER" value="Orig" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
140                                                         <textbox class="plain" name="Orig" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
141                                                         <label name="Freq" set="SER" value="Freq" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
142                                                         <textbox class="plain" name="Freq" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
143                                                         <label name="EntW" set="SER" value="EntW" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
144                                                         <textbox class="plain" name="EntW" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
145                                                 </row>
146                                                 <row>
147                                                         <label name="TrAr" set="SCO REC" value="TrAr" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
148                                                         <textbox class="plain" name="TrAr" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
149                                                         <label name="Part" set="SCO REC" value="Part" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
150                                                         <textbox class="plain" name="Part" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
151                                                         <label name="LTxt" set="SCO REC" value="LTxt" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
152                                                         <textbox class="plain" name="LTxt" maxlength="2" size="2" oninput="updateFixedFields(this);"/>
153                                                         <label name="FMus" set="SCO REC" value="FMus" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
154                                                         <textbox class="plain" name="FMus" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
155                                                         <label name="AccM" set="SCO REC" value="AccM" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
156                                                         <textbox class="plain" name="AccM" maxlength="6" size="6" oninput="updateFixedFields(this);"/>
157                                                         <label name="Comp" set="SCO REC" value="Comp" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
158                                                         <textbox class="plain" name="Comp" maxlength="2" size="2" oninput="updateFixedFields(this);"/>
159                                                 </row>
160                                                 <row>
161                                                         <label name="SpFm" set="MAP" value="SpFm" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
162                                                         <textbox class="plain" name="SpFm" maxlength="2" size="2" oninput="updateFixedFields(this);"/>
163                                                         <label name="Relf" set="MAP" value="Relf" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
164                                                         <textbox class="plain" name="Relf" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
165                                                         <label name="Proj" set="MAP" value="Proj" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
166                                                         <textbox class="plain" name="Proj" maxlength="2" size="2" oninput="updateFixedFields(this);"/>
167                                                         <label name="CrTp" set="MAP" value="CrTp" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
168                                                         <textbox class="plain" name="CrTp" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
169                                                 </row>
170                                                 <row>
171                                                         <label name="TMat" set="VIS" value="TMat" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
172                                                         <textbox class="plain" name="TMat" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
173                                                         <label name="Time" set="VIS" value="Time" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
174                                                         <textbox class="plain" name="Time" maxlength="3" size="3" oninput="updateFixedFields(this);"/>
175                                                         <label name="Tech" set="VIS" value="Tech" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
176                                                         <textbox class="plain" name="Tech" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
177                                                         <label name="File" set="COM" value="File" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
178                                                         <textbox class="plain" name="File" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
179                                                 </row>
180                                         </rows>
181                                 </grid>
182                         </vbox>
183                 </groupbox>
184                 </hbox>
185
186                 <grid id="recGrid" flex="1">
187                         <columns>
188                                 <column/>
189                                 <column/>
190                                 <column/>
191                                 <column flex="1"/>
192                         </columns>
193                         <rows/>
194                 </grid>
195         </vbox>
196 </groupbox>
197
198 <grid name="authority-marc-template" hidden="true">
199         <columns>
200                 <column/>
201                 <column/>
202                 <column/>
203                 <column flex="1"/>
204         </columns>
205         <rows/>
206 </grid>
207
208 <popupset>
209         <popup id="recordTypeMenu" position="after_start">
210                 <menuitem label="BKS" oncommand="changeFFEditor('BKS');"/>
211                 <menuitem label="SER" oncommand="changeFFEditor('SER');"/>
212                 <menuitem label="VIS" oncommand="changeFFEditor('VIS');"/>
213                 <menuitem label="MIX" oncommand="changeFFEditor('MIX');"/>
214                 <menuitem label="MAP" oncommand="changeFFEditor('MAP');"/>
215                 <menuitem label="SCO" oncommand="changeFFEditor('SCO');"/>
216                 <menuitem label="REC" oncommand="changeFFEditor('REC');"/>
217                 <menuitem label="COM" oncommand="changeFFEditor('COM');"/>
218         </popup>
219 </popupset>
220
221 </window>
222
223
224