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"?>
7 <!DOCTYPE window PUBLIC "" ""[
8 <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
11 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
13 <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 <scripts id="openils_util_scripts"/>
16 <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
18 <script src="marcedit.js" type="application/x-javascript; e4x=1"/>
20 <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties" />
21 <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" />
24 <caption label="&staff.cat.marcedit.options.label;"/>
26 <checkbox oils_persist="checked" accesskey="&staff.cat.marcedit.stackSubfields.accesskey;" label="&staff.cat.marcedit.stackSubfields.label;" oncommand="stackSubfields(this);" checked="false" id="stackSubfields"/>
27 <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"/>
28 <hbox id="fastItemAdd_textboxes">
29 <label control="fastItemAdd_callnumber" accesskey="&staff.cat.marcedit.fastItemAdd_callnumber.accesskey;" value="&staff.cat.marcedit.fastItemAdd_callnumber.label;" />
30 <textbox context="clipboard" id="fastItemAdd_callnumber" oils_persist="value" onchange="this.setAttribute('value',this.value);"/>
31 <label control="fastItemAdd_barcode" accesskey="&staff.cat.marcedit.fastItemAdd_barcode.accesskey;" value="&staff.cat.marcedit.fastItemAdd_barcode.label;" />
32 <textbox context="clipboard" id="fastItemAdd_barcode"/>
34 <button label="&staff.cat.marcedit.validate.label;" accesskey="&staff.cat.marcedit.validate.accesskey;" oncommand="validateAuthority(this);"/>
35 <button id="save-button" accesskey="&staff.cat.marcedit.save-button.accesskey;"/>
36 <button label="&staff.cat.marcedit.help.label;" accesskey="&staff.cat.marcedit.help.accesskey;"
38 $('catStrings').getString('staff.cat.marcedit.help.add_row') + '\n' +
39 $('catStrings').getString('staff.cat.marcedit.help.insert_row') + '\n' +
40 $('catStrings').getString('staff.cat.marcedit.help.copy_row_up') + '\n' +
41 $('catStrings').getString('staff.cat.marcedit.help.copy_row_down') + '\n' +
42 $('catStrings').getString('staff.cat.marcedit.help.add_subfield') + '\n' +
43 $('catStrings').getString('staff.cat.marcedit.help.remove_row') + '\n' +
44 $('catStrings').getString('staff.cat.marcedit.help.remove_subfield') + '\n' +
45 $('catStrings').getString('staff.cat.marcedit.help.replace_006') + '\n' +
46 $('catStrings').getString('staff.cat.marcedit.help.replace_007') + '\n' +
47 $('catStrings').getString('staff.cat.marcedit.help.replace_008')
54 <caption label="&staff.cat.marcedit.caption.label;"/>
55 <vbox flex="1" style="overflow: auto;">
59 <label value="&staff.cat.marcedit.toggleFFE.label;" ondblclick="toggleFFE();"/>
60 <label id="recordTypeLabel" context="recordTypeMenu"/>
63 <grid flex="0" id="leaderGrid" type="BKS" hidden="false" oils_persist="hidden">
80 <label name="Type" control="Type_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Type" />
81 <textbox id="Type_tb" context="clipboard" class="plain" name="Type" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
82 <label name="ELvl" control="ELvl_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="ELvl" />
83 <textbox id="Elvl_tb" context="clipboard" class="plain" name="ELvl" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
84 <label name="Srce" control="Srce_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Srce" />
85 <textbox id="Srce_tb" context="clipboard" class="plain" name="Srce" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
86 <label name="Audn" control="Audn_tb" set="BKS VIS SCO REC COM" value="Audn" />
87 <textbox id="Audn_tb" context="clipboard" class="plain" name="Audn" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
88 <label name="Ctrl" control="Ctrl_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Ctrl" />
89 <textbox id="Ctrl_tb" context="clipboard" class="plain" name="Ctrl" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
90 <label name="Lang" control="Lang_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Lang" />
91 <textbox id="Lang_tb" context="clipboard" class="plain" name="Lang" maxlength="3" size="3" oninput="updateFixedFields(this);" onfocus="this.select();"/>
94 <label name="BLvl" control="BLvl_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="BLvl" />
95 <textbox id="BLvl_tb" context="clipboard" class="plain" name="BLvl" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
96 <label name="Form" control="Form_tb" set="BKS SER VIS MIX MAP SCO REC" value="Form" />
97 <textbox id="Form_tb" context="clipboard" class="plain" name="Form" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
98 <label name="Conf" control="Conf_tb" set="BKS SER" value="Conf" />
99 <textbox id="Conf_tb" context="clipboard" class="plain" name="Conf" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
100 <label name="Biog" control="Biog_tb" set="BKS" value="Biog" />
101 <textbox id="Biog_tb" context="clipboard" class="plain" name="Biog" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
102 <label name="MRec" control="MRec_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="MRec" />
103 <textbox id="MRec_tb" context="clipboard" class="plain" name="MRec" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
104 <label name="Ctry" control="Ctry_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Ctry" />
105 <textbox id="Ctry_tb" context="clipboard" class="plain" name="Ctry" maxlength="3" size="3" oninput="updateFixedFields(this);" onfocus="this.select();"/>
108 <label name="S/L" control="s_l_tb" set="SER" value="S/L" />
109 <textbox id="s_l_tb" context="clipboard" class="plain" name="S/L" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
110 <label name="Cont" control="Cont_tb" set="BKS SER" value="Cont" />
111 <textbox id="Cont_tb" context="clipboard" class="plain" name="Cont" maxlength="4" size="4" oninput="updateFixedFields(this);" onfocus="this.select();"/>
112 <label name="GPub" control="GPub_tb" set="BKS SER VIS MAP COM" value="GPub" />
113 <textbox id="GPub_tb" context="clipboard" class="plain" name="GPub" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
114 <label name="LitF" control="LitF_tb" set="BKS" value="LitF" />
115 <textbox id="LitF_tb" context="clipboard" class="plain" name="LitF" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
116 <label name="Indx" control="Indx_tb" set="BKS MAP" value="Indx" />
117 <textbox id="Indx_tb" context="clipboard" class="plain" name="Indx" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
118 <label name="Alph" control="Alph_tb" set="SER" value="Alph" />
119 <textbox id="Alph_tb" context="clipboard" class="plain" name="Alph" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
122 <label name="Desc" control="Desc_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Desc" />
123 <textbox id="Desc_tb" context="clipboard" class="plain" name="Desc" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
124 <label name="Ills" control="Ills_tb" set="BKS" value="Ills" />
125 <textbox id="Ills_tb" context="clipboard" class="plain" name="Ills" maxlength="4" size="4" oninput="updateFixedFields(this);" onfocus="this.select();"/>
126 <label name="Fest" control="Fest_tb" set="BKS" value="Fest" />
127 <textbox id="Fest_tb" context="clipboard" class="plain" name="Fest" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
128 <label name="DtSt" control="DtSt_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="DtSt" />
129 <textbox id="DtSt_tb" context="clipboard" class="plain" name="DtSt" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
130 <label name="Date1" control="Date1_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Date1" />
131 <textbox id="Date1_tb" context="clipboard" class="plain" name="Date1" maxlength="4" size="4" oninput="updateFixedFields(this);" onfocus="this.select();"/>
132 <label name="Date2" control="Date2_tb" set="BKS SER VIS MIX MAP SCO REC COM" value="Date2" />
133 <textbox id="Date2_tb" context="clipboard" class="plain" name="Date2" maxlength="4" size="4" oninput="updateFixedFields(this);" onfocus="this.select();"/>
136 <label name="SrTp" control="SrTp_tb" set="SER" value="SrTp" />
137 <textbox id="SrTp_tb" context="clipboard" class="plain" name="SrTp" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
138 <label name="Regl" control="Regl_tb" set="SER" value="Regl" />
139 <textbox id="Regl_tb" context="clipboard" class="plain" name="Regl" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
140 <label name="Orig" control="Orig_tb" set="SER" value="Orig" />
141 <textbox id="Orig_tb" context="clipboard" class="plain" name="Orig" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
142 <label name="Freq" control="Freq_tb" set="SER" value="Freq" />
143 <textbox id="Freq_tb" context="clipboard" class="plain" name="Freq" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
144 <label name="EntW" control="EntW_tb" set="SER" value="EntW" />
145 <textbox id="EntW_tb" context="clipboard" class="plain" name="EntW" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
148 <label name="TrAr" control="TrAr_tb" set="SCO REC" value="TrAr" />
149 <textbox id="TrAr_tb" context="clipboard" class="plain" name="TrAr" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
150 <label name="Part" control="Part_tb" set="SCO REC" value="Part" />
151 <textbox id="Part_tb" context="clipboard" class="plain" name="Part" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
152 <label name="LTxt" control="LTxt_tb" set="SCO REC" value="LTxt" />
153 <textbox id="LTxt_tb" context="clipboard" class="plain" name="LTxt" maxlength="2" size="2" oninput="updateFixedFields(this);" onfocus="this.select();"/>
154 <label name="FMus" control="FMus_tb" set="SCO REC" value="FMus" />
155 <textbox id="FMus_tb" context="clipboard" class="plain" name="FMus" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
156 <label name="AccM" control="AccM_tb" set="SCO REC" value="AccM" />
157 <textbox id="AccM_tb" context="clipboard" class="plain" name="AccM" maxlength="6" size="6" oninput="updateFixedFields(this);" onfocus="this.select();"/>
158 <label name="Comp" control="Comp_tb" set="SCO REC" value="Comp" />
159 <textbox id="Comp_tb" context="clipboard" class="plain" name="Comp" maxlength="2" size="2" oninput="updateFixedFields(this);" onfocus="this.select();"/>
162 <label name="SpFm" control="SpFm_tb" set="MAP" value="SpFm" />
163 <textbox id="SpFm_tb" context="clipboard" class="plain" name="SpFm" maxlength="2" size="2" oninput="updateFixedFields(this);" onfocus="this.select();"/>
164 <label name="Relf" control="Relf_tb" set="MAP" value="Relf" />
165 <textbox id="Relf_tb" context="clipboard" class="plain" name="Relf" maxlength="4" size="4" oninput="updateFixedFields(this);" onfocus="this.select();"/>
166 <label name="Proj" control="Proj_tb" set="MAP" value="Proj" />
167 <textbox id="Proj_tb" context="clipboard" class="plain" name="Proj" maxlength="2" size="2" oninput="updateFixedFields(this);" onfocus="this.select();"/>
168 <label name="CrTp" control="CrTp_tb" set="MAP" value="CrTp" />
169 <textbox id="CrTp_tb" context="clipboard" class="plain" name="CrTp" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
172 <label name="TMat" control="TMat_tb" set="VIS" value="TMat" />
173 <textbox id="TMat_tb" context="clipboard" class="plain" name="TMat" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
174 <label name="Time" control="Time_tb" set="VIS" value="Time" />
175 <textbox id="Time_tb" context="clipboard" class="plain" name="Time" maxlength="3" size="3" oninput="updateFixedFields(this);" onfocus="this.select();"/>
176 <label name="Tech" control="Tech_tb" set="VIS" value="Tech" />
177 <textbox id="Tech_tb" context="clipboard" class="plain" name="Tech" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
178 <label name="File" control="File_tb" set="COM" value="File" />
179 <textbox id="File_tb" context="clipboard" class="plain" name="File" maxlength="1" size="1" oninput="updateFixedFields(this);" onfocus="this.select();"/>
187 <grid id="recGrid" flex="1">
199 <grid name="authority-marc-template" hidden="true">
210 <popup id="recordTypeMenu" position="after_start">
211 <menuitem label="BKS" oncommand="changeFFEditor('BKS');"/>
212 <menuitem label="SER" oncommand="changeFFEditor('SER');"/>
213 <menuitem label="VIS" oncommand="changeFFEditor('VIS');"/>
214 <menuitem label="MIX" oncommand="changeFFEditor('MIX');"/>
215 <menuitem label="MAP" oncommand="changeFFEditor('MAP');"/>
216 <menuitem label="SCO" oncommand="changeFFEditor('SCO');"/>
217 <menuitem label="REC" oncommand="changeFFEditor('REC');"/>
218 <menuitem label="COM" oncommand="changeFFEditor('COM');"/>