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