we changed RemoteRequest.. local chrome needs XML_HTTP_SERVER set, always
authorpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Mar 2006 15:36:09 +0000 (15:36 +0000)
committerpines <pines@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Thu, 16 Mar 2006 15:36:09 +0000 (15:36 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3372 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/chrome/content/admin/survey_wizard.xul
Open-ILS/xul/staff_client/chrome/content/cat/opac.xul
Open-ILS/xul/staff_client/chrome/content/legacy/_browse.xul
Open-ILS/xul/staff_client/chrome/content/legacy/_marc.xul
Open-ILS/xul/staff_client/chrome/content/main/main.js
Open-ILS/xul/staff_client/chrome/content/main/menu_frame.xul
Open-ILS/xul/staff_client/chrome/content/util/browser.xul

index f839da7..61ea692 100644 (file)
@@ -53,6 +53,8 @@
                                JSAN.use('OpenILS.data'); g.OpenILS = {};
                                g.OpenILS.data = new OpenILS.data(); g.OpenILS.data.init({'via':'stash'});
 
+                               XML_HTTP_SERVER = g.OpenILS.data.server_unadorned;
+
                                JSAN.use('util.network');
                                g.network = new util.network();
 
index be45893..b62d9a6 100644 (file)
@@ -42,6 +42,9 @@
                                JSAN.use('util.error'); g.error = new util.error();
                                g.error.sdump('D_TRACE','my_init() for cat/opac.xul');
 
+                               JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.init({'via':'stash'});
+                               XML_HTTP_SERVER = data.server_unadorned;
+
                                JSAN.use('util.network'); g.network = new util.network();
 
                                g.cgi = new CGI();
index e8fdf93..210b537 100644 (file)
@@ -65,6 +65,8 @@
 
                                JSAN.use('OpenILS.data');
                                g.data = new OpenILS.data(); g.data.init({'via':'stash'});
+                               XML_HTTP_SERVER = g.data.server_unadorned;
+
                                mw.G.my_orgs = g.data.list.my_aou;
                                mw.G.my_orgs_hash = g.data.hash.my_aou;
                                mw.G.org_tree = g.data.tree.aou;
index cf0b43f..54e1fad 100644 (file)
@@ -52,6 +52,9 @@
                                JSAN.use('util.error'); g.error = new util.error();
                                g.error.sdump('D_TRACE','my_pre_init() for marc.xul');
 
+                               JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.init({'via':'stash'});
+                               XML_HTTP_SERVER = data.server_unadorned;
+
                                mw.G = {};
                                mw.G.main_test_variable = 'Hello World';
                                g.cgi = new CGI();
index 6f85618..6355c11 100644 (file)
@@ -76,6 +76,9 @@ function main_init() {
                G.auth.on_login = function() {
 
                        var url = G.auth.controller.view.server_prompt.value || urls.remote;
+
+                       G.data.server_unadorned = url; G.data.stash('server_unadorned'); G.data.stash_retrieve();
+
                        if (! url.match( '^http://' ) ) url = 'http://' + url;
 
                        G.data.server = url; G.data.stash('server'); G.data.stash_retrieve();
index 79365ab..c549f17 100644 (file)
@@ -63,8 +63,8 @@
 
                                JSAN.use('util.window'); g.window = new util.window();
                                JSAN.use('OpenILS.data'); g.data = new OpenILS.data(); g.data.init({'via':'stash'});
+                               XML_HTTP_SERVER = g.data.server_unadorned;
 
-                               // FIXME - Use workstation ou when we get it instead of staff home_ou
                                document.title = g.window.appshell_name_increment() + ': ' 
                                        + g.data.list.au[0].usrname() + ' (' + g.data.ws_name + '@' 
                                        + g.data.hash.aou[ g.data.list.au[0].ws_ou() ].shortname() + ')';
index 2be1fbb..af0c17f 100644 (file)
@@ -39,6 +39,9 @@
                                JSAN.use('util.error'); g.error = new util.error();
                                g.error.sdump('D_TRACE','my_init() for util_browser.xul');
 
+                               JSAN.use('OpenILS.data'); var data = new OpenILS.data(); data.init({'via':'stash'});
+                               XML_HTTP_SERVER = data.server_unadorned;
+
                                g.cgi = new CGI();
                                var name = g.cgi.param('tab_name') || g.cgi.param('name') || null;
                                if (!name) {