]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/serial/manage_items.xul
Improve Firefox/XULRunner Support
[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                 if (typeof JSAN == 'undefined') { 
19                     throw( document.getElementById("commonStrings").getString('common.jsan.missing') );
20                 }
21                 JSAN.errorLevel = "die"; // none, warn, or die
22                 JSAN.addRepository('/xul/server/');
23                 JSAN.use('util.error'); g.error = new util.error();
24                 g.error.sdump('D_TRACE','my_init() for manage_items.xul');
25
26                 JSAN.use('serial.manage_items'); g.manage_items = new serial.manage_items();
27
28                 //g.manage_items.init( { 'sre_id' : xul_param('sre_id'), 'sdist_id' : xul_param('sdist_id') } );
29                 g.manage_items.init( { 'docid' : xul_param('docid') } );
30
31             } catch(E) {
32                 var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ['serial/manage_items.xul', E]);
33                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
34                 alert(err_msg);
35             }
36         }
37
38     ]]>
39     </script>
40     <popupset>
41         <menupopup id="serial_manage_items_popup">
42             <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;"/>
43             <menuitem command="cmd_reset_items" label="&staff.serial.manage_items.actions.cmd_reset_items.label;" />
44             <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;"/>
45             <menuitem command="cmd_view_sitem_notes" label="&staff.serial.manage_items.actions.cmd_view_sitem_notes.label;" accesskey="&staff.serial.manage_items.actions.cmd_view_sitem_notes.accesskey;"/>
46             <menuitem command="cmd_view_sdist_notes" label="&staff.serial.manage_items.actions.cmd_view_sdist_notes.label;" accesskey="&staff.serial.manage_items.actions.cmd_view_sdist_notes.accesskey;"/>
47             <menuitem command="cmd_view_ssub_notes" label="&staff.serial.manage_items.actions.cmd_view_ssub_notes.label;" accesskey="&staff.serial.manage_items.actions.cmd_view_ssub_notes.accesskey;"/>
48         </menupopup>
49     </popupset>
50     <tabpanel id="serial_manage_items" orient="vertical" flex="1">
51         <hbox align="center">
52             <label id="serial_manage_items_context" style="font-weight: bold" value="&staff.serial.manage_items.context.label;"/>
53             <hbox id="serial_item_lib_menu_box"/>
54             <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;" />
55             <button id="refresh_button" label="&staff.cat.copy_browser.holdings_maintenance.refresh_button.label;" command="cmd_refresh_list" />
56             <spacer flex="1"/>
57             <menubar>
58                 <!--
59                 <menu label="Actions for this Serial Control" accesskey="C">
60                     <menupopup>
61                         <menuitem command="cmd_predict_items" label="Predict Items"/>
62                         <menuitem command="cmd_add_item" label="Add Custom Item"/>
63                         <menuitem command="cmd_edit_mfhd" label="Edit MFHD Record"/>
64                     </menupopup>
65                 </menu>
66                 -->
67                 <menu label="&staff.cat.copy_browser.holdings_maintenance.actions.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.actions.accesskey;">
68                     <menupopup>
69                         <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;"/>
70                         <menuitem command="cmd_reset_items" label="&staff.serial.manage_items.actions.cmd_reset_items.label;" />
71                         <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;"/>
72                         <menuitem command="cmd_view_sitem_notes" label="&staff.serial.manage_items.actions.cmd_view_sitem_notes.label;" accesskey="&staff.serial.manage_items.actions.cmd_view_sitem_notes.accesskey;"/>
73                         <menuitem command="cmd_view_sdist_notes" label="&staff.serial.manage_items.actions.cmd_view_sdist_notes.label;" accesskey="&staff.serial.manage_items.actions.cmd_view_sdist_notes.accesskey;"/>
74                         <menuitem command="cmd_view_ssub_notes" label="&staff.serial.manage_items.actions.cmd_view_ssub_notes.label;" accesskey="&staff.serial.manage_items.actions.cmd_view_ssub_notes.accesskey;"/>
75                         <menuseparator/>
76                         <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;"/>
77                         <menuitem command="save_columns" label="&staff.cat.copy_browser.holdings_maintenance.save_columns.label;"/>
78                         <!-- <menuitem command="sel_clip" label="&staff.cat.copy_browser.holdings_maintenance.sel_clip.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.sel_clip.accesskey;"/>
79                         <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;"/>
80                         <menuseparator/>
81                         <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;"/>
82                         <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;"/>
83                         <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;"/>
84                         <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;"/>
85                         <menuitem command="cmd_delete_volumes" label="&staff.cat.copy_browser.holdings_maintenance.cmd_delete_volumes.label;" accesskey=""/>
86                         <menuseparator/>
87                         <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;"/>
88                         <menuitem command="cmd_replace_barcode" label="&staff.cat.copy_browser.holdings_maintenance.cmd_replace_barcode.label;" accesskey=""/> -->
89                     </menupopup>
90                 </menu>
91             </menubar>
92         </hbox>
93         <tree id="item_tree" flex="2" enableColumnDrag="true" context="serial_manage_items_popup" oils_persist="height"/>
94         <splitter state="open" collapse="after" resizebefore="closest" resizeafter="farthest" id="splitter" oils_persist="state hidden" oils_persist_peers="item_tree after_splitter"/>
95         <hbox align="center" id="after_splitter" oils_persist="height">
96             <label style="font-weight: bold" value="&staff.serial.manage_items.workarea_showing;"/>
97             <label id="serial_workarea_mode_label" value="&staff.serial.manage_items.workarea_recently_received;"/>
98             <spacer flex="1"/>
99             <button label="&staff.serial.manage_items.receive_move.label;" command="cmd_receive_items"/>
100         </hbox>
101         <hbox align="center">
102             <label style="font-weight: bold" value="&staff.serial.manage_items.workarea_current_unit;"/>
103             <description flex="1" id="serial_workarea_sunit_desc">**&staff.serial.manage_items.auto_per_item.label;**</description>
104             <spacer flex="1"/>
105             <menubar>
106                 <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="">
107                     <menupopup>
108                         <menuitem command="cmd_set_sunit" label="&staff.serial.manage_items.new_unit.label;" sunit_id="-2" sdist_id="" sstr_id=""/>
109                         <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=""/>
110                         <menuitem command="cmd_set_sunit" label="&staff.serial.manage_items.no_unit.label;" sunit_id="" sdist_id="" sstr_id=""/>
111                         <menu label="&staff.serial.manage_items.recent.label;" id="serial_items_recent_sunits" sunit_json='[]'/>
112                         <menuitem command="cmd_set_other_sunit" label="&staff.serial.manage_items.other_unit.label;"/>
113                     </menupopup>
114                 </menu>
115                 <!--<button command="cmd_broken" label="Edit Current Unit..."/>-->
116             </menubar>
117         </hbox>
118         <tree id="workarea_tree" flex="1" enableColumnDrag="true" context="serial_manage_items_popup"/>
119     </tabpanel>
120
121 </overlay>