]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/circ/in_house_use.xul
Include barcode in pre-cat confirm dialog
[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                 if (typeof JSAN == 'undefined') {
36                     throw( document.getElementById("commonStrings").getString('common.jsan.missing') );
37                 }
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 {
51                         window.xulG.set_tab_name(document.getElementById('circStrings').getString('staff.circ.in_house_use.tab_name'));
52                     } catch(E) {
53                         alert(E);
54                     }
55                 }
56
57             } catch(E) {
58                 var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ['circ.in_house_use.xul', E]);
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     <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" />
69
70     <commandset id="in_house_use_cmds">
71         <command id="sel_clip" disabled="true" />
72         <command id="cmd_csv_to_clipboard" />
73         <command id="cmd_csv_to_printer" />
74         <command id="cmd_csv_to_file" />
75         <command id="cmd_in_house_use_submit_barcode" />
76         <command id="cmd_in_house_use_print" />
77         <command id="save_columns" />
78     </commandset>
79
80 <box id="in_house_use_main" flex="1" orient="vertical" class="my_overflow">
81 <vbox id="cmvb1" flex="1">
82 <hbox id="background" style="background-color: purple; color: white;">
83     <spacer flex="1"/>
84     <label value="&staff.circ.in_house_use.main.label;" style="font-size: x-large; font-weight: bold;"/>
85     <spacer flex="1"/>
86 </hbox>
87 <groupbox id="cmgb1" flex="2">
88
89     <caption label="&staff.circ.in_house_use.cmgb1.caption;" />
90
91     <hbox id="in_house_use_top_ui">
92         <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"/>
93         <textbox id="in_house_use_multiplier_textbox" value="1" hidden="false" size="6" cols="6" context="clipboard"/>
94         <hbox id="in_house_use_menu_placeholder" flex="0"/>
95         <textbox id="in_house_use_barcode_entry_textbox" context="clipboard"/>
96         <button id="in_house_use_submit_barcode_button" 
97             label="&staff.circ.in_house_use.submit.label;"
98             command="cmd_in_house_use_submit_barcode"
99             accesskey="&staff.circ.in_house_use.submit.accesskey;"/>
100     </hbox>
101
102     <tree id="in_house_use_list" flex="1" enableColumnDrag="true" />
103
104     <hbox id="in_house_use_bottom_ui">
105         <button id="list_actions" oncommand="this.firstChild.showPopup();"
106             label="&staff.generic.list_actions.label;" 
107             accesskey="&staff.generic.list_actions.accesskey;" 
108             type="menu" allowevents="true">
109             <menupopup id="list_actions_popup">
110                 <menuitem command="sel_clip" label="&staff.generic.list_actions.sel_clip.label;" accesskey="&staff.generic.list_actions.sel_clip.accesskey;" />
111                 <menuitem command="cmd_csv_to_printer" label="&staff.generic.list_actions.csv_to_printer.label;" accesskey="&staff.generic.list_actions.csv_to_printer.accesskey;" />
112                 <menuitem command="cmd_csv_to_clipboard" label="&staff.generic.list_actions.csv_to_clipboard.label;" accesskey="&staff.generic.list_actions.csv_to_clipboard.accesskey;" />
113                 <menuitem command="cmd_csv_to_file" label="&staff.generic.list_actions.csv_to_file.label;" accesskey="&staff.generic.list_actions.csv_to_file.accesskey;" />
114                 <menuitem command="save_columns" label="&staff.generic.list_actions.save_columns.label;" accesskey="&staff.generic.list_actions.save_columns.accesskey;" />
115             </menupopup>
116         </button>
117
118         <button id="in_house_use_print" 
119             label="&staff.circ.in_house_use.print.label;" 
120             command="cmd_in_house_use_print"
121             accesskey=""/>
122         <checkbox id="trim_list" label="&staff.circ.in_house_use.trim_list.label;" checked="true" oils_persist="checked"/> 
123         <checkbox id="strict_barcode" label="&staff.circ.in_house_use.strict_barcode.label;" checked="false" oils_persist="checked"/> 
124         <spacer id="pcii3s" flex="1"/>
125     </hbox>
126
127 </groupbox>
128 </vbox>
129 </box>
130
131 </window>
132