]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/cat/record_buckets.xul
Monograph Parts; Unified vol/copy wizard; Call Number affixes; Instant Detail
[working/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="/xul/server/skin/global.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/cat.css" type="text/css"?>
10
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
12 <!-- LOCALIZATION -->
13 <!DOCTYPE window PUBLIC "" ""[
14     <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
15 ]>
16
17 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
18 <!-- OVERLAYS -->
19 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
20 <?xul-overlay href="/xul/server/cat/record_buckets_overlay.xul"?>
21
22 <window id="record_buckets_win" title="&staff.cat.record_buckets.title;"
23     onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }" height="300" width="300" oils_persist="height width"
24     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
25
26     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
27     <!-- BEHAVIOR -->
28         <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
29         <scripts id="openils_util_scripts"/>
30
31     <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
32     <script>
33     <![CDATA[
34         var catStrings;
35
36         function my_init() {
37             try {
38                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
39
40                 /* ugly hack so we don't have to upgrade the chrome for quick buckets */
41                 if (typeof xulG == 'undefined') location.href = String(location.href).replace(/record_buckets.xul/,'record_buckets_quick.xul');
42
43                 /* load translatable strings into easily referenced variables */
44                 catStrings = document.getElementById('catStrings');
45                 commonStrings = document.getElementById('commonStrings');
46
47                 if (typeof JSAN == 'undefined') { throw( commonStrings.getString('common.jsan.missing') ); }
48
49                 JSAN.errorLevel = "die"; // none, warn, or die
50                 JSAN.addRepository('/xul/server/');
51                 JSAN.use('util.error'); g.error = new util.error();
52                 g.error.sdump('D_TRACE','my_init() for record_buckets.xul');
53                 JSAN.use('OpenILS.data'); g.data = new OpenILS.data(); g.data.init({'via':'stash'});
54
55                 var record_ids = xul_param(
56                     'record_ids',{
57                         'concat' : true,
58                         'JSON2js_if_cgi' : true,
59                         'JSON2js_if_xpcom' : true,
60                         'stash_name':'rb_temp_record_ids',
61                         'clear_xpcom' : true,
62                     }
63                 );
64
65                 JSAN.use('cat.record_buckets'); g.record_buckets = new cat.record_buckets();
66                 g.record_buckets.init( 
67                     { 
68                         'record_ids' : record_ids,
69                     } 
70                 );
71     
72                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
73                     try { window.xulG.set_tab_name(catStrings.getString('staff.cat.record_buckets.tab_name')); } catch(E) { alert(E); }
74                 }
75
76             } catch(E) {
77                 var err_msg = commonStrings.getFormattedString('common.exception', ['cat/record_buckets.xul', E]);
78                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
79                 alert(err_msg);
80             }
81         }
82
83     ]]>
84     </script>
85
86     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale' -->/circ.properties"/>
87     <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale' -->/cat.properties"/>
88
89     <commandset id="record_buckets_cmds" />
90
91     <box id="record_buckets_main" />
92
93 </window>
94