]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/items.xul
Patch from Craig Ricciuto to bring i18n to the patron staff client interfaces
[Evergreen.git] / Open-ILS / xul / staff_client / server / patron / items.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/${locale}/lang.dtd"-->
16 ]>
17
18 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <!-- OVERLAYS -->
20 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
21 <?xul-overlay href="/xul/server/patron/items_overlay.xul"?>
22
23 <window id="items_win" 
24         onload="try { my_init(); font_helper(); } catch(E) { alert(E); }"
25         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
26
27         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
28         <!-- BEHAVIOR -->
29         <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
30         <scripts id="openils_util_scripts"/>
31
32         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
33         <script>
34         <![CDATA[
35                 function my_init() {
36                         try {
37                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
38                                 if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
39                                 JSAN.errorLevel = "die"; // none, warn, or die
40                                 JSAN.addRepository('/xul/server/');
41                                 JSAN.use('util.error'); g.error = new util.error();
42                                 try { g.error.sdump('D_TRACE','my_init() for items.xul'); } catch(E) { dump(E); }
43
44                                 JSAN.use('patron.items'); g.items = new patron.items();
45                                 g.items.init( 
46                                         { 
47                                                 'patron_id' : xul_param('patron_id'), 
48                                         } 
49                                 );
50                                 
51                                 window.refresh = function (p) { g.items.retrieve(p); }
52
53                                 default_focus();
54
55                         } catch(E) {
56                                 var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/items.xul', E]);
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 { var x = document.getElementById('noncat'); x.focus(); } catch(E) { try { g.error.sdump('D_ERROR','item.xul, default_focus: ' + E); } catch(F) { dump(E); } } }
63
64         ]]>
65         </script>
66
67         <messagecatalog id="circStrings" src="/xul/server/locale/<!--#echo var='locale' -->/circ.properties"/>
68         <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
69         <messagecatalog id="commonStrings" src="/xul/server/locale/<!--#echo var='locale'-->/common.properties" />
70
71         <commandset id="items_cmds">
72                 <command id="save_columns" />
73                 <command id="sel_bucket" disabled="true"/>
74                 <command id="sel_clip" />
75                 <command id="sel_copy_details"/>
76                 <command id="sel_patron"/>
77                 <command id="cmd_items_print" />
78                 <command id="cmd_items_export" />
79                 <command id="cmd_items_renew" />
80                 <command id="cmd_items_renew_all" />
81                 <command id="cmd_items_claimed_returned" />
82                 <command id="cmd_items_checkin" />
83                 <command id="cmd_items_edit" />
84                 <command id="cmd_items_mark_lost" />
85                 <command id="cmd_show_catalog" />
86                 <command id="cmd_add_billing" />
87                 <command id="sel_mark_items_damaged" disabled="true"/>
88                 <command id="sel_mark_items_missing" disabled="true"/>
89                 
90                 <command id="cmd_show_noncats" />
91
92                 <command id="save_columns2" />
93                 <command id="sel_bucket2" disabled="true"/>
94                 <command id="sel_clip2" />
95                 <command id="sel_copy_details2"/>
96                 <command id="sel_patron2"/>
97                 <command id="cmd_items_print2" />
98                 <command id="cmd_items_export2" />
99                 <command id="cmd_items_renew2" />
100                 <command id="cmd_items_claimed_returned2" />
101                 <command id="cmd_items_checkin2" />
102                 <command id="cmd_items_edit2" />
103                 <command id="cmd_items_mark_lost2" />
104                 <command id="cmd_show_catalog2" />
105                 <command id="cmd_add_billing2" />
106                 <command id="sel_mark_items_damaged2" disabled="true"/>
107                 <command id="sel_mark_items_missing2" disabled="true"/>
108         </commandset>
109
110         <popupset id="items_popupset"/>
111
112         <box id="items_main" />
113
114 </window>
115