]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/cat/record_buckets.xul
1d4658f19249f4cd7eec7225a009f78e94b4f40f
[Evergreen.git] / Open-ILS / xul / staff_client / server / cat / record_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/record_buckets_overlay.xul"?>
22
23 <window id="record_buckets_win" title="Record Buckets"
24         onload="try { my_init(); font_helper(); } catch(E) { alert(E); }" height="300" width="300" 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
39                                 /* ugly hack so we don't have to upgrade the chrome for quick buckets */
40                                 if (typeof xulG == 'undefined') location.href = String(location.href).replace(/record_buckets.xul/,'record_buckets_quick.xul');
41
42                 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
43                                 JSAN.errorLevel = "die"; // none, warn, or die
44                                 JSAN.addRepository('/xul/server/');
45                                 JSAN.use('util.error'); g.error = new util.error();
46                                 g.error.sdump('D_TRACE','my_init() for record_buckets.xul');
47                                 JSAN.use('OpenILS.data'); g.data = new OpenILS.data(); g.data.init({'via':'stash'});
48
49                                 g.cgi = new CGI();
50                                 var record_ids = [];
51                                 if (g.cgi.param('record_ids')) record_ids = record_ids.concat( JSON2js( g.cgi.param('record_ids') ) );
52                                 if (typeof window.xuLG == 'object' && typeof window.xulG.record_ids != 'undefined')
53                                         record_ids = record_ids.concat( window.xulG.record_ids );
54                                 if (typeof g.data.rb_temp_record_ids != 'undefined' && g.data.rb_temp_record_ids != null) {
55                                         record_ids = record_ids.concat( JSON2js( g.data.rb_temp_record_ids ) );
56                                         g.data.rb_temp_record_ids = undefined; g.data.stash('rb_temp_record_ids');
57                                 }
58
59
60                                 JSAN.use('cat.record_buckets'); g.record_buckets = new cat.record_buckets();
61                                 g.record_buckets.init( 
62                                         { 
63                                                 'record_ids' : record_ids,
64                                         } 
65                                 );
66         
67                                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
68                                         try { window.xulG.set_tab_name('Record Buckets'); } catch(E) { alert(E); }
69                                 }
70
71                         } catch(E) {
72                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
73                                         "system administrator or software developer the following:\n" 
74                                         + 'cat.record_buckets.xul\n' + E + '\n';
75                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
76                                 alert(err_msg);
77                         }
78                 }
79
80         ]]>
81         </script>
82
83         <commandset id="record_buckets_cmds">
84                 <command id="sel_clip1" />
85                 <command id="sel_clip2" />
86                 <command id="save_columns1" />
87                 <command id="save_columns2" />
88                 <command id="cmd_print_export1" />
89                 <command id="cmd_export1" />
90                 <command id="cmd_print_export2" />
91                 <command id="cmd_record_buckets_submit_barcode" />
92                 <command id="cmd_record_buckets_print" />
93                 <command id="cmd_record_buckets_export" />
94                 <command id="cmd_record_buckets_reprint" />
95                 <command id="cmd_record_buckets_done" />
96                 <command id="cmd_merge_records" />
97                 <command id="cmd_sel_opac" />
98         </commandset>
99
100         <box id="record_buckets_main" />
101
102 </window>
103