]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/circ/in_house_use.xul
Use more consistent strings and enable label/accesskey concordance
[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="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/${locale}/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') {
38                                         throw( document.getElementById("commonStrings").getString('common.jsan.missing') );
39                                 }
40                                 JSAN.errorLevel = "die"; // none, warn, or die
41                                 JSAN.addRepository('/xul/server/');
42                                 JSAN.use('util.error'); g.error = new util.error();
43                                 g.error.sdump('D_TRACE','my_init() for in_house_use.xul');
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 {
53                                                 window.xulG.set_tab_name(document.getElementById('circStrings').getString('staff.circ.in_house_use.tab_name'));
54                                         } catch(E) {
55                                                 alert(E);
56                                         }
57                                 }
58
59                         } catch(E) {
60                                 var err_msg = document.getElementById("commonStrings").getFormattedString('common.exception', ['circ.in_house_use.xul', E]);
61                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
62                                 alert(err_msg);
63                         }
64                 }
65
66                 function default_focus() { try { setTimeout( function() { document.getElementById('in_house_use_barcode_entry_textbox').focus(); }, 0); } catch(E) {} }
67         ]]>
68         </script>
69
70         <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale'-->/circ.properties" />
71         <messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties" />
72
73         <commandset id="in_house_use_cmds">
74                 <command id="sel_clip" />
75                 <command id="cmd_in_house_use_submit_barcode" />
76                 <command id="cmd_in_house_use_print" />
77                 <command id="cmd_in_house_use_export" />
78                 <command id="cmd_in_house_use_reprint" />
79                 <command id="cmd_in_house_use_done" />
80                 <command id="save_columns" />
81         </commandset>
82
83 <box id="in_house_use_main" flex="1" orient="vertical" class="my_overflow">
84 <vbox id="cmvb1" flex="1">
85 <hbox id="background" style="background-color: purple; color: white;">
86         <spacer flex="1"/>
87         <label value="&staff.circ.in_house_use.main.label;" style="font-size: x-large; font-weight: bold;"/>
88         <spacer flex="1"/>
89 </hbox>
90 <groupbox id="cmgb1" flex="2">
91
92         <caption label="&staff.circ.in_house_use.cmgb1.caption;" />
93
94         <hbox id="in_house_use_top_ui">
95                 <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"/>
96                 <textbox id="in_house_use_multiplier_textbox" value="1" hidden="false" size="2" cols="2"/>
97                 <hbox id="in_house_use_menu_placeholder" flex="0"/>
98                 <textbox id="in_house_use_barcode_entry_textbox"/>
99                 <button id="in_house_use_submit_barcode_button" 
100                         label="&staff.circ.in_house_use.submit.label;"
101                         command="cmd_in_house_use_submit_barcode"
102                         accesskey="&staff.circ.in_house_use.submit.accesskey;"/>
103         </hbox>
104
105         <tree id="in_house_use_list" flex="1" enableColumnDrag="true" />
106
107         <hbox id="in_house_use_bottom_ui">
108                 <button id="in_house_use_print" 
109                         label="&staff.circ.in_house_use.print.label;" 
110                         command="cmd_in_house_use_print"
111                         accesskey=""/>
112                 <button id="in_house_use_export" 
113                         label="&staff.circ.in_house_use.export.label;"
114                         command="cmd_in_house_use_export"
115                         accesskey=""/>
116                 <checkbox id="trim_list" label="&staff.circ.in_house_use.trim_list.label;" checked="true" persist="checked"/> 
117                 <checkbox id="strict_barcode" label="&staff.circ.in_house_use.strict_barcode.label;" checked="false" persist="checked"/> 
118                 <spacer id="pcii3s" flex="1"/>
119                 <button id="clip_button" disabled="true" command="sel_clip" label="&staff.circ.in_house_use.sel_clip.label;" />
120                 <button id="save_cols_btn" command="save_columns" label="&staff.circ.in_house_use.save_cols_btn.label;" />
121         </hbox>
122
123 </groupbox>
124 </vbox>
125 </box>
126
127 </window>
128