]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/circ/in_house_use.xul
db11262d6b80c5861f0c72eabd2e332b063e00c9
[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                                 JSAN.use('circ.in_house_use'); g.in_house_use = new circ.in_house_use();
44                                 g.in_house_use.init( 
45                                         { 
46                                         } 
47                                 );
48         
49                                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
50                                         try { window.xulG.set_tab_name('In-House Use'); } catch(E) { alert(E); }
51                                 }
52
53                         } catch(E) {
54                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
55                                         "system administrator or software developer the following:\n" 
56                                         + 'circ.in_house_use.xul\n' + E + '\n';
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('in_house_use_barcode_entry_textbox').focus(); }, 0); } catch(E) {} }
63         ]]>
64         </script>
65
66         <commandset id="in_house_use_cmds">
67                 <command id="sel_clip" />
68                 <command id="cmd_in_house_use_submit_barcode" />
69                 <command id="cmd_in_house_use_print" />
70                 <command id="cmd_in_house_use_export" />
71                 <command id="cmd_in_house_use_reprint" />
72                 <command id="cmd_in_house_use_done" />
73                 <command id="save_columns" />
74         </commandset>
75
76 <box id="in_house_use_main" flex="1" orient="vertical" class="my_overflow">
77 <vbox id="cmvb1" flex="1">
78 <hbox id="background" style="background-color: purple; color: white;">
79         <spacer flex="1"/>
80         <label value="Record In-House Use" style="font-size: x-large; font-weight: bold;"/>
81         <spacer flex="1"/>
82 </hbox>
83 <groupbox id="cmgb1" flex="2">
84
85         <caption label="In-House Use" />
86
87         <hbox id="in_house_use_top_ui">
88                 <label id="in_house_use_multiplier_label" value="# of uses:" control="in_house_use_multiplier_textbox" accesskey="u" hidden="false"/>
89                 <textbox id="in_house_use_multiplier_textbox" value="1" hidden="false" size="2" cols="2"/>
90                 <hbox id="in_house_use_menu_placeholder" flex="0"/>
91                 <textbox id="in_house_use_barcode_entry_textbox"/>
92                 <button id="in_house_use_submit_barcode_button" 
93                         label="Submit"
94                         command="cmd_in_house_use_submit_barcode"
95                         accesskey="S"/>
96         </hbox>
97
98         <tree id="in_house_use_list" flex="1" enableColumnDrag="true" />
99
100         <hbox id="in_house_use_bottom_ui">
101                 <button id="in_house_use_print" 
102                         label="Print List" 
103                         command="cmd_in_house_use_print"
104                         accesskey=""/>
105                 <button id="in_house_use_export" 
106                         label="Export"
107                         command="cmd_in_house_use_export"
108                         accesskey=""/>
109                 <checkbox id="trim_list" label="Trim List (20 rows)" checked="true" persist="checked"/> 
110                 <checkbox id="strict_barcode" label="Strict Barcode" checked="false" persist="checked"/> 
111                 <spacer id="pcii3s" flex="1"/>
112                 <button id="clip_button" disabled="true" command="sel_clip" label="Copy to Clipboard" />
113                 <button id="save_cols_btn" command="save_columns" label="Save Columns" />
114         </hbox>
115
116 </groupbox>
117 </vbox>
118 </box>
119
120 </window>
121