]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/display.xul
Except in certain cases (like chrome://global/skin/), we can no longer reference...
[working/Evergreen.git] / Open-ILS / xul / staff_client / server / patron / display.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="/xul/server/skin/global.css" type="text/css"?>
9 <?xml-stylesheet href="/xul/server/skin/patron_display.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 <?xul-overlay href="/xul/server/patron/display_overlay.xul"?>
21
22 <window id="patron_display_win" 
23         onload="try { my_init(); font_helper(); persist_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">
29                 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
30         </script>
31         <scripts id="openils_util_scripts"/>
32
33         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
34         <script type="text/javascript" src="/xul/server/patron/display.js"/>
35         <script>
36         <![CDATA[
37                 function $(id) { return document.getElementById(id); }
38         
39                 function my_init() {
40                         try {
41                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
42                                 if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
43                                 JSAN.errorLevel = "die"; // none, warn, or die
44                                 JSAN.addRepository('/xul/server/');
45                                 JSAN.use('util.error'); g.error = new util.error();
46                                 g.error.sdump('D_TRACE','my_init() for patron_display.xul');
47
48                                 JSAN.use('patron.display'); g.patron = new patron.display();
49                                 g.patron.init( { 
50                                         'barcode' : xul_param('barcode'),
51                                         'id' : xul_param('id'),
52                                         'query' : xul_param('query'),
53                                         'doit' : xul_param('doit')
54                                 } );
55
56                         //document.documentElement.style.setProperty('font-size-adjust','1','important');
57
58                         } catch(E) {
59                                 var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/display.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() {
66                         setTimeout(
67                                 function() {
68                                         try {
69                                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
70                                                 var node = g.patron.right_deck.node.selectedPanel;
71                                                 if (node && get_contentWindow(node) && typeof get_contentWindow(node).default_focus == 'function') {
72                                                         get_contentWindow(node).default_focus();
73                                                 } else {
74                                                         var node = g.patron.left_deck.node.selectedPanel;
75                                                         if (node && get_contentWindow(node) && typeof get_contentWindow(node).default_focus == 'function') {
76                                                                 get_contentWindow(node).default_focus();
77                                                         }
78                                                 }
79                                         } catch(E) {
80                                                 g.error.sdump('D_ERROR','default_focus(): ' + js2JSON(E));
81                                         }
82                                 }, 0
83                         );
84                 }
85
86         ]]>
87         </script>
88
89         <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
90
91         <commandset id="patron_display_cmds">
92                 <command id="cmd_patron_refresh" />
93                 <command id="cmd_patron_checkout" />
94                 <command id="cmd_patron_items" />
95                 <command id="cmd_patron_holds" />
96                 <command id="cmd_patron_bills" />
97                 <command id="cmd_patron_edit" />
98                 <command id="cmd_patron_info_notes" />
99                 <command id="cmd_patron_info_stats" />
100                 <command id="cmd_patron_info_surveys" />
101                 <command id="cmd_patron_info_groups" />
102                 <command id="cmd_patron_other" />
103                 <command id="cmd_patron_alert" />
104                 <command id="cmd_patron_exit" />
105                 <command id="cmd_patron_retrieve" />
106                 <command id="cmd_patron_merge" />
107                 <command id="cmd_patron_toggle_summary" />
108                 <command id="cmd_patron_delete" />
109                 <command id="cmd_search_form" />
110                 <command id="cmd_verify_credentials" />
111                 <command id="cmd_perm_editor" />
112                 <command id="cmd_standing_penalties" />
113         </commandset>
114
115         <box id="patron_display_main" class="my_overflow" />
116
117 </window>
118