2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Patron Display -->
5 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
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"?>
12 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
14 <!DOCTYPE window PUBLIC "" ""[
15 <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
18 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
20 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
22 <window id="patron_info_win" width="700" height="550"
23 onload="try{ my_init(); font_helper(); } catch(E) { alert(E); }"
24 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
26 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
28 <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
29 <scripts id="openils_util_scripts"/>
31 <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
35 // FIXME - change this to load each tab/sub-interface as needed and not all at once
37 function $(id) { return document.getElementById(id); }
41 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
42 if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
43 JSAN.errorLevel = "die"; // none, warn, or die
44 JSAN.addRepository('/xul/server/');
46 JSAN.use('util.error'); g.error = new util.error();
47 JSAN.use('util.network'); g.network = new util.network();
48 JSAN.use('util.date'); JSAN.use('util.money'); JSAN.use('patron.util');
49 JSAN.use('OpenILS.data'); g.data = new OpenILS.data(); g.data.init({'via':'stash'});
51 g.error.sdump('D_TRACE','my_init() for patron_info.xul');
53 g.patron_id = xul_param('patron_id');
56 $('notes_frame').setAttribute('src',urls.XUL_PATRON_INFO_NOTES);
57 get_contentWindow($('notes_frame')).xulG =
58 { 'patron_id' : g.patron_id, 'url_prefix' : xulG.url_prefix, 'new_tab' : xulG.new_tab };
61 $('stat_cats_frame').setAttribute('src',urls.XUL_PATRON_INFO_STAT_CATS);
62 get_contentWindow($('stat_cats_frame')).xulG =
63 { 'patron_id' : g.patron_id, 'url_prefix' : xulG.url_prefix, 'new_tab' : xulG.new_tab };
66 $('surveys_frame').setAttribute('src',urls.XUL_PATRON_INFO_SURVEYS);
67 get_contentWindow($('surveys_frame')).xulG =
68 { 'patron_id' : g.patron_id, 'url_prefix' : xulG.url_prefix, 'new_tab' : xulG.new_tab };
71 $('group_frame').setAttribute('src',urls.XUL_PATRON_INFO_GROUP);
72 get_contentWindow($('group_frame')).xulG =
73 { 'patron_id' : g.patron_id, 'url_prefix' : xulG.url_prefix, 'new_tab' : xulG.new_tab };
77 var err_msg = "!! This software has encountered an error. Please tell your friendly " +
78 "system administrator or software developer the following:\npatron_info.xul\n" + E + '\n';
79 try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
86 netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
87 for (var i in [ 'notes_frame', 'stat_cats_frame', 'surveys_frame', 'group_frame' ]) {
88 if (get_contentWindow($(i)) && typeof get_contentWindow($(i)).refresh == 'function') {
89 get_contentWindow($(i)).refresh();
100 <vbox flex="1" class="my_overflow2">
101 <tabbox flex="1" orient="horizontal">
102 <tabs orient="vertical" class="tabs-left">
103 <tab accesskey="N" label="Notes" />
104 <tab accesskey="S" label="Stat Cats"/>
105 <tab accesskey="y" label="Surveys"/>
106 <tab accesskey="G" label="Group"/>
107 <tab label=" " disabled="true" linkedpanel="notes_panel" flex="1"/>
108 <tab label=" " disabled="true" linkedpanel="notes_panel" flex="1"/>
109 <tab label=" " disabled="true" linkedpanel="notes_panel" flex="1"/>
110 <tab label=" " disabled="true" linkedpanel="notes_panel" flex="1"/>
113 <tabpanel id="notes_panel" orient="vertical">
114 <iframe id="notes_frame" flex="1"/>
116 <tabpanel id="stat_cats_panel" orient="vertical">
117 <iframe id="stat_cats_frame" flex="1"/>
119 <tabpanel id="surveys_panel" orient="vertical">
120 <iframe id="surveys_frame" flex="1"/>
122 <tabpanel id="group_panel" orient="vertical">
123 <iframe id="group_frame" flex="1"/>