2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Patron Display -->
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
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"?>
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
13 <!DOCTYPE window PUBLIC "" ""[
14 <!--#include virtual="/opac/locale/${locale}/lang.dtd"-->
17 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
20 <?xul-overlay href="/xul/server/patron/display_horiz_overlay.xul"?>
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">
27 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
29 <script type="text/javascript">
30 var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
32 <scripts id="openils_util_scripts"/>
34 <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
35 <script type="text/javascript" src="/xul/server/patron/display.js"/>
38 function $(id) { return document.getElementById(id); }
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');
48 JSAN.use('patron.display'); g.patron = new patron.display();
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')
57 //document.documentElement.style.setProperty('font-size-adjust','1','important');
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); }
66 function my_cleanup() {
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); }
76 function default_focus() {
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();
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();
90 g.error.sdump('D_ERROR','default_focus(): ' + js2JSON(E));
99 <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
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_acq_requests" />
113 <command id="cmd_patron_info_groups" />
114 <command id="cmd_patron_other" />
115 <command id="cmd_patron_alert" />
116 <command id="cmd_patron_reservation" />
117 <command id="cmd_patron_reservation_pickup" />
118 <command id="cmd_patron_reservation_return" />
119 <command id="cmd_patron_exit" />
120 <command id="cmd_patron_retrieve" />
121 <command id="cmd_patron_merge" />
122 <command id="cmd_patron_toggle_summary" />
123 <command id="cmd_patron_delete" />
124 <command id="cmd_search_form" />
125 <command id="cmd_verify_credentials" />
126 <command id="cmd_perm_editor" />
127 <command id="cmd_standing_penalties" />
130 <box id="patron_display_main" class="my_overflow" />