]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/xul/staff_client/server/patron/summary.xul
move the Test Password button from the summary sidebar to a more expandible Actions...
[working/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/${locale}/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(); font_helper(); } 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 $(id) { return document.getElementById(id); }
37                 
38                 function my_init() {
39                         try {
40                                 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
41                                 if (typeof JSAN == 'undefined') { throw( $("commonStrings").getString('common.jsan.missing') ); }
42                                 JSAN.errorLevel = "die"; // none, warn, or die
43                                 JSAN.addRepository('/xul/server/');
44                                 JSAN.use('util.error'); g.error = new util.error();
45                                 g.error.sdump('D_TRACE','my_init() for patron_summary.xul');
46
47                                 var patron_id = xul_param('id'); 
48                                 var patron_bc = xul_param('barcode'); 
49
50                                 JSAN.use('patron.summary'); g.summary = new patron.summary();
51                                 g.summary.init( { 
52                                         'barcode' : patron_bc,
53                                         'id' : patron_id,
54                                         'show_name' : xul_param('show_name'),
55                                 } );
56
57                                 window.refresh = function () { g.summary.retrieve(); }
58
59                         } catch(E) {
60                                 var err_msg = $("commonStrings").getFormattedString('common.exception', ['patron/summary.xul', E]);
61                                 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
62                                 alert(err_msg);
63                         }
64                 }
65
66         ]]>
67         </script>
68         
69         <messagecatalog id="patronStrings" src="/xul/server/locale/<!--#echo var='locale'-->/patron.properties"/>
70
71         <commandset id="patron_summary_cmds">
72         </commandset>
73
74         <box id="patron_summary_main" />
75
76 </window>
77