]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/serial/manage_items.xul
Reduce hard-coded strings in Serial Control interfaces
[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             <hbox id="serial_item_lib_menu_box"/>
51             <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_bind" label="&staff.serial.manage_items.bind.label;"/></radiogroup><checkbox id="serial_manage_items_show_all" label="&staff.serial.manage_items.show_all.label;" />
52             <button id="refresh_button" label="&staff.cat.copy_browser.holdings_maintenance.refresh_button.label;" command="cmd_refresh_list" />
53             <spacer flex="1"/>
54             <menubar>
55                 <!--
56                 <menu label="Actions for this Serial Control" accesskey="C">
57                     <menupopup>
58                         <menuitem command="cmd_predict_items" label="Predict Items"/>
59                         <menuitem command="cmd_add_item" label="Add Custom Item"/>
60                         <menuitem command="cmd_edit_mfhd" label="Edit MFHD Record"/>
61                     </menupopup>
62                 </menu>
63                 -->
64                 <menu label="&staff.cat.copy_browser.holdings_maintenance.actions.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.actions.accesskey;">
65                     <menupopup>
66                         <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;"/>
67                         <menuitem command="cmd_reset_items" label="&staff.serial.manage_items.actions.cmd_reset_items.label;" />
68                         <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;"/>
69                         <menuseparator/>
70                         <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;"/>
71                         <menuitem command="save_columns" label="&staff.cat.copy_browser.holdings_maintenance.save_columns.label;"/>
72                         <!-- <menuitem command="sel_clip" label="&staff.cat.copy_browser.holdings_maintenance.sel_clip.label;" accesskey="&staff.cat.copy_browser.holdings_maintenance.sel_clip.accesskey;"/>
73                         <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;"/>
74                         <menuseparator/>
75                         <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;"/>
76                         <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;"/>
77                         <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;"/>
78                         <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;"/>
79                         <menuitem command="cmd_delete_volumes" label="&staff.cat.copy_browser.holdings_maintenance.cmd_delete_volumes.label;" accesskey=""/>
80                         <menuseparator/>
81                         <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;"/>
82                         <menuitem command="cmd_replace_barcode" label="&staff.cat.copy_browser.holdings_maintenance.cmd_replace_barcode.label;" accesskey=""/> -->
83                     </menupopup>
84                 </menu>
85             </menubar>
86         </hbox>
87         <tree id="item_tree" flex="2" enableColumnDrag="true" context="serial_manage_items_popup" oils_persist="height"/>
88         <splitter state="open" collapse="after" resizebefore="closest" resizeafter="farthest" id="splitter" oils_persist="state hidden" oils_persist_peers="item_tree after_splitter"/>
89         <hbox align="center" id="after_splitter" oils_persist="height">
90             <label style="font-weight: bold" value="&staff.serial.manage_items.workarea_showing;"/>
91             <label id="serial_workarea_mode_label" value="&staff.serial.manage_items.workarea_recently_received;"/>
92             <spacer flex="1"/>
93             <button label="&staff.serial.manage_items.receive_move.label;" command="cmd_receive_items"/>
94         </hbox>
95         <hbox align="center">
96             <label style="font-weight: bold" value="&staff.serial.manage_items.workarea_current_unit;"/>
97             <description flex="1" id="serial_workarea_sunit_desc">**&staff.serial.manage_items.auto_per_item.label;**</description>
98             <spacer flex="1"/>
99             <menubar>
100                 <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="">
101                     <menupopup>
102                         <menuitem command="cmd_set_sunit" label="&staff.serial.manage_items.new_unit.label;" sunit_id="-2" sdist_id="" sstr_id=""/>
103                         <menuitem command="cmd_set_sunit" label="&staff.serial.manage_items.auto_per_item.label;" sunit_id="-1" sdist_id="" sstr_id=""/>
104                         <menu label="&staff.serial.manage_items.recent.label;" id="serial_items_recent_sunits" sunit_json='[]'/>
105                         <menuitem command="cmd_set_other_sunit" label="&staff.serial.manage_items.other_unit.label;"/>
106                     </menupopup>
107                 </menu>
108                 <!--<button command="cmd_broken" label="Edit Current Unit..."/>-->
109             </menubar>
110         </hbox>
111         <tree id="workarea_tree" flex="1" enableColumnDrag="true" context="serial_manage_items_popup"/>
112     </tabpanel>
113
114 </overlay>