]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/circ/copy_status.xul
872f6ef21ea97a47d808b967baceba9adecf8f9c
[Evergreen.git] / Open-ILS / xul / staff_client / server / circ / copy_status.xul
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Patron Display -->
4
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
6 <!-- STYLESHEETS -->
7 <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
8 <?xml-stylesheet href="chrome://open_ils_staff_client/skin/global.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
10 <?xml-stylesheet href="/xul/server/skin/circ.css" type="text/css"?>
11
12 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
13 <!-- LOCALIZATION -->
14 <!DOCTYPE window PUBLIC "" ""[
15         <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
16 ]>
17
18 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <!-- OVERLAYS -->
20 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
21 <?xul-overlay href="/xul/server/circ/copy_status_overlay.xul"?>
22
23 <window id="copy_status_win" 
24         onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
25         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
26
27         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
28         <!-- BEHAVIOR -->
29         <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
30         <scripts id="openils_util_scripts"/>
31
32         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
33         <script>
34         <![CDATA[
35                 function my_init() {
36                         try {
37                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
38                                 if (typeof JSAN == 'undefined') {
39                                         throw( document.getElementById("commonStrings").getString('common.jsan.missing') );
40                                 }
41                                 JSAN.errorLevel = "die"; // none, warn, or die
42                                 JSAN.addRepository('/xul/server/');
43                                 JSAN.use('util.error'); g.error = new util.error();
44                                 g.error.sdump('D_TRACE','my_init() for copy_status.xul');
45
46                                 JSAN.use('circ.copy_status'); g.copy_status = new circ.copy_status();
47                                 g.copy_status.init( 
48                                         { 
49                                         } 
50                                 );
51
52                                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
53                                         try {
54                                                 window.xulG.set_tab_name(document.getElementById('circStrings').getString('staff.circ.copy_status.tab_name'));
55                                         } catch(E) {
56                                                 alert(E);
57                                         }
58                                 }
59
60                                 JSAN.use('OpenILS.data'); g.data = new OpenILS.data(); g.data.stash_retrieve();
61
62                                 g.barcodes = xul_param(
63                                         'barcodes',{
64                                                 'concat' : true,
65                                                 'JSON2js_if_cgi' : true,
66                                                 'stash_name':'temp_barcodes_for_copy_status',
67                                                 'clear_xpcom' : true,
68                                         }
69                                 ) || [];
70                                 
71                                 if (g.barcodes.length > 0) {
72                                         JSAN.use('util.exec'); var exec = new util.exec();
73                                         var funcs = [];
74                                         for (var i = 0; i < g.barcodes.length; i++) {
75                                                 funcs.push(
76                                                         function(b){
77                                                                 return function() {
78                                                                         g.copy_status.copy_status(b);
79                                                                 }
80                                                         }(g.barcodes[i])
81                                                 );
82                                         }
83                                         exec.chain( funcs );
84                                 }
85         
86                         } catch(E) {
87                                 var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ['circ.copy_status.xul', E]);
88                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
89                                 alert(err_msg);
90                         }
91                 }
92
93                 function default_focus() { try { setTimeout( function() { document.getElementById('copy_status_barcode_entry_textbox').focus(); }, 0); } catch(E) {} }
94         ]]>
95         </script>
96
97         <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" />
98         <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties" />
99         <messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties" />
100
101         <commandset id="copy_status_cmds">
102                 <command id="cmd_copy_status_submit_barcode" />
103                 <command id="cmd_copy_status_upload_file" />
104                 <command id="cmd_copy_status_print" />
105                 <command id="cmd_copy_status_export" />
106                 <command id="cmd_copy_status_print_export" />
107                 <command id="cmd_copy_status_reprint" />
108                 <command id="cmd_copy_status_done" />
109                 <command id="save_columns" />
110                 <command id="sel_copy_details" disabled="true"/>
111                 <command id="sel_mark_items_damaged" disabled="true"/>
112                 <command id="sel_mark_items_missing" disabled="true"/>
113                 <command id="cmd_replace_barcode" disabled="true"/>
114                 <command id="sel_patron" disabled="true"/>
115                 <command id="sel_checkin" disabled="true"/>
116                 <command id="sel_renew" disabled="true"/>
117                 <command id="sel_edit" disabled="true"/>
118                 <command id="sel_opac" disabled="true"/>
119                 <command id="sel_bucket" disabled="true"/>
120                 <command id="sel_spine" disabled="true"/>
121                 <command id="sel_transit_abort" disabled="true"/>
122                 <command id="sel_clip" disabled="true"/>
123                 
124                 <command id="cmd_add_items" disabled="true"/>
125                 <command id="cmd_delete_items" disabled="true"/>
126                 <command id="cmd_transfer_items" disabled="true"/>
127                 <command id="cmd_add_volumes" disabled="true"/>
128                 <command id="cmd_edit_volumes" disabled="true"/>
129                 <command id="cmd_delete_volumes" disabled="true"/>
130                 <command id="cmd_mark_volume" disabled="true"/>
131                 <command id="cmd_mark_library" disabled="true"/>
132                 <command id="cmd_transfer_volume" disabled="true"/>
133
134         </commandset>
135
136         <popupset id="copy_status_popupset"/>
137         <popupset id="copy_cat_status_popupset"/>
138
139         <box id="copy_status_main" />
140
141 </window>
142