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