]> git.evergreen-ils.org Git - Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/summary.xul
1acddfceeb651f63bd222e9f2ff62576e004edc6
[Evergreen.git] / Open-ILS / xul / staff_client / server / patron / summary.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 <?xml-stylesheet href="/xul/server/skin/patron_summary.css" type="text/css"?>
12
13 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
14 <!-- LOCALIZATION -->
15 <!DOCTYPE window PUBLIC "" ""[
16         <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
17 ]>
18
19 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
20 <!-- OVERLAYS -->
21 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
22 <?xul-overlay href="/xul/server/patron/summary_overlay.xul"?>
23
24 <window id="patron_summary_win" 
25         onload="try { my_init(); } catch(E) { alert(E); }"
26         xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
27
28         <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
29         <!-- BEHAVIOR -->
30         <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
31         <scripts id="openils_util_scripts"/>
32
33         <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
34         <script>
35         <![CDATA[
36                 function my_init() {
37                         try {
38                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
39                                 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
40                                 JSAN.errorLevel = "die"; // none, warn, or die
41                                 JSAN.addRepository('/xul/server/');
42                                 JSAN.use('util.error'); g.error = new util.error();
43                                 g.error.sdump('D_TRACE','my_init() for patron_summary.xul');
44
45                                 g.cgi = new CGI();
46
47                                 JSAN.use('patron.summary'); g.summary = new patron.summary();
48                                 g.summary.init( { 
49                                         'barcode' : g.cgi.param('barcode') || xulG.barcode, 
50                                         'id' : g.cgi.param('id')|| xulG.id, 
51                                         'show_name' : g.cgi.param('show_name'),
52                                 } );
53
54                                 window.refresh = function () { g.summary.retrieve(); }
55
56                         } catch(E) {
57                                 var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
58                                         "system administrator or software developer the following:\n" + E + '\n';
59                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
60                                 alert(err_msg);
61                         }
62                 }
63
64         ]]>
65         </script>
66
67         <commandset id="patron_summary_cmds">
68         </commandset>
69
70         <box id="patron_summary_main" />
71
72 </window>
73