]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Evergreen/staff_client/chrome/content/evergreen/cat/copy_overlay.xul
copy browser tweak
[working/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 </hbox>
65
66 <hbox id="note_button_box">
67         <hbox flex="1">
68                 <button label="&copy.notes.delete;" accesskey="&copy.notes.delete.key;" command="cmd_alert"/>
69                 <button label="&copy.notes.add;" accesskey="&copy.notes.add.key;" command="cmd_alert"/>
70         </hbox>
71         <button label="&copy.close;" accesskey="&copy.close.key;" oncommand="window.close();"/>
72 </hbox>
73
74 <deck id="bottom_deck" flex="1">
75         <vbox>
76                 <listbox id="ephemeral_listbox" flex="1" seltype="multiple" onselect="transfer_attributes(event);">
77                         <listhead>
78                                 <listheader/>
79                                 <listheader label="Location"/>
80                                 <listheader label="Call Number"/>
81                                 <listheader label="Barcode"/>
82                         </listhead>
83                         <listcols>
84                                 <listcol/>
85                                 <listcol flex="1"/>
86                                 <listcol flex="1"/>
87                                 <listcol flex="1"/>
88                         </listcols>
89                 </listbox>
90         </vbox>
91 </deck>
92
93
94 <deck id="pines_info_deck" flex="1">
95         <vbox>
96                 <listbox id="pines_attr_listbox"/>
97         </vbox>
98 </deck>
99
100 <deck id="local_info_deck" flex="1">
101         <vbox>
102                 <listbox id="local_attr_listbox"/>
103                 <hbox pack="end"><button disabled="true" label="&copy.edit_categories;" command="cmd_alert"/></hbox>
104         </vbox>
105 </deck>
106
107 <!-- At some point we will programatically populate these grids and menus -->
108
109 <menulist id="shelving-location-menu">
110         <menupopup id="shelving-location-popup" command="cmd_apply">
111                 <menuitem id="shelving-location-prompt" label="Select one..." hidden="true"/>
112         </menupopup>
113 </menulist>
114
115 <listbox id="notes_listbox" flex="1">
116         <listhead>
117                 <listheader label="&copy.notes.opac;"/>
118                 <listheader label="&copy.notes.date;"/>
119                 <listheader label="&copy.notes.from;"/>
120                 <listheader label="&copy.notes;"/>
121         </listhead>
122         <listcols>
123                 <listcol/>
124                 <listcol/>
125                 <listcol/>
126                 <listcol flex="1"/>
127         </listcols>
128         <!--
129         <listitem allowevents="true">
130                 <listcell>
131                         <checkbox/>
132                 </listcell>
133                 <listcell label="2004-12-01"/>
134                 <listcell label="Admin"/>
135                 <listcell label="Legacy Fields: Item Type = BOOK, Item Cat1 = FICTION, Item Cat2 = ADULT"/>
136         </listitem>
137         -->
138 </listbox>
139
140 <listbox id="local_attr_listbox" flex="1">
141         <listhead>
142                 <listheader />
143                 <listheader label="&copy.local.attr;"/>
144                 <listheader label="&copy.local.attr.value;"/>
145         </listhead>
146         <listcols>
147                 <listcol />
148                 <listcol flex="1"/>
149                 <listcol flex="2"/>
150         </listcols>
151         <!--
152         <listitem allowevents="true">
153                 <listcell label="&copy.attr.stat.genre;"/>
154                 <listcell>
155                         <menulist id="stat-genre-menu"/>
156                         <hbox pack="end" flex="1">
157                                 <button disabled="true" label="&copy.edit_entries;" command="cmd_alert"/>
158                         </hbox>
159                 </listcell>
160         </listitem>
161         <listitem allowevents="true">
162                 <listcell label="&copy.attr.stat.audience;"/>
163                 <listcell>
164                         <menulist id="stat-audience-menu"/>
165                         <hbox pack="end" flex="1">
166                                 <button disabled="true" label="&copy.edit_entries;" command="cmd_alert"/>
167                         </hbox>
168                 </listcell>
169         </listitem>
170         -->
171 </listbox>
172
173 <listbox id="pines_attr_listbox" flex="1">
174         <listhead>
175                 <listheader label="&copy.pines.attr;"/>
176                 <listheader label="&copy.pines.attr.value;"/>
177         </listhead>
178         <listcols>
179                 <listcol flex="1"/>
180                 <listcol flex="2"/>
181         </listcols>
182         <listitem allowevents="true" hidden="true">
183                 <listcell label="&copy.attr.barcode;"/>
184                 <listcell label="330620563200"/>
185         </listitem>
186         <listitem allowevents="true">
187                 <listcell label="&copy.attr.copy_status;"/>
188                 <listcell>
189                         <menulist id="copy-status-menu"/>
190                 </listcell>
191         </listitem>
192         <listitem allowevents="true">
193                 <listcell label="&copy.attr.shelving_location;"/>
194                 <listcell>
195                         <menulist id="shelving-location-menu"/>
196                         <!--<hbox pack="end" flex="1">
197                                 <button disabled="true" label="&copy.edit_entries;" command="cmd_alert"/>
198                         </hbox>-->
199                 </listcell>
200         </listitem>
201
202         <listitem allowevents="true">
203                 <listcell label="&copy.attr.circulating_lib;"/>
204                 <listcell>
205                         <menulist id="circulating-library-menu"/>
206                 </listcell>
207         </listitem>
208         <listitem allowevents="true">
209                 <listcell label="&copy.attr.loan_duration;"/>
210                 <listcell>
211                         <menulist id="loan-duration-menu"/>
212                 </listcell>
213         </listitem>
214         <listitem allowevents="true">
215                 <listcell label="&copy.attr.fine_level;"/>
216                 <listcell>
217                         <menulist id="fine-level-menu"/>
218                 </listcell>
219         </listitem>
220         <listitem allowevents="true">
221                 <listcell label="&copy.attr.circulate;"/>
222                 <listcell>
223                         <menulist id="circulate_menu"/>
224                 </listcell>
225         </listitem>
226         <listitem allowevents="true">
227                 <listcell label="&copy.attr.deposit;"/>
228                 <listcell>
229                         <menulist id="deposit_menu"/>
230                         <label value="&copy.attr.deposit_amount;"/>
231                         <textbox id="deposit_amount" size="6" onchange="apply_attribute(event);" value="0.00"/>
232                 </listcell>
233         </listitem>
234         <listitem allowevents="true">
235                 <listcell label="&copy.attr.price;"/>
236                 <listcell>
237                         <textbox id="price" size="6" onchange="apply_attribute(event);" value="0.00"/>
238                 </listcell>
239         </listitem>
240         <listitem allowevents="true">
241                 <listcell label="&copy.attr.reference_material;"/>
242                 <listcell>
243                         <menulist id="reference_menu"/>
244                 </listcell>
245         </listitem>
246         <listitem allowevents="true">
247                 <listcell label="&copy.attr.opac_visible;"/>
248                 <listcell>
249                         <menulist id="opac_visible_menu"/>
250                 </listcell>
251         </listitem>
252 </listbox>
253
254 <menulist id="opac_visible_menu">
255         <menupopup id="opac_visible_popup" command="cmd_apply">
256                 <menuitem label="&copy.attr.opac_visible.yes;" value="1" selected="true"/>
257                 <menuitem label="&copy.attr.opac_visible.no;" value="0"/>
258         </menupopup>
259 </menulist>
260
261 <menulist id="reference_menu">
262         <menupopup id="reference_popup" command="cmd_apply" >
263                 <menuitem label="&copy.attr.reference_material.no;" value="0" selected="true"/>
264                 <menuitem label="&copy.attr.reference_material.yes;" value="1"/>
265         </menupopup>
266 </menulist>
267
268 <menulist id="deposit_menu">
269         <menupopup id="deposit_popup" command="cmd_apply">
270                 <menuitem label="&copy.attr.deposit.no;" value="0" selected="true"/>
271                 <menuitem label="&copy.attr.deposit.yes;" value="1"/>
272         </menupopup>
273 </menulist>
274
275 <menulist id="circulate_menu">
276         <menupopup id="circulate_popup" command="cmd_apply">
277                 <menuitem label="&copy.attr.circulate.yes;" value="1" selected="true"/>
278                 <menuitem label="&copy.attr.circulate.no;" value="0"/>
279         </menupopup>
280 </menulist>
281
282 <menulist id="fine-level-menu">
283         <menupopup id="fine-level-popup" command="cmd_apply">
284                 <menuitem label="&copy.attr.fine_level.normal;" value="2" selected="true"/>
285                 <menuitem label="&copy.attr.fine_level.high;" value="3"/>
286                 <menuitem label="&copy.attr.fine_level.low;" value="1"/>
287         </menupopup>
288 </menulist>
289
290 <menulist id="loan-duration-menu">
291         <menupopup id="loan-duration-popup" command="cmd_apply">
292                 <menuitem label="&copy.attr.loan_duration.normal;" value="2" selected="true"/>
293                 <menuitem label="&copy.attr.loan_duration.long;" value="3"/>
294                 <menuitem label="&copy.attr.loan_duration.short;" value="1"/>
295         </menupopup>
296 </menulist>
297
298 <menulist id="circulating-library-menu">
299         <menupopup id="circulating-library-popup" command="cmd_apply">
300         </menupopup>
301 </menulist>
302
303 <menulist id="copy-status-menu">
304         <menupopup id="copy-status-popup" command="cmd_apply">
305                 <!-- <menuitem label="&copy.attr.copy_status.example1;" value="&copy.attr.copy_status.example1;"/> -->
306         </menupopup>
307 </menulist>
308
309 <!-- Accelerator Keys (Accessor Keys are in DTD's) -->
310 <keyset id="copy_keys">
311         <key id="" modifiers="accel" key="A" command="cmd_"/>
312 </keyset>
313
314 </overlay>