2fd96890efe6371d75860051f4320ff5e43e5b6c
[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="/xul/server/skin/global.css" type="text/css"?>
4 <?xml-stylesheet href="marcedit.css" type="text/css"?>
5
6 <!-- LOCALIZATION -->
7 <!DOCTYPE window PUBLIC "" ""[
8 <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
9 ]>
10
11 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
12 <?xul-overlay href="/xul/server/OpenILS/symbol_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(); persist_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 oils_persist="checked" accesskey="&staff.cat.marcedit.stackSubfields.accesskey;" label="&staff.cat.marcedit.stackSubfields.label;" oncommand="stackSubfields(this);" checked="false" id="stackSubfields"/>
28         <checkbox oils_persist="checked" accesskey="&staff.cat.marcedit.flatTextEditor.accesskey;" label="&staff.cat.marcedit.flatTextEditor.label;" oncommand="set_flat_editor(this.checked);" checked="false" id="swapEditor_checkbox"/>
29         <checkbox oils_persist="checked" accesskey="&staff.cat.marcedit.fastItemAdd.accesskey;" label="&staff.cat.marcedit.fastItemAdd.label;" oncommand="fastItemAdd_toggle(this);" checked="false" id="fastItemAdd_checkbox"/>
30         <button label="&staff.cat.marcedit.validate.label;" accesskey="&staff.cat.marcedit.validate.accesskey;" oncommand="validateAuthority(this);"/>
31         <button id="save-button" accesskey="&staff.cat.marcedit.save-button.accesskey;"/>
32         <button label="&staff.cat.marcedit.help.label;" accesskey="&staff.cat.marcedit.help.accesskey;"
33             oncommand="alert(
34                 $('catStrings').getString('staff.cat.marcedit.help.add_row') + '\n' +
35                 $('catStrings').getString('staff.cat.marcedit.help.insert_row') + '\n' +
36                 $('catStrings').getString('staff.cat.marcedit.help.copy_row_up') + '\n' +
37                 $('catStrings').getString('staff.cat.marcedit.help.copy_row_down') + '\n' +
38                 $('catStrings').getString('staff.cat.marcedit.help.add_subfield') + '\n' +
39                 $('catStrings').getString('staff.cat.marcedit.help.remove_row') + '\n' +
40                 $('catStrings').getString('staff.cat.marcedit.help.remove_subfield') + '\n' +
41                 $('catStrings').getString('staff.cat.marcedit.help.replace_006') + '\n' +
42                 $('catStrings').getString('staff.cat.marcedit.help.replace_007') + '\n' +
43                 $('catStrings').getString('staff.cat.marcedit.help.replace_008')
44             );"
45         />
46     </hbox>
47     <hbox id="fastItemAdd_textboxes">
48         <label control="fastItemAdd_callnumber" accesskey="&staff.cat.marcedit.fastItemAdd_callnumber.accesskey;" value="&staff.cat.marcedit.fastItemAdd_callnumber.label;" />
49         <textbox onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" context="clipboard" id="fastItemAdd_callnumber" />
50         <label control="fastItemAdd_barcode" accesskey="&staff.cat.marcedit.fastItemAdd_barcode.accesskey;" value="&staff.cat.marcedit.fastItemAdd_barcode.label;" />
51         <textbox onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" context="clipboard" id="fastItemAdd_barcode"/>
52     </hbox>
53 </groupbox>
54
55 <groupbox id="xul-editor" flex="1">
56     <caption label="&staff.cat.marcedit.caption.label;"/>
57     <vbox flex="1" style="overflow: auto;">
58         <hbox>
59         <groupbox flex="0">
60             <caption>
61                 <label value="&staff.cat.marcedit.toggleFFE.label;" ondblclick="toggleFFE();"/>
62                 <label id="recordTypeLabel" value="BKS" context="recordTypeMenu"/>
63             </caption>
64             <vbox flex="0">
65                 <grid flex="0" id="leaderGrid" type="BKS" hidden="false" oils_persist="hidden">
66                     <columns>
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                         <column flex="1"/>
77                         <column flex="1"/>
78                         <column flex="1"/>
79                     </columns>
80                     <rows>
81                         <row>
82                             <label name="Type" control="Type_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Type" />
83                             <textbox id="Type_tb" context="clipboard" class="plain" name="Type" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
84                             <label name="ELvl" control="ELvl_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="ELvl" />
85                             <textbox id="Elvl_tb" context="clipboard" class="plain" name="ELvl" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
86                             <label name="Srce" control="Srce_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Srce" />
87                             <textbox id="Srce_tb" context="clipboard" class="plain" name="Srce" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
88                             <label name="Audn" control="Audn_tb" set="BKS VIS SCO REC COM" value="Audn" />
89                             <textbox id="Audn_tb" context="clipboard" class="plain" name="Audn" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
90                             <label name="Ctrl" control="Ctrl_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Ctrl" />
91                             <textbox id="Ctrl_tb" context="clipboard" class="plain" name="Ctrl" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
92                             <label name="Lang" control="Lang_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Lang" />
93                             <textbox id="Lang_tb" context="clipboard" class="plain" name="Lang" maxlength="3" size="3" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
94                         </row>
95                         <row>
96                             <label name="BLvl" control="BLvl_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="BLvl" />
97                             <textbox id="BLvl_tb" context="clipboard" class="plain" name="BLvl" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
98                             <label name="Form" control="Form_tb" set="BKS SER VIS MIX MAP SCO REC" value="Form" />
99                             <textbox id="Form_tb" context="clipboard" class="plain" name="Form" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
100                             <label name="Conf" control="Conf_tb" set="BKS SER" value="Conf" />
101                             <textbox id="Conf_tb" context="clipboard" class="plain" name="Conf" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
102                             <label name="Biog" control="Biog_tb" set="BKS" value="Biog" />
103                             <textbox id="Biog_tb" context="clipboard" class="plain" name="Biog" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
104                             <label name="MRec" control="MRec_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="MRec" />
105                             <textbox id="MRec_tb" context="clipboard" class="plain" name="MRec" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
106                             <label name="Ctry" control="Ctry_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Ctry" />
107                             <textbox id="Ctry_tb" context="clipboard" class="plain" name="Ctry" maxlength="3" size="3" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
108                         </row>
109                         <row>
110                             <label name="S/L" control="s_l_tb" set="SER" value="S/L" />
111                             <textbox id="s_l_tb" context="clipboard" class="plain" name="S/L" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
112                             <label name="Cont" control="Cont_tb" set="BKS SER" value="Cont" />
113                             <textbox id="Cont_tb" context="clipboard" class="plain" name="Cont" maxlength="4" size="4" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
114                             <label name="GPub" control="GPub_tb" set="BKS SER VIS MAP COM" value="GPub" />
115                             <textbox id="GPub_tb" context="clipboard" class="plain" name="GPub" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
116                             <label name="LitF" control="LitF_tb" set="BKS" value="LitF" />
117                             <textbox id="LitF_tb" context="clipboard" class="plain" name="LitF" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
118                             <label name="Indx" control="Indx_tb" set="BKS MAP" value="Indx" />
119                             <textbox id="Indx_tb" context="clipboard" class="plain" name="Indx" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
120                             <label name="Alph" control="Alph_tb" set="SER" value="Alph" />
121                             <textbox id="Alph_tb" context="clipboard" class="plain" name="Alph" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
122                         </row>
123                         <row>
124                             <label name="Desc" control="Desc_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Desc" />
125                             <textbox id="Desc_tb" context="clipboard" class="plain" name="Desc" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
126                             <label name="Ills" control="Ills_tb" set="BKS" value="Ills" />
127                             <textbox id="Ills_tb" context="clipboard" class="plain" name="Ills" maxlength="4" size="4" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
128                             <label name="Fest" control="Fest_tb" set="BKS" value="Fest" />
129                             <textbox id="Fest_tb" context="clipboard" class="plain" name="Fest" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
130                             <label name="DtSt" control="DtSt_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="DtSt" />
131                             <textbox id="DtSt_tb" context="clipboard" class="plain" name="DtSt" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
132                             <label name="Date1" control="Date1_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Date1" />
133                             <textbox id="Date1_tb" context="clipboard" class="plain" name="Date1" maxlength="4" size="4" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
134                             <label name="Date2" control="Date2_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Date2" />
135                             <textbox id="Date2_tb" context="clipboard" class="plain" name="Date2" maxlength="4" size="4" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
136                         </row>
137                         <row>
138                             <label name="SrTp" control="SrTp_tb" set="SER" value="SrTp" />
139                             <textbox id="SrTp_tb" context="clipboard" class="plain" name="SrTp" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
140                             <label name="Regl" control="Regl_tb" set="SER" value="Regl" />
141                             <textbox id="Regl_tb" context="clipboard" class="plain" name="Regl" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
142                             <label name="Orig" control="Orig_tb" set="SER" value="Orig" />
143                             <textbox id="Orig_tb" context="clipboard" class="plain" name="Orig" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
144                             <label name="Freq" control="Freq_tb" set="SER" value="Freq" />
145                             <textbox id="Freq_tb" context="clipboard" class="plain" name="Freq" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
146                             <label name="EntW" control="EntW_tb" set="SER" value="EntW" />
147                             <textbox id="EntW_tb" context="clipboard" class="plain" name="EntW" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
148                         </row>
149                         <row>
150                             <label name="TrAr" control="TrAr_tb" set="SCO REC" value="TrAr" />
151                             <textbox id="TrAr_tb" context="clipboard" class="plain" name="TrAr" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
152                             <label name="Part" control="Part_tb" set="SCO REC" value="Part" />
153                             <textbox id="Part_tb" context="clipboard" class="plain" name="Part" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
154                             <label name="LTxt" control="LTxt_tb" set="SCO REC" value="LTxt" />
155                             <textbox id="LTxt_tb" context="clipboard" class="plain" name="LTxt" maxlength="2" size="2" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
156                             <label name="FMus" control="FMus_tb" set="SCO REC" value="FMus" />
157                             <textbox id="FMus_tb" context="clipboard" class="plain" name="FMus" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
158                             <label name="AccM" control="AccM_tb" set="SCO REC" value="AccM" />
159                             <textbox id="AccM_tb" context="clipboard" class="plain" name="AccM" maxlength="6" size="6" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
160                             <label name="Comp" control="Comp_tb" set="SCO REC" value="Comp" />
161                             <textbox id="Comp_tb" context="clipboard" class="plain" name="Comp" maxlength="2" size="2" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
162                         </row>
163                         <row>
164                             <label name="SpFm" control="SpFm_tb" set="MAP" value="SpFm" />
165                             <textbox id="SpFm_tb" context="clipboard" class="plain" name="SpFm" maxlength="2" size="2" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
166                             <label name="Relf" control="Relf_tb" set="MAP" value="Relf" />
167                             <textbox id="Relf_tb" context="clipboard" class="plain" name="Relf" maxlength="4" size="4" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
168                             <label name="Proj" control="Proj_tb" set="MAP" value="Proj" />
169                             <textbox id="Proj_tb" context="clipboard" class="plain" name="Proj" maxlength="2" size="2" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
170                             <label name="CrTp" control="CrTp_tb" set="MAP" value="CrTp" />
171                             <textbox id="CrTp_tb" context="clipboard" class="plain" name="CrTp" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
172                         </row>
173                         <row>
174                             <label name="TMat" control="TMat_tb" set="VIS" value="TMat" />
175                             <textbox id="TMat_tb" context="clipboard" class="plain" name="TMat" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
176                             <label name="Time" control="Time_tb" set="VIS" value="Time" />
177                             <textbox id="Time_tb" context="clipboard" class="plain" name="Time" maxlength="3" size="3" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
178                             <label name="Tech" control="Tech_tb" set="VIS" value="Tech" />
179                             <textbox id="Tech_tb" context="clipboard" class="plain" name="Tech" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
180                             <label name="File" control="File_tb" set="COM" value="File" />
181                             <textbox id="File_tb" context="clipboard" class="plain" name="File" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
182                         </row>
183                         <row>
184                             <label name="Type" control="Type_tbmfhd" set="AUT MFHD" value="Type" />
185                             <textbox id="Type_tbmfhd" context="clipboard" class="plain" name="Type" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
186                             <label name="ELvl" control="ELvl_tbmfhd" set="AUT MFHD" value="ELvl" />
187                             <textbox id="ELvl_tbmfhd" context="clipboard" class="plain" name="ELvl" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
188                             <label name="Item" control="Item_tbmfhd" set="AUT MFHD" value="Item" />
189                             <textbox id="Item_tbmfhd" context="clipboard" class="plain" name="Item" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
190                             <label name="GeoDiv" control="GeoDiv_tb" set="AUT" value="GeoDiv" />
191                             <textbox id="GeoDiv_tb" context="clipboard" class="plain" name="GeoDiv" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
192                             <label name="Roman" control="Roman_tb" set="AUT" value="Roman" />
193                             <textbox id="Roman_tb" context="clipboard" class="plain" name="Roman" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
194                             <label name="CatLang" control="CatLang_tb" set="AUT" value="CatLang" />
195                             <textbox id="CatLang_tb" context="clipboard" class="plain" name="CatLang" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
196                         </row>
197                         <row>
198                             <label name="Kind" control="Kind_tb" set="AUT" value="Kind" />
199                             <textbox id="Kind_tb" context="clipboard" class="plain" name="Kind" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
200                             <label name="Rules" control="Rules_tb" set="AUT" value="Rules" />
201                             <textbox id="Rules_tb" context="clipboard" class="plain" name="Rules" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
202                             <label name="Subj" control="Subj_tb" set="AUT" value="Subj" />
203                             <textbox id="Subj_tb" context="clipboard" class="plain" name="Subj" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
204                             <label name="SerType" control="SerType_tb" set="AUT" value="SerType" />
205                             <textbox id="SerType_tb" context="clipboard" class="plain" name="SerType" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
206                             <label name="SerNum" control="SerNum_tb" set="AUT" value="SerNum" />
207                             <textbox id="SerNum_tb" context="clipboard" class="plain" name="SerNum" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
208                             <label name="HeadMain" control="HeadMain_tb" set="AUT" value="HeadMain" />
209                             <textbox id="HeadMain_tb" context="clipboard" class="plain" name="HeadMain" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
210                         </row>
211                         <row>
212                             <label name="SubjUse" control="SubjUse_tb" set="AUT" value="SubjUse" />
213                             <textbox id="SubjUse_tb" context="clipboard" class="plain" name="SubjUse" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
214                             <label name="HeadSer" control="HeadSer_tb" set="AUT" value="HeadSer" />
215                             <textbox id="HeadSer_tb" context="clipboard" class="plain" name="HeadSer" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
216                             <label name="TypeSubd" control="TypeSubd_tb" set="AUT" value="TypeSubd" />
217                             <textbox id="TypeSubd_tb" context="clipboard" class="plain" name="TypeSubd" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
218                             <label name="TypeGov" control="TypeGov_tb" set="AUT" value="TypeGov" />
219                             <textbox id="TypeGov_tb" context="clipboard" class="plain" name="TypeGov" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
220                             <label name="RefEval" control="RefEval_tb" set="AUT" value="RefEval" />
221                             <textbox id="RefEval_tb" context="clipboard" class="plain" name="RefEval" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
222                             <label name="RecUpd" control="RecUpd_tb" set="AUT" value="RecUpd" />
223                             <textbox id="RecUpd_tb" context="clipboard" class="plain" name="RecUpd" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
224                         </row>
225                         <row>
226                             <label name="NameDiff" control="NameDiff_tb" set="AUT" value="NameDiff" />
227                             <textbox id="NameDiff_tb" context="clipboard" class="plain" name="NameDiff" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
228                             <label name="Level" control="Level_tb" set="AUT" value="Level" />
229                             <textbox id="Level_tb" context="clipboard" class="plain" name="Level" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
230                             <label name="ModRec" control="ModRec_tb" set="AUT" value="ModRec" />
231                             <textbox id="ModRec_tb" context="clipboard" class="plain" name="ModRec" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
232                             <label name="CatSrc" control="CatSrc_tb" set="AUT" value="CatSrc" />
233                             <textbox id="CatSrc_tb" context="clipboard" class="plain" name="CatSrc" maxlength="1" size="1" onkeypress="if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); }" oninput="updateFixedFields(this);" onfocus="this.select();"/>
234                         </row>
235
236                     </rows>
237                 </grid>
238             </vbox>
239         </groupbox>
240
241             <vbox>
242                 <caption id="bib-source-list-caption" hidden="true">&staff.cat.marcedit.source.caption;</caption>
243                 <menulist id="bib-source-list" rows="3" hidden="true" onselect='onBibSourceSelect();'><menupopup id='bib-source-list-popup'></menupopup></menulist>
244                 <button id="bib-source-list-button" label="&staff.cat.marcedit.source.submit.label;" disabled="true" oncommand="updateBibSource();" hidden="true"/>
245             </vbox>
246         </hbox>
247
248         <grid id="recGrid" flex="1">
249             <columns>
250                 <column/>
251                 <column/>
252                 <column/>
253                 <column flex="1"/>
254             </columns>
255             <rows/>
256         </grid>
257     </vbox>
258 </groupbox>
259
260 <hbox hidden="true" id="text-editor" flex="1">
261     <xhtml:textarea rows="50" cols='100' onkeypress="if (event.charCode == 115 &amp;&amp; event.ctrlKey &amp;&amp; $('symbol-panel')) { setNod(tab); $('symbol-panel').openPopup(tab, 'after_pointer'); } else {if (!(event.altKey || event.ctrlKey || event.metaKey)) { oils_lock_page(); } }" context="clipboard" id="text-editor-box"></xhtml:textarea>
262 </hbox>
263
264 <grid name="authority-marc-template" hidden="true">
265     <columns>
266         <column/>
267         <column/>
268         <column/>
269         <column flex="1"/>
270     </columns>
271     <rows/>
272 </grid>
273
274 <popupset>
275     <menupopup id="recordTypeMenu" position="after_start">
276         <menuitem label="BKS" oncommand="changeFFEditor('BKS');"/>
277         <menuitem label="SER" oncommand="changeFFEditor('SER');"/>
278         <menuitem label="VIS" oncommand="changeFFEditor('VIS');"/>
279         <menuitem label="MIX" oncommand="changeFFEditor('MIX');"/>
280         <menuitem label="MAP" oncommand="changeFFEditor('MAP');"/>
281         <menuitem label="SCO" oncommand="changeFFEditor('SCO');"/>
282         <menuitem label="REC" oncommand="changeFFEditor('REC');"/>
283         <menuitem label="COM" oncommand="changeFFEditor('COM');"/>
284         <menuitem label="MFHD" oncommand="changeFFEditor('MFHD');"/>
285     </menupopup>
286 </popupset>
287
288 </window>
289
290
291