]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/cat/record_buckets.xul
Convert a few strings to entities or JS properties that had hitherto escaped our...
[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/${locale}/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="&staff.cat.record_buckets.title;"
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         var catStrings;
36
37                 function my_init() {
38                         try {
39                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
40
41                                 /* ugly hack so we don't have to upgrade the chrome for quick buckets */
42                                 if (typeof xulG == 'undefined') location.href = String(location.href).replace(/record_buckets.xul/,'record_buckets_quick.xul');
43
44                                 /* load translatable strings into easily referenced variables */
45                 catStrings = document.getElementById('catStrings');
46                 commonStrings = document.getElementById('commonStrings');
47
48                 if (typeof JSAN == 'undefined') { throw( commonStrings.getString('common.jsan.missing') ); }
49
50                                 JSAN.errorLevel = "die"; // none, warn, or die
51                                 JSAN.addRepository('/xul/server/');
52                                 JSAN.use('util.error'); g.error = new util.error();
53                                 g.error.sdump('D_TRACE','my_init() for record_buckets.xul');
54                                 JSAN.use('OpenILS.data'); g.data = new OpenILS.data(); g.data.init({'via':'stash'});
55
56                                 var record_ids = xul_param(
57                                         'record_ids',{
58                                                 'concat' : true,
59                                                 'JSON2js_if_cgi' : true,
60                                                 'JSON2js_if_xpcom' : true,
61                                                 'stash_name':'rb_temp_record_ids',
62                                                 'clear_xpcom' : true,
63                                         }
64                                 );
65
66                                 JSAN.use('cat.record_buckets'); g.record_buckets = new cat.record_buckets();
67                                 g.record_buckets.init( 
68                                         { 
69                                                 'record_ids' : record_ids,
70                                         } 
71                                 );
72         
73                                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
74                                         try { window.xulG.set_tab_name(catStrings.getString('staff.cat.record_buckets.tab_name')); } catch(E) { alert(E); }
75                                 }
76
77                         } catch(E) {
78                                 var err_msg = commonStrings.getFormattedString('common.exception', ['cat/record_buckets.xul', E]);
79                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
80                                 alert(err_msg);
81                         }
82                 }
83
84         ]]>
85         </script>
86
87     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale' -->/circ.properties"/>
88     <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale' -->/cat.properties"/>
89     <messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties" />
90
91         <commandset id="record_buckets_cmds">
92                 <command id="sel_clip0" disabled="true"/>
93                 <command id="sel_clip1" disabled="true"/>
94                 <command id="sel_clip2" disabled="true"/>
95                 <command id="save_columns0" />
96                 <command id="save_columns1" />
97                 <command id="save_columns2" />
98
99                 <command id="cmd_record_query_csv_to_printer" />
100                 <command id="cmd_record_query_csv_to_clipboard" />
101                 <command id="cmd_record_query_csv_to_file" />
102
103                 <command id="cmd_pending_buckets_csv_to_printer" />
104                 <command id="cmd_pending_buckets_csv_to_clipboard" />
105                 <command id="cmd_pending_buckets_csv_to_file" />
106
107                 <command id="cmd_record_buckets_new_bucket" />
108                 <command id="cmd_record_buckets_delete_bucket" disabled="true"/>
109                 <command id="cmd_record_buckets_refresh" disabled="true"/>
110
111         <command id="cmd_record_buckets_delete_item" />
112         <command id="cmd_record_buckets_to_pending_buckets" />
113
114                 <command id="cmd_record_buckets_csv_to_printer" />
115                 <command id="cmd_record_buckets_csv_to_clipboard" />
116                 <command id="cmd_record_buckets_csv_to_file" />
117                 
118         <command id="cmd_add_all_query_to_pending" />
119         <command id="cmd_add_sel_query_to_pending" />
120
121         <command id="cmd_add_all_pending_to_record_bucket" />
122         <command id="cmd_add_sel_pending_to_record_bucket" />
123
124                 <command id="cmd_merge_records" disabled="true" />
125                 <command id="cmd_export_records_usmarc" />
126                 <command id="cmd_export_records_unimarc" />
127                 <command id="cmd_export_records_xml" />
128                 <command id="cmd_export_records_bre" />
129                 <command id="cmd_delete_records" disabled="true" />
130                 <command id="cmd_sel_opac" disabled="true" />
131                 
132         <command id="cmd_submit_query" />
133         </commandset>
134
135         <box id="record_buckets_main" />
136
137 </window>
138