]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/circ/in_house_use.xul
ae1292c053ca902a064e535585a14e708aabc7f9
[working/Evergreen.git] / Open-ILS / xul / staff_client / server / circ / in_house_use.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="/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
21 <window id="in_house_use_win" 
22     onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
23     xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
24
25     <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
26     <!-- BEHAVIOR -->
27         <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
28         <scripts id="openils_util_scripts"/>
29
30     <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
31     <script>
32     <![CDATA[
33         function my_init() {
34             try {
35                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
36                 if (typeof JSAN == 'undefined') {
37                     throw( document.getElementById("commonStrings").getString('common.jsan.missing') );
38                 }
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 in_house_use.xul');
43
44                 JSAN.use('circ.in_house_use'); g.in_house_use = new circ.in_house_use();
45                 g.in_house_use.init( 
46                     { 
47                     } 
48                 );
49     
50                 if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
51                     try {
52                         window.xulG.set_tab_name(document.getElementById('circStrings').getString('staff.circ.in_house_use.tab_name'));
53                     } catch(E) {
54                         alert(E);
55                     }
56                 }
57
58             } catch(E) {
59                 var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ['circ.in_house_use.xul', E]);
60                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
61                 alert(err_msg);
62             }
63         }
64
65         function default_focus() { try { setTimeout( function() { document.getElementById('in_house_use_barcode_entry_textbox').focus(); }, 0); } catch(E) {} }
66     ]]>
67     </script>
68
69     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" />
70
71     <commandset id="in_house_use_cmds">
72         <command id="sel_clip" disabled="true" />
73         <command id="cmd_csv_to_clipboard" />
74         <command id="cmd_csv_to_printer" />
75         <command id="cmd_csv_to_file" />
76         <command id="cmd_in_house_use_submit_barcode" />
77         <command id="cmd_in_house_use_print" />
78         <command id="save_columns" />
79     </commandset>
80
81 <box id="in_house_use_main" flex="1" orient="vertical" class="my_overflow">
82 <vbox id="cmvb1" flex="1">
83 <hbox id="background" style="background-color: purple; color: white;">
84     <spacer flex="1"/>
85     <label value="&staff.circ.in_house_use.main.label;" style="font-size: x-large; font-weight: bold;"/>
86     <spacer flex="1"/>
87 </hbox>
88 <groupbox id="cmgb1" flex="2">
89
90     <caption label="&staff.circ.in_house_use.cmgb1.caption;" />
91
92     <hbox id="in_house_use_top_ui">
93         <label id="in_house_use_multiplier_label" value="&staff.circ.in_house_use.multiplier.label;" control="in_house_use_multiplier_textbox" accesskey="&staff.circ.in_house_use.multiplier.accesskey;" hidden="false"/>
94         <textbox id="in_house_use_multiplier_textbox" value="1" hidden="false" size="2" cols="2" context="clipboard"/>
95         <hbox id="in_house_use_menu_placeholder" flex="0"/>
96         <textbox id="in_house_use_barcode_entry_textbox" context="clipboard"/>
97         <button id="in_house_use_submit_barcode_button" 
98             label="&staff.circ.in_house_use.submit.label;"
99             command="cmd_in_house_use_submit_barcode"
100             accesskey="&staff.circ.in_house_use.submit.accesskey;"/>
101     </hbox>
102
103     <tree id="in_house_use_list" flex="1" enableColumnDrag="true" />
104
105     <hbox id="in_house_use_bottom_ui">
106         <button id="list_actions" oncommand="this.firstChild.showPopup();"
107             label="&staff.generic.list_actions.label;" 
108             accesskey="&staff.generic.list_actions.accesskey;" 
109             type="menu" allowevents="true">
110             <menupopup id="list_actions_popup">
111                 <menuitem command="sel_clip" label="&staff.generic.list_actions.sel_clip.label;" accesskey="&staff.generic.list_actions.sel_clip.accesskey;" />
112                 <menuitem command="cmd_csv_to_printer" label="&staff.generic.list_actions.csv_to_printer.label;" accesskey="&staff.generic.list_actions.csv_to_printer.accesskey;" />
113                 <menuitem command="cmd_csv_to_clipboard" label="&staff.generic.list_actions.csv_to_clipboard.label;" accesskey="&staff.generic.list_actions.csv_to_clipboard.accesskey;" />
114                 <menuitem command="cmd_csv_to_file" label="&staff.generic.list_actions.csv_to_file.label;" accesskey="&staff.generic.list_actions.csv_to_file.accesskey;" />
115                 <menuitem command="save_columns" label="&staff.generic.list_actions.save_columns.label;" accesskey="&staff.generic.list_actions.save_columns.accesskey;" />
116             </menupopup>
117         </button>
118
119         <button id="in_house_use_print" 
120             label="&staff.circ.in_house_use.print.label;" 
121             command="cmd_in_house_use_print"
122             accesskey=""/>
123         <checkbox id="trim_list" label="&staff.circ.in_house_use.trim_list.label;" checked="true" oils_persist="checked"/> 
124         <checkbox id="strict_barcode" label="&staff.circ.in_house_use.strict_barcode.label;" checked="false" oils_persist="checked"/> 
125         <spacer id="pcii3s" flex="1"/>
126     </hbox>
127
128 </groupbox>
129 </vbox>
130 </box>
131
132 </window>
133