]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/cat/copy_buckets.xul
Another monster patch. Change each tab to 4 spaces in the staff client xul, html...
[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="/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/copy_buckets_overlay.xul"?>
21
22 <window id="copy_buckets_win" title="&staff.cat.copy_buckets.window_title;"
23     onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }" height="600" width="800" 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         function my_init() {
35             try {
36                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
37                 if (typeof JSAN == 'undefined') { throw( document.getElementById("commonStrings").getString('common.jsan.missing') ); }
38                 JSAN.errorLevel = "die"; // none, warn, or die
39                 JSAN.addRepository('/xul/server/');
40                 JSAN.use('util.error'); g.error = new util.error();
41                 g.error.sdump('D_TRACE','my_init() for copy_buckets.xul');
42                 JSAN.use('OpenILS.data'); g.data = new OpenILS.data(); g.data.init({'via':'stash'});
43
44                 var copy_ids = xul_param(
45                     'copy_ids',{
46                         'concat' : true,
47                         'JSON2js_if_cgi' : true,
48                         'JSON2js_if_xpcom' : true,
49                         'stash_name':'cb_temp_copy_ids',
50                         'clear_xpcom' : true,
51                     }
52                 );
53
54                 JSAN.use('cat.copy_buckets'); g.copy_buckets = new cat.copy_buckets();
55                 g.copy_buckets.init( 
56                     { 
57                         'copy_ids' : copy_ids,
58                     } 
59                 );
60     
61                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
62                     try { window.xulG.set_tab_name(document.getElementById("catStrings").getString('cat.copy_buckets.tab')); } catch(E) { alert(E); }
63                 }
64
65             } catch(E) {
66                 var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ["cat/copy_buckets.xul", E]);
67                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
68                 alert(err_msg);
69             }
70         }
71
72         function default_focus() { try { setTimeout( function() { document.getElementById('copy_bucket_barcode_entry_textbox').focus(); }, 0); } catch(E) {} }
73     ]]>
74     </script>
75
76     <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale' -->/cat.properties"/>
77     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale' -->/circ.properties"/>
78
79     <commandset id="copy_buckets_cmds">
80         <command id="cmd_copy_bucket_submit_barcode" />
81         <command id="cmd_export_to_copy_status" />
82         <command id="copy_buckets_new_bucket" />
83         <command id="copy_buckets_delete_bucket" />
84         <command id="copy_buckets_delete_item" />
85         <command id="copy_buckets_add" />
86         <command id="copy_buckets_sel_add" />
87         <command id="copy_buckets_export" />
88         <command id="copy_buckets_transfer_to_volume" />
89         <command id="copy_buckets_batch_copy_edit" />
90         <command id="copy_buckets_batch_copy_delete" />
91     </commandset>
92
93     <box id="copy_buckets_main" />
94
95 </window>
96