2 <!-- Application: Evergreen Staff Client -->
3 <!-- Screen: Main, Authentication Window -->
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="chrome://open_ils_staff_client/skin/auth.css" type="text/css"?>
11 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
13 <!DOCTYPE window SYSTEM "chrome://open_ils_staff_client/locale/lang.dtd">
15 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
17 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
20 onload="try { data_init(); } catch(E) { alert(E); }"
21 title="&staff.auth.title;"
22 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
25 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
27 <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
28 <scripts id="openils_util_scripts"/>
30 <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/lang.js"/>
31 <script type="text/javascript" src="/xul/server/main/lang.js"/>
32 <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/JSAN.js"/>
35 dump("entities['lang.version'] = " + entities['lang.version'] + '\n');
37 function data_init() {
39 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
41 if (typeof JSAN == 'undefined') {
43 "The JSAN library object is missing."
46 /////////////////////////////////////////////////////////////////////////////
48 JSAN.errorLevel = "die"; // none, warn, or die
49 JSAN.addRepository('/xul/server/');
51 JSAN.use('OpenILS.data');
52 g.data = new OpenILS.data()
53 g.data.on_error = xulG.auth.logoff;
54 g.data.entities = entities;
55 g.data.stash('entities');
57 g.data.session = xulG.auth.session.key;
58 g.data.on_complete = function () {
60 g.data.stash('list','hash','tree','temp');
61 g.data._debug_stash();
63 xulG.window.open(urls.XUL_MENU_FRAME
64 + '?session='+window.escape(xulG.auth.session.key)
65 + '&authtime='+window.escape(xulG.auth.session.authtime)
66 + '&server='+window.escape(xulG.url),
67 'test'+xulG.window.appshell_name_increment(),'chrome,resizable'
77 <groupbox id="data_groupbox" flex="1"> <caption label="Loading data..."/> </groupbox>