]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/circ/renew.xul
Except in certain cases (like chrome://global/skin/), we can no longer reference...
[Evergreen.git] / Open-ILS / xul / staff_client / server / circ / renew.xul
1 <?xml version="1.0" encoding="UTF-8"?>
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/circ.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/circ/renew_overlay.xul"?>
21
22 <window id="renew_win" 
23         onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
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 renew.xul');
42
43                 var tab_name = document.getElementById('circStrings').getString('staff.circ.renew.tab.label');
44
45                                 JSAN.use('circ.renew'); g.renew = new circ.renew();
46                                 g.renew.init( 
47                                         { 
48                                         } 
49                                 );
50         
51                                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
52                                         try { window.xulG.set_tab_name(tab_name); } catch(E) { alert(E); }
53                                 }
54
55                         } catch(E) {
56                                 var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ['circ.renew.xul', E]);
57                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
58                                 alert(err_msg);
59                         }
60                 }
61
62                 function default_focus() { try { setTimeout( function() { document.getElementById('renew_barcode_entry_textbox').focus(); }, 0); } catch(E) {} }
63         ]]>
64         </script>
65
66         <popupset id="copy_status_popupset"/>
67
68         <commandset id="renew_cmds">
69                 <command id="cmd_renew_submit_barcode" />
70                 <command id="cmd_renew_print" />
71                 <command id="cmd_csv_to_clipboard" />
72                 <command id="cmd_csv_to_printer" />
73                 <command id="cmd_csv_to_file" />
74                 <command id="save_columns" />
75                 
76                 <command id="sel_clip" disabled="true"/>
77                 <command id="sel_edit" disabled="true"/>
78                 <command id="sel_opac" disabled="true"/>
79                 <command id="sel_patron" disabled="true"/>
80                 <command id="sel_last_patron" disabled="true"/>
81                 <command id="sel_copy_details" disabled="true"/>
82                 <command id="sel_bucket" disabled="true"/>
83                 <command id="sel_spine" disabled="true"/>
84                 <command id="sel_transit_abort" disabled="true"/>
85                 <command id="sel_mark_items_damaged" disabled="true"/>
86
87         </commandset>
88
89     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties"/>
90     <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties"/>
91     <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
92
93         <box id="renew_main" />
94
95 </window>
96