]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/circ/in_house_use.xul
in-house use
[Evergreen.git] / Open-ILS / xul / staff_client / server / circ / in_house_use.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="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 SYSTEM "chrome://open_ils_staff_client/locale/lang.dtd">
15
16 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
17 <!-- OVERLAYS -->
18 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
19
20 <window id="in_house_use_win" 
21         onload="my_init()"
22         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
23
24         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
25         <!-- BEHAVIOR -->
26         <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
27         <scripts id="openils_util_scripts"/>
28
29         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
30         <script>
31         <![CDATA[
32                 function my_init() {
33                         try {
34                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
35                                 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
36                                 JSAN.errorLevel = "die"; // none, warn, or die
37                                 JSAN.addRepository('/xul/server/');
38                                 JSAN.use('util.error'); g.error = new util.error();
39                                 g.error.sdump('D_TRACE','my_init() for in_house_use.xul');
40
41                                 g.cgi = new CGI();
42
43                                 JSAN.use('circ.in_house_use'); g.in_house_use = new circ.in_house_use();
44                                 g.in_house_use.init( 
45                                         { 
46                                                 'session' : g.cgi.param('session') 
47                                         } 
48                                 );
49         
50                                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
51                                         try { window.xulG.set_tab_name('In-House Use'); } catch(E) { alert(E); }
52                                 }
53
54                         } catch(E) {
55                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
56                                         "system administrator or software developer the following:\n" 
57                                         + 'circ.in_house_use.xul\n' + E + '\n';
58                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
59                                 alert(err_msg);
60                         }
61                 }
62
63         ]]>
64         </script>
65
66         <commandset id="in_house_use_cmds">
67                 <command id="cmd_in_house_use_submit_barcode" />
68                 <command id="cmd_in_house_use_print" />
69                 <command id="cmd_in_house_use_reprint" />
70                 <command id="cmd_in_house_use_done" />
71         </commandset>
72
73 <box id="in_house_use_main" flex="1" orient="vertical" class="my_overflow">
74 <vbox id="cmvb1" flex="1">
75 <groupbox id="cmgb1" flex="2">
76
77         <caption label="In-House Use" />
78
79         <hbox id="in_house_use_top_ui">
80                 <label id="in_house_use_scan_barcode_label" 
81                         value="Enter Barcode:" 
82                         accesskey="a"
83                         control="in_house_use_barcode_entry_textbox"/>
84                 <textbox id="in_house_use_barcode_entry_textbox"/>
85                 <button id="in_house_use_submit_barcode_button" 
86                         label="Submit"
87                         command="cmd_in_house_use_submit_barcode"
88                         accesskey="S"/>
89                 <spacer flex="1"/>
90                 <label id="in_house_use_multiplier_label" value="Multiplier:" control="in_house_use_multiplier_textbox" accesskey="M"/>
91                 <textbox id="in_house_use_multiplier_textbox" value="1"/>
92         </hbox>
93
94
95         <tree id="in_house_use_list" flex="1" enableColumnDrag="true"/>
96
97         <hbox id="in_house_use_bottom_ui">
98                 <button id="in_house_use_print" 
99                         label="Print List" 
100                         command="cmd_in_house_use_print"
101                         accesskey=""/>
102                 <button id="in_house_use_reprint" 
103                         label="Re-Print Last List" 
104                         command="cmd_in_house_use_reprint"
105                         accesskey="L"/>
106                 <spacer id="pcii3s" flex="1"/>
107                 <checkbox id="in_house_use_auto" 
108                         label="Auto-Print" 
109                         accesskey_disabled="A"/> 
110         </hbox>
111
112 </groupbox>
113 </vbox>
114 </box>
115
116 </overlay>
117 </window>
118