]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/circ/renew.xul
Renew Item interface, where you can scan in the item barcodes and a renewal attempt...
[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="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/circ.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/circ/renew_overlay.xul"?>
22
23 <window id="renew_win" 
24         onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
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                                 if (typeof JSAN == 'undefined') { throw( document.getElementById("commonStrings").getString('common.jsan.missing') ); }
39                                 JSAN.errorLevel = "die"; // none, warn, or die
40                                 JSAN.addRepository('/xul/server/');
41                                 JSAN.use('util.error'); g.error = new util.error();
42                                 g.error.sdump('D_TRACE','my_init() for renew.xul');
43
44                 var tab_name = document.getElementById('circStrings').getString('staff.circ.renew.tab.label');
45
46                                 JSAN.use('circ.renew'); g.renew = new circ.renew();
47                                 g.renew.init( 
48                                         { 
49                                         } 
50                                 );
51         
52                                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
53                                         try { window.xulG.set_tab_name(tab_name); } catch(E) { alert(E); }
54                                 }
55
56                         } catch(E) {
57                                 var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ['circ.renew.xul', E]);
58                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
59                                 alert(err_msg);
60                         }
61                 }
62
63                 function default_focus() { try { setTimeout( function() { document.getElementById('renew_barcode_entry_textbox').focus(); }, 0); } catch(E) {} }
64         ]]>
65         </script>
66
67         <popupset id="copy_status_popupset"/>
68
69         <commandset id="renew_cmds">
70                 <command id="cmd_renew_submit_barcode" />
71                 <command id="cmd_renew_print" />
72                 <command id="cmd_csv_to_clipboard" />
73                 <command id="cmd_csv_to_printer" />
74                 <command id="cmd_csv_to_file" />
75                 <command id="save_columns" />
76                 
77                 <command id="sel_clip" disabled="true"/>
78                 <command id="sel_edit" disabled="true"/>
79                 <command id="sel_opac" disabled="true"/>
80                 <command id="sel_patron" disabled="true"/>
81                 <command id="sel_last_patron" disabled="true"/>
82                 <command id="sel_copy_details" disabled="true"/>
83                 <command id="sel_bucket" disabled="true"/>
84                 <command id="sel_spine" disabled="true"/>
85                 <command id="sel_transit_abort" disabled="true"/>
86                 <command id="sel_mark_items_damaged" disabled="true"/>
87
88         </commandset>
89
90     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties"/>
91     <messagecatalog id="catStrings" src="/xul/server/locale/<!--#echo var='locale'-->/cat.properties"/>
92     <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
93
94         <box id="renew_main" />
95
96 </window>
97