]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/serial/manage_items.xul
unsaved data loophole
[working/Evergreen.git] / Open-ILS / xul / staff_client / server / serial / manage_items.xul
1 <?xml version="1.0"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Manage Items Overlay -->
4 <!--
5 vim:noet:sw=4:ts=4:
6 -->
7 <!DOCTYPE overlay PUBLIC "" ""[
8     <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
9 ]>
10
11 <overlay id="serial_manage_items_overlay" 
12         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
13     <script type="text/javascript" src="/xul/server/serial/manage_items.js"/>
14     <script>
15     <![CDATA[
16         function my_init() {
17             try {
18                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
19                 if (typeof JSAN == 'undefined') { 
20                     throw( document.getElementById("commonStrings").getString('common.jsan.missing') );
21                 }
22                 JSAN.errorLevel = "die"; // none, warn, or die
23                 JSAN.addRepository('/xul/server/');
24                 JSAN.use('util.error'); g.error = new util.error();
25                 g.error.sdump('D_TRACE','my_init() for manage_items.xul');
26
27                 JSAN.use('serial.manage_items'); g.manage_items = new serial.manage_items();
28
29                 //g.manage_items.init( { 'sre_id' : xul_param('sre_id'), 'sdist_id' : xul_param('sdist_id') } );
30                 g.manage_items.init( { 'docid' : xul_param('docid') } );
31
32             } catch(E) {
33                 var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ['serial/manage_items.xul', E]);
34                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
35                 alert(err_msg);
36             }
37         }
38
39     ]]>
40     </script>
41     <popupset>
42         <popup id="serial_manage_items_popup">
43             <menuitem command="cmd_edit_items" label="&staff.serial.manage_items.actions.cmd_edit_items.label;" accesskey="&staff.serial.manage_items.actions.cmd_edit_items.accesskey;"/>
44             <menuitem command="cmd_reset_items" label="&staff.serial.manage_items.actions.cmd_reset_items.label;" />
45             <menuitem command="cmd_delete_items" label="&staff.serial.manage_items.actions.cmd_delete_items.label;" accesskey="&staff.serial.manage_items.actions.cmd_delete_items.accesskey;"/>
46         </popup>
47     </popupset>
48     <tabpanel id="serial_manage_items" orient="vertical" flex="1">
49         <hbox align="center">
50             <label id="serial_manage_items_context" style="font-weight: bold" value="&staff.serial.manage_items.context.label;"/>
51             <hbox id="serial_item_lib_menu_box"/>
52             <label value="&staff.serial.manage_items.mode;" control="mode_receive"/><radiogroup id="serial_manage_items_mode" orient="horizontal"><radio id="mode_receive" label="&staff.serial.manage_items.receive.label;"/><radio id="mode_advanced_receive" label="&staff.serial.manage_items.advanced_receive.label;"/><radio id="mode_bind" label="&staff.serial.manage_items.bind.label;"/></radiogroup><checkbox id="serial_manage_items_show_all" label="&staff.serial.manage_items.show_all.label;" />
53             <button id="refresh_button" label="&staff.cat.copy_browser.holdings_maintenance.refresh_button.label;" command="cmd_refresh_list" />
54             <spacer flex="1"/>
55             <menubar>
56                 <!--
57                 <menu label="Actions for this Serial Control" accesskey="C">
58                     <menupopup>
59                         <menuitem command="cmd_predict_items" label="Predict Items"/>
60                         <menuitem command="cmd_add_item" label="Add Custom Item"/>
61                         <menuitem command="cmd_edit_mfhd" label="Edit MFHD Record"/>
62                     </menupopup>
63                 </menu>
64                 -->
65                 <menu label="&staff.cat.copy_browser.holdings_maintenance.actions.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.actions.accesskey;">
66                     <menupopup>
67                         <menuitem command="cmd_edit_items" label="&staff.serial.manage_items.actions.cmd_edit_items.label;" accesskey="&staff.serial.manage_items.actions.cmd_edit_items.accesskey;"/>
68                         <menuitem command="cmd_reset_items" label="&staff.serial.manage_items.actions.cmd_reset_items.label;" />
69                         <menuitem command="cmd_delete_items" label="&staff.serial.manage_items.actions.cmd_delete_items.label;" accesskey="&staff.serial.manage_items.actions.cmd_delete_items.accesskey;"/>
70                         <menuseparator/>
71                         <menuitem command="cmd_refresh_list" label="&staff.cat.copy_browser.holdings_maintenance.cmd_refresh_list.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.cmd_refresh_list.accesskey;"/>
72                         <menuitem command="save_columns" label="&staff.cat.copy_browser.holdings_maintenance.save_columns.label;"/>
73                         <!-- <menuitem command="sel_clip" label="&staff.cat.copy_browser.holdings_maintenance.sel_clip.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.sel_clip.accesskey;"/>
74                         <menuitem command="cmd_transfer_items" label="&staff.cat.copy_browser.holdings_maintenance.cmd_transfer_items.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.cmd_transfer_items.accesskey;"/>
75                         <menuseparator/>
76                         <menuitem command="cmd_add_volumes" label="&staff.cat.copy_browser.holdings_maintenance.cmd_add_volumes.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.cmd_add_volumes.accesskey;"/>
77                         <menuitem command="cmd_edit_volumes" label="&staff.cat.copy_browser.holdings_maintenance.cmd_edit_volumes.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.cmd_edit_volumes.accesskey;"/>
78                         <menuitem command="cmd_mark_volume" label="&staff.cat.copy_browser.holdings_maintenance.cmd_mark_volume.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.cmd_mark_volume.accesskey;"/>
79                         <menuitem command="cmd_transfer_volume" label="&staff.cat.copy_browser.holdings_maintenance.cmd_transfer_volume.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.cmd_transfer_volume.accesskey;"/>
80                         <menuitem command="cmd_delete_volumes" label="&staff.cat.copy_browser.holdings_maintenance.cmd_delete_volumes.label;" accesskey=""/>
81                         <menuseparator/>
82                         <menuitem command="cmd_print_spine_labels" label="&staff.cat.copy_browser.holdings_maintenance.cmd_print_spine_labels.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.cmd_print_spine_labels.accesskey;"/>
83                         <menuitem command="cmd_replace_barcode" label="&staff.cat.copy_browser.holdings_maintenance.cmd_replace_barcode.label;" accesskey=""/> -->
84                     </menupopup>
85                 </menu>
86             </menubar>
87         </hbox>
88         <tree id="item_tree" flex="2" enableColumnDrag="true" context="serial_manage_items_popup" oils_persist="height"/>
89         <splitter state="open" collapse="after" resizebefore="closest" resizeafter="farthest" id="splitter" oils_persist="state hidden" oils_persist_peers="item_tree after_splitter"/>
90         <hbox align="center" id="after_splitter" oils_persist="height">
91             <label style="font-weight: bold" value="&staff.serial.manage_items.workarea_showing;"/>
92             <label id="serial_workarea_mode_label" value="&staff.serial.manage_items.workarea_recently_received;"/>
93             <spacer flex="1"/>
94             <button label="&staff.serial.manage_items.receive_move.label;" command="cmd_receive_items"/>
95         </hbox>
96         <hbox align="center">
97             <label style="font-weight: bold" value="&staff.serial.manage_items.workarea_current_unit;"/>
98             <description flex="1" id="serial_workarea_sunit_desc">**&staff.serial.manage_items.auto_per_item.label;**</description>
99             <spacer flex="1"/>
100             <menubar>
101                 <menu label="&staff.serial.manage_items.set_current_unit.label;" id="serial_items_current_sunit" sunit_id="-1" sunit_label="&staff.serial.manage_items.auto_per_item.label;" sdist_id="" sstr_id="">
102                     <menupopup>
103                         <menuitem command="cmd_set_sunit" label="&staff.serial.manage_items.new_unit.label;" sunit_id="-2" sdist_id="" sstr_id=""/>
104                         <menuitem id="serial_items_auto_per_item_menuitem" command="cmd_set_sunit" label="&staff.serial.manage_items.auto_per_item.label;" sunit_id="-1" sdist_id="" sstr_id=""/>
105                         <menuitem command="cmd_set_sunit" label="&staff.serial.manage_items.no_unit.label;" sunit_id="" sdist_id="" sstr_id=""/>
106                         <menu label="&staff.serial.manage_items.recent.label;" id="serial_items_recent_sunits" sunit_json='[]'/>
107                         <menuitem command="cmd_set_other_sunit" label="&staff.serial.manage_items.other_unit.label;"/>
108                     </menupopup>
109                 </menu>
110                 <!--<button command="cmd_broken" label="Edit Current Unit..."/>-->
111             </menubar>
112         </hbox>
113         <tree id="workarea_tree" flex="1" enableColumnDrag="true" context="serial_manage_items_popup"/>
114     </tabpanel>
115
116 </overlay>