]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/display_horiz.xul
52aa0b699fd742def74660445125b219dc7cc2c7
[working/Evergreen.git] / Open-ILS / xul / staff_client / server / patron / display_horiz.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_horiz_overlay.xul"?>
21
22 <window id="patron_display_win" 
23     onload="try { my_init(); font_helper(); persist_helper(); } catch(E) { alert(E); }"
24     onunload="try { my_cleanup(); persist_helper_cleanup(); } 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">
30         var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
31     </script>
32     <scripts id="openils_util_scripts"/>
33
34     <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
35     <script type="text/javascript" src="/xul/server/patron/display.js"/>
36     <script>
37     <![CDATA[
38         function $(id) { return document.getElementById(id); }
39     
40         function my_init() {
41             try {
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                     'show' : xul_param('show')
55                 } );
56
57             //document.documentElement.style.setProperty('font-size-adjust','1','important');
58
59             } catch(E) {
60                 var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/display.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 my_cleanup() {
67             try {
68                 g.patron.cleanup();
69             } catch(E) {
70                 var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/display.xul', E]);
71                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
72                 alert(err_msg);
73             }
74         }
75
76         function default_focus() {
77             setTimeout(
78                 function() {
79                     try {
80                         var node = g.patron.right_deck.node.selectedPanel;
81                         if (node && get_contentWindow(node) && typeof get_contentWindow(node).default_focus == 'function') {
82                             get_contentWindow(node).default_focus();
83                         } else {
84                             var node = g.patron.left_deck.node.selectedPanel;
85                             if (node && get_contentWindow(node) && typeof get_contentWindow(node).default_focus == 'function') {
86                                 get_contentWindow(node).default_focus();
87                             }
88                         }
89                     } catch(E) {
90                         g.error.sdump('D_ERROR','default_focus(): ' + js2JSON(E));
91                     }
92                 }, 0
93             );
94         }
95
96     ]]>
97     </script>
98
99     <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
100
101     <commandset id="patron_display_cmds">
102         <command id="cmd_patron_refresh" />
103         <command id="cmd_patron_checkout" />
104         <command id="cmd_patron_items" />
105         <command id="cmd_patron_holds" />
106         <command id="cmd_patron_bills" />
107         <command id="cmd_patron_edit" />
108         <command id="cmd_patron_info_notes" />
109         <command id="cmd_patron_info_triggered_events" />
110         <command id="cmd_patron_info_stats" />
111         <command id="cmd_patron_info_surveys" />
112         <command id="cmd_patron_info_groups" />
113         <command id="cmd_patron_other" />
114         <command id="cmd_patron_alert" />
115         <command id="cmd_patron_reservation" />
116         <command id="cmd_patron_reservation_pickup" />
117         <command id="cmd_patron_reservation_return" />
118         <command id="cmd_patron_exit" />
119         <command id="cmd_patron_retrieve" />
120         <command id="cmd_patron_merge" />
121         <command id="cmd_patron_toggle_summary" />
122         <command id="cmd_patron_delete" />
123         <command id="cmd_search_form" />
124         <command id="cmd_verify_credentials" />
125         <command id="cmd_perm_editor" />
126         <command id="cmd_standing_penalties" />
127     </commandset>
128
129     <box id="patron_display_main" class="my_overflow" />
130
131 </window>
132