]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/cat/copy_buckets.xul
5b98be38305d8f814036fd75455965860cdc9e9f
[Evergreen.git] / Open-ILS / xul / staff_client / server / cat / copy_buckets.xul
1 <?xml version="1.0"?>
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/cat.css" type="text/css"?>
11
12 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
13 <!-- LOCALIZATION -->
14 <!DOCTYPE window PUBLIC "" ""[
15         <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
16 ]>
17
18 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <!-- OVERLAYS -->
20 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
21 <?xul-overlay href="/xul/server/cat/copy_buckets_overlay.xul"?>
22
23 <window id="copy_buckets_win" title="Copy Buckets"
24         onload="my_init()" height="600" width="800" persist="height,width"
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') { throw( "The JSAN library object is missing."); }
39                                 JSAN.errorLevel = "die"; // none, warn, or die
40                                 JSAN.addRepository('/xul/server/');
41                                 JSAN.use('util.error'); g.error = new util.error();
42                                 g.error.sdump('D_TRACE','my_init() for copy_buckets.xul');
43                                 JSAN.use('OpenILS.data'); g.data = new OpenILS.data(); g.data.init({'via':'stash'});
44
45                                 g.cgi = new CGI();
46                                 var copy_ids = [];
47                                 if (g.cgi.param('copy_ids')) copy_ids = copy_ids.concat( JSON2js( g.cgi.param('copy_ids') ) );
48                                 if (typeof window.xuLG == 'object' && typeof window.xulG.copy_ids != 'undefined')
49                                         copy_ids = copy_ids.concat( window.xulG.copy_ids );
50                                 if (typeof g.data.cb_temp_copy_ids != 'undefined' && g.data.cb_temp_copy_ids != null) {
51                                         copy_ids = copy_ids.concat( JSON2js( g.data.cb_temp_copy_ids ) );
52                                         g.data.cb_temp_copy_ids = undefined; g.data.stash('cb_temp_copy_ids');
53                                 }
54
55                                 JSAN.use('cat.copy_buckets'); g.copy_buckets = new cat.copy_buckets();
56                                 g.copy_buckets.init( 
57                                         { 
58                                                 'copy_ids' : copy_ids,
59                                         } 
60                                 );
61         
62                                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
63                                         try { window.xulG.set_tab_name('Copy Buckets'); } catch(E) { alert(E); }
64                                 }
65
66                         } catch(E) {
67                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
68                                         "system administrator or software developer the following:\n" 
69                                         + 'cat.copy_buckets.xul\n' + E + '\n';
70                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
71                                 alert(err_msg);
72                         }
73                 }
74
75         ]]>
76         </script>
77
78         <commandset id="copy_buckets_cmds">
79                 <command id="sel_clip" />
80                 <command id="cmd_copy_buckets_submit_barcode" />
81                 <command id="cmd_copy_buckets_print" />
82                 <command id="cmd_copy_buckets_reprint" />
83                 <command id="cmd_copy_buckets_done" />
84                 <command id="cmd_export_to_copy_status" />
85                 <command id="copy_buckets_new_bucket" />
86                 <command id="copy_buckets_delete_bucket" />
87                 <command id="copy_buckets_delete_item" />
88                 <command id="copy_buckets_add" />
89                 <command id="copy_buckets_sel_add" />
90                 <command id="copy_buckets_export" />
91                 <command id="copy_buckets_transfer_to_volume" />
92                 <command id="copy_buckets_batch_copy_edit" />
93                 <command id="copy_buckets_batch_copy_delete" />
94         </commandset>
95
96         <box id="copy_buckets_main" />
97
98 </window>
99