]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/circ/in_house_use.xul
b6907dccb5b60875112899187825d84b100b1ad7
[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 PUBLIC "" ""[
15         <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
16 ]>
17
18 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <!-- OVERLAYS -->
20 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
21
22 <window id="in_house_use_win" 
23         onload="try { my_init(); font_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( "The JSAN library object is 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 in_house_use.xul');
42
43                                 g.cgi = new CGI();
44
45                                 JSAN.use('circ.in_house_use'); g.in_house_use = new circ.in_house_use();
46                                 g.in_house_use.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('In-House Use'); } catch(E) { alert(E); }
53                                 }
54
55                         } catch(E) {
56                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
57                                         "system administrator or software developer the following:\n" 
58                                         + 'circ.in_house_use.xul\n' + E + '\n';
59                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
60                                 alert(err_msg);
61                         }
62                 }
63
64                 function default_focus() { try { setTimeout( function() { document.getElementById('in_house_use_barcode_entry_textbox').focus(); }, 0); } catch(E) {} }
65         ]]>
66         </script>
67
68         <commandset id="in_house_use_cmds">
69                 <command id="sel_clip" />
70                 <command id="cmd_in_house_use_submit_barcode" />
71                 <command id="cmd_in_house_use_print" />
72                 <command id="cmd_in_house_use_export" />
73                 <command id="cmd_in_house_use_reprint" />
74                 <command id="cmd_in_house_use_done" />
75                 <command id="save_columns" />
76         </commandset>
77
78 <box id="in_house_use_main" flex="1" orient="vertical" class="my_overflow">
79 <vbox id="cmvb1" flex="1">
80 <hbox id="background" style="background-color: purple; color: white;">
81         <spacer flex="1"/>
82         <label value="Record In-House Use" style="font-size: x-large; font-weight: bold;"/>
83         <spacer flex="1"/>
84 </hbox>
85 <groupbox id="cmgb1" flex="2">
86
87         <caption label="In-House Use" />
88
89         <hbox id="in_house_use_top_ui">
90                 <label id="in_house_use_multiplier_label" value="# of uses:" control="in_house_use_multiplier_textbox" accesskey="u" hidden="false"/>
91                 <textbox id="in_house_use_multiplier_textbox" value="1" hidden="false" size="2" cols="2"/>
92                 <hbox id="in_house_use_menu_placeholder" flex="0"/>
93                 <textbox id="in_house_use_barcode_entry_textbox"/>
94                 <button id="in_house_use_submit_barcode_button" 
95                         label="Submit"
96                         command="cmd_in_house_use_submit_barcode"
97                         accesskey="S"/>
98         </hbox>
99
100         <tree id="in_house_use_list" flex="1" enableColumnDrag="true" />
101
102         <hbox id="in_house_use_bottom_ui">
103                 <button id="in_house_use_print" 
104                         label="Print List" 
105                         command="cmd_in_house_use_print"
106                         accesskey=""/>
107                 <button id="in_house_use_export" 
108                         label="Export"
109                         command="cmd_in_house_use_export"
110                         accesskey=""/>
111                 <checkbox id="trim_list" label="Trim List (20 rows)" checked="true" persist="checked"/> 
112                 <checkbox id="strict_barcode" label="Strict Barcode" checked="false" persist="checked"/> 
113                 <spacer id="pcii3s" flex="1"/>
114                 <button id="clip_button" disabled="true" command="sel_clip" label="Copy to Clipboard" />
115                 <button id="save_cols_btn" command="save_columns" label="Save Columns" />
116         </hbox>
117
118 </groupbox>
119 </vbox>
120 </box>
121
122 </window>
123