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