]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/display.xul
global font settings
[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="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/patron_display.css" type="text/css"?>
11
12 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
13 <!-- LOCALIZATION -->
14 <!DOCTYPE window PUBLIC "" ""[
15         <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
16 ]>
17
18 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <!-- OVERLAYS -->
20 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
21 <?xul-overlay href="/xul/server/patron/display_overlay.xul"?>
22
23 <window id="patron_display_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">
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>
36         <![CDATA[
37                 function my_init() {
38                         try {
39                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
40                                 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
41                                 JSAN.errorLevel = "die"; // none, warn, or die
42                                 JSAN.addRepository('/xul/server/');
43                                 JSAN.use('util.error'); g.error = new util.error();
44                                 g.error.sdump('D_TRACE','my_init() for patron_display.xul');
45
46                                 g.cgi = new CGI();
47
48                                 JSAN.use('patron.display'); g.patron = new patron.display();
49                                 g.patron.init( { 
50                                         'barcode' : g.cgi.param('barcode') || xulG.barcode ,
51                                         'id' : g.cgi.param('id')  || xulG.id,
52                                         'query' : g.cgi.param('query') || xulG.query,
53                                         'doit' : g.cgi.param('doit') || xulG.doit,
54                                 } );
55
56                         //document.documentElement.style.setProperty('font-size-adjust','1','important');
57
58                         } catch(E) {
59                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
60                                         "system administrator or software developer the following:\n" 
61                                         + 'patron/display.xul\n' + E + '\n';
62                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
63                                 alert(err_msg);
64                         }
65                 }
66
67                 function default_focus() {
68                         setTimeout(
69                                 function() {
70                                         try {
71                                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
72                                                 var node = g.patron.right_deck.node.selectedPanel;
73                                                 if (node && node.contentWindow && typeof node.contentWindow.default_focus == 'function') {
74                                                         node.contentWindow.default_focus();
75                                                 } else {
76                                                         var node = g.patron.left_deck.node.selectedPanel;
77                                                         if (node && node.contentWindow && typeof node.contentWindow.default_focus == 'function') {
78                                                                 node.contentWindow.default_focus();
79                                                         }
80                                                 }
81                                         } catch(E) {
82                                                 g.error.sdump('D_ERROR','default_focus(): ' + js2JSON(E));
83                                         }
84                                 }, 0
85                         );
86                 }
87
88         ]]>
89         </script>
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" />
99                 <command id="cmd_patron_retrieve" />
100                 <command id="cmd_search_form" />
101         </commandset>
102
103         <box id="patron_display_main" style="overflow: scroll"/>
104
105 </window>
106