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 PUBLIC "" ""[
14 <!--#include virtual="/opac/locale/en-US/lang.dtd"-->
17 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
19 <?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
22 onload="try { data_init(); } catch(E) { alert(E); }"
23 title="&staff.auth.title;"
24 xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
27 <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
29 <script type="text/javascript">var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};</script>
30 <scripts id="openils_util_scripts"/>
32 <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/lang.js"/>
33 <script type="text/javascript" src="/xul/server/main/lang.js"/>
34 <script type="text/javascript" src="chrome://open_ils_staff_client/content/main/JSAN.js"/>
37 dump("entities['lang.version'] = " + entities['lang.version'] + '\n');
39 function data_init() {
41 netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
43 if (typeof JSAN == 'undefined') {
45 "The JSAN library object is missing."
48 /////////////////////////////////////////////////////////////////////////////
50 JSAN.errorLevel = "die"; // none, warn, or die
51 JSAN.addRepository('/xul/server/');
53 JSAN.use('OpenILS.data');
54 g.data = new OpenILS.data()
55 g.data.on_error = xulG.auth.logoff;
56 g.data.entities = entities;
57 g.data.stash('entities');
59 g.data.session = xulG.auth.session.key;
60 g.data.on_complete = function () {
62 g.data.stash('list','hash','tree','temp');
63 g.data._debug_stash();
65 xulG.window.open(urls.XUL_MENU_FRAME
66 + '?session='+window.escape(xulG.auth.session.key)
67 + '&authtime='+window.escape(xulG.auth.session.authtime)
68 + '&server='+window.escape(xulG.url),
69 'main'+xulG.window.window_name_increment(),'chrome,resizable'
79 <groupbox id="data_groupbox" flex="1"> <caption label="Loading data..."/> </groupbox>