]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/cat/marcedit.xul
added "insert before" functionality for datafield rows
[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 <window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul" xmlns:xhtml="http://www.w3.org/1999/xhtml" onload="my_init()">
6
7 <script src="/xul/server/util/sprintf.js" type="application/x-javascript; e4x=1"/>
8 <script src="marcedit.js" type="application/x-javascript; e4x=1"/>
9 <script src="/opac/common/js/CGI.js" type="application/x-javascript; e4x=1"/>
10
11 <groupbox flex="0">
12         <caption label="Options"/>
13         <hbox flex="1">
14                 <checkbox persist="checked" accesskey='s' label="Stack subfields" onclick="stackSubfields(this);" checked="false" id="stackSubfields"/>
15                 <button label="Validate" oncommand="validateAuthority(this);"/>
16                 <button id="save-button"/>
17                 <button label="Help" oncommand="alert('Add Row: CTRL+Enter\nInsert Row: CTRL+Shift+Enter\nAdd Subfield: CTRL+D\nRemove Row: CTRL+Del\nRemove Subfield: SHIFT+Del\nCreate/Replace 006: CTRL+F6\nCreate/Replace 007: CTRL+F7\nCreate/Replace 008: CTRL+F8\n');"/>
18         </hbox>
19 </groupbox>
20
21 <groupbox flex="1">
22         <caption label="MARC Record"/>
23         <vbox flex="1" style="overflow: auto;">
24                 <hbox>
25                 <groupbox flex="0">
26                         <caption>
27                                 <label value="Fixed Fields -- Record type: " ondblclick="toggleFFE();"/>
28                                 <label id="recordTypeLabel" context="recordTypeMenu"/>
29                         </caption>
30                         <vbox flex="0">
31                                 <grid flex="0" id="leaderGrid" type="BKS" hidden="false" persist="hidden">
32                                         <columns>
33                                                 <column flex="1"/>
34                                                 <column flex="1"/>
35                                                 <column flex="1"/>
36                                                 <column flex="1"/>
37                                                 <column flex="1"/>
38                                                 <column flex="1"/>
39                                                 <column flex="1"/>
40                                                 <column flex="1"/>
41                                                 <column flex="1"/>
42                                                 <column flex="1"/>
43                                                 <column flex="1"/>
44                                                 <column flex="1"/>
45                                         </columns>
46                                         <rows>
47                                                 <row>
48                                                         <label name="Type" set="BKS SER VIS MIX MAP SCO REC COM" value="Type" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
49                                                         <textbox class="plain" name="Type" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
50                                                         <label name="ELvl" set="BKS SER VIS MIX MAP SCO REC COM" value="ELvl" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
51                                                         <textbox class="plain" name="ELvl" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
52                                                         <label name="Srce" set="BKS SER VIS MIX MAP SCO REC COM" value="Srce" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
53                                                         <textbox class="plain" name="Srce" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
54                                                         <label name="Audn" set="BKS VIS SCO REC COM" value="Audn" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
55                                                         <textbox class="plain" name="Audn" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
56                                                         <label name="Ctrl" set="BKS SER VIS MIX MAP SCO REC COM" value="Ctrl" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
57                                                         <textbox class="plain" name="Ctrl" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
58                                                         <label name="Lang" set="BKS SER VIS MIX MAP SCO REC COM" value="Lang" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
59                                                         <textbox class="plain" name="Lang" maxlength="3" size="3" oninput="updateFixedFields(this);"/>
60                                                 </row>
61                                                 <row>
62                                                         <label name="BLvl" set="BKS SER VIS MIX MAP SCO REC COM" value="BLvl" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
63                                                         <textbox class="plain" name="BLvl" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
64                                                         <label name="Form" set="BKS SER VIS MIX MAP SCO REC" value="Form" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
65                                                         <textbox class="plain" name="Form" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
66                                                         <label name="Conf" set="BKS SER" value="Conf" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
67                                                         <textbox class="plain" name="Conf" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
68                                                         <label name="Biog" set="BKS" value="Biog" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
69                                                         <textbox class="plain" name="Biog" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
70                                                         <label name="MRec" set="BKS SER VIS MIX MAP SCO REC COM" value="MRec" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
71                                                         <textbox class="plain" name="MRec" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
72                                                         <label name="Ctry" set="BKS SER VIS MIX MAP SCO REC COM" value="Ctry" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
73                                                         <textbox class="plain" name="Ctry" maxlength="3" size="3" oninput="updateFixedFields(this);"/>
74                                                 </row>
75                                                 <row>
76                                                         <label name="S/L" set="SER" value="S/L" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
77                                                         <textbox class="plain" name="S/L" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
78                                                         <label name="Cont" set="BKS SER" value="Cont" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
79                                                         <textbox class="plain" name="Cont" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
80                                                         <label name="GPub" set="BKS SER VIS MAP COM" value="GPub" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
81                                                         <textbox class="plain" name="GPub" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
82                                                         <label name="LitF" set="BKS" value="LitF" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
83                                                         <textbox class="plain" name="LitF" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
84                                                         <label name="Indx" set="BKS MAP" value="Indx" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
85                                                         <textbox class="plain" name="Indx" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
86                                                         <label name="Alph" set="SER" value="Alph" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
87                                                         <textbox class="plain" name="Alph" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
88                                                 </row>
89                                                 <row>
90                                                         <label name="Desc" set="BKS SER VIS MIX MAP SCO REC COM" value="Desc" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
91                                                         <textbox class="plain" name="Desc" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
92                                                         <label name="Ills" set="BKS" value="Ills" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
93                                                         <textbox class="plain" name="Ills" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
94                                                         <label name="Fest" set="BKS" value="Fest" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
95                                                         <textbox class="plain" name="Fest" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
96                                                         <label name="DtSt" set="BKS SER VIS MIX MAP SCO REC COM" value="DtSt" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
97                                                         <textbox class="plain" name="DtSt" maxlength="1" size="1" oninput="updateFixedFields(this);"/>
98                                                         <label name="Date1" set="BKS SER VIS MIX MAP SCO REC COM" value="Date1" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
99                                                         <textbox class="plain" name="Date1" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
100                                                         <label name="Date2" set="BKS SER VIS MIX MAP SCO REC COM" value="Date2" onclick="this.nextSibling.focus(); this.nextSibling.select();"/>
101                                                         <textbox class="plain" name="Date2" maxlength="4" size="4" oninput="updateFixedFields(this);"/>
102                                                 </row>
103                                         </rows>
104                                 </grid>
105                         </vbox>
106                 </groupbox>
107                 </hbox>
108
109                 <grid id="recGrid" flex="1">
110                         <columns>
111                                 <column/>
112                                 <column/>
113                                 <column/>
114                                 <column flex="1"/>
115                         </columns>
116                         <rows/>
117                 </grid>
118         </vbox>
119 </groupbox>
120
121 <grid name="authority-marc-template" hidden="true">
122         <columns>
123                 <column/>
124                 <column/>
125                 <column/>
126                 <column flex="1"/>
127         </columns>
128         <rows/>
129 </grid>
130
131 <popupset>
132         <popup id="recordTypeMenu" position="after_start">
133                 <menuitem label="BKS" oncommand="changeFFEditor('BKS');"/>
134                 <menuitem label="SER" oncommand="changeFFEditor('SER');"/>
135                 <menuitem label="VIS" oncommand="changeFFEditor('VIS');"/>
136                 <menuitem label="MIX" oncommand="changeFFEditor('MIX');"/>
137                 <menuitem label="MAP" oncommand="changeFFEditor('MAP');"/>
138                 <menuitem label="SCO" oncommand="changeFFEditor('SCO');"/>
139                 <menuitem label="REC" oncommand="changeFFEditor('REC');"/>
140                 <menuitem label="COM" oncommand="changeFFEditor('COM');"/>
141         </popup>
142 </popupset>
143
144 </window>
145
146
147