]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/cat/marcedit.xul
use oncommand rather onclick here for keyboard access. But interestingly, the timing...
[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                 <button label="&staff.cat.marcedit.validate.label;" accesskey="&staff.cat.marcedit.validate.accesskey;" oncommand="validateAuthority(this);"/>
29                 <button id="save-button" accesskey="&staff.cat.marcedit.save-button.accesskey;"/>
30                 <button label="&staff.cat.marcedit.help.label;" accesskey="&staff.cat.marcedit.help.accesskey;"
31                         oncommand="alert(
32                                 $('catStrings').getString('staff.cat.marcedit.help.add_row') + '\n' +
33                                 $('catStrings').getString('staff.cat.marcedit.help.insert_row') + '\n' +
34                                 $('catStrings').getString('staff.cat.marcedit.help.add_subfield') + '\n' +
35                                 $('catStrings').getString('staff.cat.marcedit.help.remove_row') + '\n' +
36                                 $('catStrings').getString('staff.cat.marcedit.help.remove_subfield') + '\n' +
37                                 $('catStrings').getString('staff.cat.marcedit.help.replace_006') + '\n' +
38                                 $('catStrings').getString('staff.cat.marcedit.help.replace_007') + '\n' +
39                                 $('catStrings').getString('staff.cat.marcedit.help.replace_008')
40                         );"
41                 />
42         </hbox>
43 </groupbox>
44
45 <groupbox flex="1">
46         <caption label="&staff.cat.marcedit.caption.label;"/>
47         <vbox flex="1" style="overflow: auto;">
48                 <hbox>
49                 <groupbox flex="0">
50                         <caption>
51                                 <label value="&staff.cat.marcedit.toggleFFE.label;" ondblclick="toggleFFE();"/>
52                                 <label id="recordTypeLabel" context="recordTypeMenu"/>
53                         </caption>
54                         <vbox flex="0">
55                                 <grid flex="0" id="leaderGrid" type="BKS" hidden="false" persist="hidden">
56                                         <columns>
57                                                 <column flex="1"/>
58                                                 <column flex="1"/>
59                                                 <column flex="1"/>
60                                                 <column flex="1"/>
61                                                 <column flex="1"/>
62                                                 <column flex="1"/>
63                                                 <column flex="1"/>
64                                                 <column flex="1"/>
65                                                 <column flex="1"/>
66                                                 <column flex="1"/>
67                                                 <column flex="1"/>
68                                                 <column flex="1"/>
69                                         </columns>
70                                         <rows>
71                                                 <row>
72                                                         <label name="Type" set="BKS SER VIS MIX MAP SCO REC COM" value="Type" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
73                                                         <textbox class="plain" name="Type" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
74                                                         <label name="ELvl" set="BKS SER VIS MIX MAP SCO REC COM" value="ELvl" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
75                                                         <textbox class="plain" name="ELvl" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
76                                                         <label name="Srce" set="BKS SER VIS MIX MAP SCO REC COM" value="Srce" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
77                                                         <textbox class="plain" name="Srce" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
78                                                         <label name="Audn" set="BKS VIS SCO REC COM" value="Audn" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
79                                                         <textbox class="plain" name="Audn" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
80                                                         <label name="Ctrl" set="BKS SER VIS MIX MAP SCO REC COM" value="Ctrl" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
81                                                         <textbox class="plain" name="Ctrl" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
82                                                         <label name="Lang" set="BKS SER VIS MIX MAP SCO REC COM" value="Lang" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
83                                                         <textbox class="plain" name="Lang" maxlength="3" size="3" oninput="updateFixedFields(this);"/>
84                                                 </row>
85                                                 <row>
86                                                         <label name="BLvl" set="BKS SER VIS MIX MAP SCO REC COM" value="BLvl" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
87                                                         <textbox class="plain" name="BLvl" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
88                                                         <label name="Form" set="BKS SER VIS MIX MAP SCO REC" value="Form" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
89                                                         <textbox class="plain" name="Form" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
90                                                         <label name="Conf" set="BKS SER" value="Conf" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
91                                                         <textbox class="plain" name="Conf" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
92                                                         <label name="Biog" set="BKS" value="Biog" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
93                                                         <textbox class="plain" name="Biog" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
94                                                         <label name="MRec" set="BKS SER VIS MIX MAP SCO REC COM" value="MRec" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
95                                                         <textbox class="plain" name="MRec" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
96                                                         <label name="Ctry" set="BKS SER VIS MIX MAP SCO REC COM" value="Ctry" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
97                                                         <textbox class="plain" name="Ctry" maxlength="3" size="3" oninput="updateFixedFields(this);"/>
98                                                 </row>
99                                                 <row>
100                                                         <label name="S/L" set="SER" value="S/L" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
101                                                         <textbox class="plain" name="S/L" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
102                                                         <label name="Cont" set="BKS SER" value="Cont" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
103                                                         <textbox class="plain" name="Cont" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
104                                                         <label name="GPub" set="BKS SER VIS MAP COM" value="GPub" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
105                                                         <textbox class="plain" name="GPub" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
106                                                         <label name="LitF" set="BKS" value="LitF" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
107                                                         <textbox class="plain" name="LitF" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
108                                                         <label name="Indx" set="BKS MAP" value="Indx" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
109                                                         <textbox class="plain" name="Indx" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
110                                                         <label name="Alph" set="SER" value="Alph" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
111                                                         <textbox class="plain" name="Alph" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
112                                                 </row>
113                                                 <row>
114                                                         <label name="Desc" set="BKS SER VIS MIX MAP SCO REC COM" value="Desc" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
115                                                         <textbox class="plain" name="Desc" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
116                                                         <label name="Ills" set="BKS" value="Ills" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
117                                                         <textbox class="plain" name="Ills" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
118                                                         <label name="Fest" set="BKS" value="Fest" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
119                                                         <textbox class="plain" name="Fest" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
120                                                         <label name="DtSt" set="BKS SER VIS MIX MAP SCO REC COM" value="DtSt" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
121                                                         <textbox class="plain" name="DtSt" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
122                                                         <label name="Date1" set="BKS SER VIS MIX MAP SCO REC COM" value="Date1" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
123                                                         <textbox class="plain" name="Date1" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
124                                                         <label name="Date2" set="BKS SER VIS MIX MAP SCO REC COM" value="Date2" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
125                                                         <textbox class="plain" name="Date2" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
126                                                 </row>
127                                                 <row>
128                                                         <label name="SrTp" set="SER" value="SrTp" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
129                                                         <textbox class="plain" name="SrTp" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
130                                                         <label name="Regl" set="SER" value="Regl" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
131                                                         <textbox class="plain" name="Regl" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
132                                                         <label name="Orig" set="SER" value="Orig" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
133                                                         <textbox class="plain" name="Orig" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
134                                                         <label name="Freq" set="SER" value="Freq" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
135                                                         <textbox class="plain" name="Freq" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
136                                                         <label name="EntW" set="SER" value="EntW" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
137                                                         <textbox class="plain" name="EntW" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
138                                                 </row>
139                                                 <row>
140                                                         <label name="TrAr" set="SCO REC" value="TrAr" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
141                                                         <textbox class="plain" name="TrAr" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
142                                                         <label name="Part" set="SCO REC" value="Part" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
143                                                         <textbox class="plain" name="Part" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
144                                                         <label name="LTxt" set="SCO REC" value="LTxt" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
145                                                         <textbox class="plain" name="LTxt" maxlength="2" size="2" oninput="updateFixedFields(this);"/>
146                                                         <label name="FMus" set="SCO REC" value="FMus" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
147                                                         <textbox class="plain" name="FMus" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
148                                                         <label name="AccM" set="SCO REC" value="AccM" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
149                                                         <textbox class="plain" name="AccM" maxlength="6" size="6" oninput="updateFixedFields(this);"/>
150                                                         <label name="Comp" set="SCO REC" value="Comp" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
151                                                         <textbox class="plain" name="Comp" maxlength="2" size="2" oninput="updateFixedFields(this);"/>
152                                                 </row>
153                                                 <row>
154                                                         <label name="SpFm" set="MAP" value="SpFm" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
155                                                         <textbox class="plain" name="SpFm" maxlength="2" size="2" oninput="updateFixedFields(this);"/>
156                                                         <label name="Relf" set="MAP" value="Relf" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
157                                                         <textbox class="plain" name="Relf" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
158                                                         <label name="Proj" set="MAP" value="Proj" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
159                                                         <textbox class="plain" name="Proj" maxlength="2" size="2" oninput="updateFixedFields(this);"/>
160                                                         <label name="CrTp" set="MAP" value="CrTp" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
161                                                         <textbox class="plain" name="CrTp" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
162                                                 </row>
163                                                 <row>
164                                                         <label name="TMat" set="VIS" value="TMat" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
165                                                         <textbox class="plain" name="TMat" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
166                                                         <label name="Time" set="VIS" value="Time" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
167                                                         <textbox class="plain" name="Time" maxlength="3" size="3" oninput="updateFixedFields(this);"/>
168                                                         <label name="Tech" set="VIS" value="Tech" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
169                                                         <textbox class="plain" name="Tech" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
170                                                         <label name="File" set="COM" value="File" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
171                                                         <textbox class="plain" name="File" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
172                                                 </row>
173                                         </rows>
174                                 </grid>
175                         </vbox>
176                 </groupbox>
177                 </hbox>
178
179                 <grid id="recGrid" flex="1">
180                         <columns>
181                                 <column/>
182                                 <column/>
183                                 <column/>
184                                 <column flex="1"/>
185                         </columns>
186                         <rows/>
187                 </grid>
188         </vbox>
189 </groupbox>
190
191 <grid name="authority-marc-template" hidden="true">
192         <columns>
193                 <column/>
194                 <column/>
195                 <column/>
196                 <column flex="1"/>
197         </columns>
198         <rows/>
199 </grid>
200
201 <popupset>
202         <popup id="recordTypeMenu" position="after_start">
203                 <menuitem label="BKS" oncommand="changeFFEditor('BKS');"/>
204                 <menuitem label="SER" oncommand="changeFFEditor('SER');"/>
205                 <menuitem label="VIS" oncommand="changeFFEditor('VIS');"/>
206                 <menuitem label="MIX" oncommand="changeFFEditor('MIX');"/>
207                 <menuitem label="MAP" oncommand="changeFFEditor('MAP');"/>
208                 <menuitem label="SCO" oncommand="changeFFEditor('SCO');"/>
209                 <menuitem label="REC" oncommand="changeFFEditor('REC');"/>
210                 <menuitem label="COM" oncommand="changeFFEditor('COM');"/>
211         </popup>
212 </popupset>
213
214 </window>
215
216
217