]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/circ/checkout.xul
Delete volume on last copy setting
[working/Evergreen.git] / Open-ILS / xul / staff_client / server / circ / checkout.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/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/checkout_overlay.xul"?>
21
22 <window id="checkout_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 checkout.xul');
42
43                 var patron_id = xul_param('patron_id');
44
45                 JSAN.use('circ.checkout'); g.checkout = new circ.checkout();
46                 g.checkout.init( 
47                     { 
48                         'patron_id' : patron_id,
49                     } 
50                 );
51         
52                 default_focus();
53     
54             } catch(E) {
55                 try {
56                     g.error.standard_unexpected_error_alert('circ/checkout.xul',E);
57                 } catch(F) {
58                     dump('FIXME: circ/checkout.xul -> ' + E + ' -> ' + F + '\n');
59                 }
60             }
61         }
62
63         function default_focus() {
64             try {
65                 var x = document.getElementById('checkout_barcode_entry_textbox');
66                 if (!x) return;
67                 if (x.disabled) {
68                     document.getElementById('checkout_duedate_menu').inputField.focus();
69                 } else {
70                  x.focus();
71                 }
72             } catch(E) {
73                 try { g.error.sdump('D_ERROR','checkout default_focus(): ' + js2JSON(E)); } catch(F) { dump('FIXME: circ/checkout.xul default_focus() -> ' + E + ' -> ' + F) }
74             }
75         }
76
77         function refresh() {
78             g.checkout.check_disable();
79         }
80
81     ]]>
82     </script>
83
84     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" />
85
86     <commandset id="checkout_cmds">
87         <command id="cmd_checkout_submit" />
88         <command id="cmd_checkout_print" />
89         <command id="cmd_checkout_export" />
90         <command id="cmd_checkout_reprint" />
91         <command id="cmd_checkout_done" />
92         <command id="sel_clip" />
93         <command id="save_columns" />
94     </commandset>
95
96     <box id="checkout_main" />
97
98 </window>
99