]> git.evergreen-ils.org Git - Evergreen.git/blob - Evergreen/staff_client/chrome/content/evergreen/cat/copy_overlay.xul
change the batch copy editor so that it's all or nothing
[Evergreen.git] / Evergreen / staff_client / chrome / content / evergreen / cat / copy_overlay.xul
1 <?xml version="1.0"?>
2 <!DOCTYPE overlay SYSTEM "chrome://evergreen/locale/cat.dtd">
3 <overlay id="copy_overlay" 
4         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
5
6 <!-- The javascript logic for the staff client -->
7 <Evergreen id="copy_js">
8         <util id="util_js"/>
9         <!--<script src="chrome://evergreen/content/util/RemoteRequest.js" />
10         <script src="chrome://evergreen/content/util/ses.js" />-->
11         <script src="copy.js" />
12 </Evergreen>
13
14 <!-- Some logic abstracted a bit.  Sort of like an API list -->
15 <commandset id="copy_cmds">
16         <command id="cmd_alert" oncommand="
17                 alert(event.target.tagName + '  Not Yet Implemented');
18         "/>
19         <command id="cmd_apply" oncommand="
20                 apply_attribute(event);
21         "/>
22         <command id="cmd_save" oncommand="
23                 save_attributes();
24         "/>
25 </commandset>
26
27 <!-- The top level widget for the cat client -->
28 <vbox id="copy_vbox" flex="1">
29         <vbox flex="1">
30                 <hbox flex="1">
31                         <deck id="pines_info_deck"/>
32                         <splitter collapse="after"> <grippy/> </splitter>
33                         <vbox>
34                                 <deck id="local_info_deck"/>
35                                 <!--
36                                 <splitter collapse="after"> <grippy/> </splitter>
37                                 <vbox>
38                                         <listbox id="notes_listbox"/>   
39                                         <hbox id="note_button_box"/>
40                                 </vbox>
41                                 -->
42                         </vbox>
43                 </hbox>
44                 <hbox id="copy_button_box"/>
45         </vbox>
46         <splitter collapse="after"> <grippy/> </splitter>
47         <vbox flex="1" hidden="true">
48                 <deck id="bottom_deck"/>
49         </vbox>
50 </vbox>
51
52 <hbox id="copy_button_box">
53         <!--
54         <button label="&copy.save;" accesskey="&copy.save.key;" command="cmd_alert"/>
55         <spacer flex="1"/>
56         <button label="&copy.reload;" accesskey="&copy.reload.key;" command="cmd_alert"/>
57         <button label="&copy.bucket;" accesskey="&copy.bucket.key;" command="cmd_alert"/>
58         <button label="&copy.clone;" accesskey="&copy.clone.key;" command="cmd_alert"/>
59         <button label="&copy.transfer;" accesskey="&copy.transfer.key;" command="cmd_alert"/>
60         <button label="&copy.delete;" accesskey="&copy.delete.key;" command="cmd_alert"/>
61         <button id="apply_attr_button" label="Apply these Attributes to the selected Copies" command="cmd_apply"/>
62         <button id="save_attr_button" label="Save Changes" command="cmd_save"/>
63         -->
64         <description>Any change made above affects the copies selected below.</description>
65 </hbox>
66
67 <hbox id="note_button_box">
68         <hbox flex="1">
69                 <button label="&copy.notes.delete;" accesskey="&copy.notes.delete.key;" command="cmd_alert"/>
70                 <button label="&copy.notes.add;" accesskey="&copy.notes.add.key;" command="cmd_alert"/>
71         </hbox>
72         <button label="&copy.close;" accesskey="&copy.close.key;" oncommand="window.close();"/>
73 </hbox>
74
75 <deck id="bottom_deck" flex="1">
76         <vbox>
77                 <listbox id="ephemeral_listbox" flex="1" seltype="multiple" onselect="transfer_attributes(event);">
78                         <listhead>
79                                 <listheader/>
80                                 <listheader label="Location"/>
81                                 <listheader label="Call Number"/>
82                                 <listheader label="Barcode"/>
83                         </listhead>
84                         <listcols>
85                                 <listcol/>
86                                 <listcol flex="1"/>
87                                 <listcol flex="1"/>
88                                 <listcol flex="1"/>
89                         </listcols>
90                 </listbox>
91         </vbox>
92 </deck>
93
94
95 <deck id="pines_info_deck" flex="1">
96         <vbox>
97                 <listbox id="pines_attr_listbox"/>
98         </vbox>
99 </deck>
100
101 <deck id="local_info_deck" flex="1">
102         <vbox>
103                 <listbox id="local_attr_listbox"/>
104                 <hbox pack="end"><button disabled="true" label="&copy.edit_categories;" command="cmd_alert"/></hbox>
105         </vbox>
106 </deck>
107
108 <!-- At some point we will programatically populate these grids and menus -->
109
110 <menulist id="shelving-location-menu">
111         <menupopup id="shelving-location-popup" command="cmd_apply">
112                 <menuitem id="shelving-location-prompt" label="Select one..." hidden="true"/>
113         </menupopup>
114 </menulist>
115
116 <listbox id="notes_listbox" flex="1">
117         <listhead>
118                 <listheader label="&copy.notes.opac;"/>
119                 <listheader label="&copy.notes.date;"/>
120                 <listheader label="&copy.notes.from;"/>
121                 <listheader label="&copy.notes;"/>
122         </listhead>
123         <listcols>
124                 <listcol/>
125                 <listcol/>
126                 <listcol/>
127                 <listcol flex="1"/>
128         </listcols>
129         <!--
130         <listitem allowevents="true">
131                 <listcell>
132                         <checkbox/>
133                 </listcell>
134                 <listcell label="2004-12-01"/>
135                 <listcell label="Admin"/>
136                 <listcell label="Legacy Fields: Item Type = BOOK, Item Cat1 = FICTION, Item Cat2 = ADULT"/>
137         </listitem>
138         -->
139 </listbox>
140
141 <listbox id="local_attr_listbox" flex="1">
142         <listhead>
143                 <listheader />
144                 <listheader label="&copy.local.attr;"/>
145                 <listheader label="&copy.local.attr.value;"/>
146         </listhead>
147         <listcols>
148                 <listcol />
149                 <listcol flex="1"/>
150                 <listcol flex="2"/>
151         </listcols>
152         <!--
153         <listitem allowevents="true">
154                 <listcell label="&copy.attr.stat.genre;"/>
155                 <listcell>
156                         <menulist id="stat-genre-menu"/>
157                         <hbox pack="end" flex="1">
158                                 <button disabled="true" label="&copy.edit_entries;" command="cmd_alert"/>
159                         </hbox>
160                 </listcell>
161         </listitem>
162         <listitem allowevents="true">
163                 <listcell label="&copy.attr.stat.audience;"/>
164                 <listcell>
165                         <menulist id="stat-audience-menu"/>
166                         <hbox pack="end" flex="1">
167                                 <button disabled="true" label="&copy.edit_entries;" command="cmd_alert"/>
168                         </hbox>
169                 </listcell>
170         </listitem>
171         -->
172 </listbox>
173
174 <listbox id="pines_attr_listbox" flex="1">
175         <listhead>
176                 <listheader label="&copy.pines.attr;"/>
177                 <listheader label="&copy.pines.attr.value;"/>
178         </listhead>
179         <listcols>
180                 <listcol flex="1"/>
181                 <listcol flex="2"/>
182         </listcols>
183         <listitem allowevents="true" hidden="true">
184                 <listcell label="&copy.attr.barcode;"/>
185                 <listcell label="330620563200"/>
186         </listitem>
187         <listitem allowevents="true">
188                 <listcell label="&copy.attr.copy_status;"/>
189                 <listcell>
190                         <menulist id="copy-status-menu"/>
191                 </listcell>
192         </listitem>
193         <listitem allowevents="true">
194                 <listcell label="&copy.attr.shelving_location;"/>
195                 <listcell>
196                         <menulist id="shelving-location-menu"/>
197                         <!--<hbox pack="end" flex="1">
198                                 <button disabled="true" label="&copy.edit_entries;" command="cmd_alert"/>
199                         </hbox>-->
200                 </listcell>
201         </listitem>
202
203         <listitem allowevents="true">
204                 <listcell label="&copy.attr.circulating_lib;"/>
205                 <listcell>
206                         <menulist id="circulating-library-menu"/>
207                 </listcell>
208         </listitem>
209         <listitem allowevents="true">
210                 <listcell label="&copy.attr.loan_duration;"/>
211                 <listcell>
212                         <menulist id="loan-duration-menu"/>
213                 </listcell>
214         </listitem>
215         <listitem allowevents="true">
216                 <listcell label="&copy.attr.fine_level;"/>
217                 <listcell>
218                         <menulist id="fine-level-menu"/>
219                 </listcell>
220         </listitem>
221         <listitem allowevents="true">
222                 <listcell label="&copy.attr.circulate;"/>
223                 <listcell>
224                         <menulist id="circulate_menu"/>
225                 </listcell>
226         </listitem>
227         <listitem allowevents="true">
228                 <listcell label="&copy.attr.deposit;"/>
229                 <listcell>
230                         <menulist id="deposit_menu"/>
231                         <label value="&copy.attr.deposit_amount;"/>
232                         <textbox id="deposit_amount" size="6" onchange="apply_attribute(event);" value="0.00"/>
233                 </listcell>
234         </listitem>
235         <listitem allowevents="true">
236                 <listcell label="&copy.attr.price;"/>
237                 <listcell>
238                         <textbox id="price" size="6" onchange="apply_attribute(event);" value="0.00"/>
239                 </listcell>
240         </listitem>
241         <listitem allowevents="true">
242                 <listcell label="&copy.attr.reference_material;"/>
243                 <listcell>
244                         <menulist id="reference_menu"/>
245                 </listcell>
246         </listitem>
247         <listitem allowevents="true">
248                 <listcell label="&copy.attr.opac_visible;"/>
249                 <listcell>
250                         <menulist id="opac_visible_menu"/>
251                 </listcell>
252         </listitem>
253 </listbox>
254
255 <menulist id="opac_visible_menu">
256         <menupopup id="opac_visible_popup" command="cmd_apply">
257                 <menuitem label="&copy.attr.opac_visible.yes;" value="1" selected="true"/>
258                 <menuitem label="&copy.attr.opac_visible.no;" value="0"/>
259         </menupopup>
260 </menulist>
261
262 <menulist id="reference_menu">
263         <menupopup id="reference_popup" command="cmd_apply" >
264                 <menuitem label="&copy.attr.reference_material.no;" value="0" selected="true"/>
265                 <menuitem label="&copy.attr.reference_material.yes;" value="1"/>
266         </menupopup>
267 </menulist>
268
269 <menulist id="deposit_menu">
270         <menupopup id="deposit_popup" command="cmd_apply">
271                 <menuitem label="&copy.attr.deposit.no;" value="0" selected="true"/>
272                 <menuitem label="&copy.attr.deposit.yes;" value="1"/>
273         </menupopup>
274 </menulist>
275
276 <menulist id="circulate_menu">
277         <menupopup id="circulate_popup" command="cmd_apply">
278                 <menuitem label="&copy.attr.circulate.yes;" value="1" selected="true"/>
279                 <menuitem label="&copy.attr.circulate.no;" value="0"/>
280         </menupopup>
281 </menulist>
282
283 <menulist id="fine-level-menu">
284         <menupopup id="fine-level-popup" command="cmd_apply">
285                 <menuitem label="&copy.attr.fine_level.normal;" value="2" selected="true"/>
286                 <menuitem label="&copy.attr.fine_level.high;" value="3"/>
287                 <menuitem label="&copy.attr.fine_level.low;" value="1"/>
288         </menupopup>
289 </menulist>
290
291 <menulist id="loan-duration-menu">
292         <menupopup id="loan-duration-popup" command="cmd_apply">
293                 <menuitem label="&copy.attr.loan_duration.normal;" value="2" selected="true"/>
294                 <menuitem label="&copy.attr.loan_duration.long;" value="3"/>
295                 <menuitem label="&copy.attr.loan_duration.short;" value="1"/>
296         </menupopup>
297 </menulist>
298
299 <menulist id="circulating-library-menu">
300         <menupopup id="circulating-library-popup" command="cmd_apply">
301         </menupopup>
302 </menulist>
303
304 <menulist id="copy-status-menu">
305         <menupopup id="copy-status-popup" command="cmd_apply">
306                 <!-- <menuitem label="&copy.attr.copy_status.example1;" value="&copy.attr.copy_status.example1;"/> -->
307         </menupopup>
308 </menulist>
309
310 <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
311 <keyset id="copy_keys">
312         <key id="" modifiers="accel" key="A" command="cmd_"/>
313 </keyset>
314
315 </overlay>