these are no longer used
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 19 Feb 2006 18:55:06 +0000 (18:55 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Sun, 19 Feb 2006 18:55:06 +0000 (18:55 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@3121 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/xul/staff_client/server/cat/opac.js [deleted file]
Open-ILS/xul/staff_client/server/cat/opac.xul [deleted file]

diff --git a/Open-ILS/xul/staff_client/server/cat/opac.js b/Open-ILS/xul/staff_client/server/cat/opac.js
deleted file mode 100644 (file)
index 07a4d20..0000000
+++ /dev/null
@@ -1,123 +0,0 @@
-dump('entering cat.opac.js\n');
-
-if (typeof cat == 'undefined') cat = {};
-cat.opac = function (params) {
-       try {
-               netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
-               JSAN.use('util.error'); this.error = new util.error();
-       } catch(E) {
-               dump('cat.opac: ' + E + '\n');
-       }
-}
-
-cat.opac.prototype = {
-
-       'init' : function( params ) {
-
-               try {
-                       netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
-
-                       var obj = this;
-
-                       obj.session = params['session'];
-                       obj.url = params['url'];
-
-                       JSAN.use('util.controller'); obj.controller = new util.controller();
-                       obj.controller.init(
-                               {
-                                       control_map : {
-                                               'cmd_broken' : [
-                                                       ['command'],
-                                                       function() { alert('Not Yet Implemented'); }
-                                               ],
-                                       }
-                               }
-                       );
-                       obj.controller.view.opac_browser = document.getElementById('opac_browser');
-
-                       obj.buildProgressListener();
-                       dump('obj.controller.view.opac_browser.addProgressListener = ' 
-                               + obj.controller.view.opac_browser.addProgressListener + '\n');
-                       obj.controller.view.opac_browser.addProgressListener(obj.progressListener,
-                                       Components.interfaces.nsIWebProgress.NOTIFY_ALL );
-
-                       obj.controller.view.opac_browser.setAttribute('src',obj.url);
-                       dump('url = ' + obj.url + '\n');
-
-               } catch(E) {
-                       this.error.sdump('D_ERROR','cat.opac.init: ' + E + '\n');
-               }
-       },
-
-       'push_variables' : function() {
-
-               try {
-                       netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
-                       this.controller.view.opac_browser.contentWindow.IAMXUL = true;
-                       if (window.xulG) {
-                               this.controller.view.opac_browser.contentWindow.xulG = xulG;
-                               dump('xulG = ' + js2JSON(xulG) + '\n');
-                               dump('xulG = ' + js2JSON(this.controller.view.opac_browser.contentWindow.xulG) + '\n');
-                       }
-               } catch(E) {
-                       this.error.sdump('D_ERROR','cat.opac.push_variables: ' + E + '\n');
-               }
-       },
-       
-       'buildProgressListener' : function() {
-
-               try {
-                       netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
-
-                       var obj = this;
-                       obj.progressListener = {
-                               onProgressChange        : function(){},
-                               onLocationChange        : function(){},
-                               onStatusChange          : function(){},
-                               onSecurityChange        : function(){},
-                               onStateChange           : function ( webProgress, request, stateFlags, status) {
-                                       netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
-                                       var s = '';
-                                       const nsIWebProgressListener = Components.interfaces.nsIWebProgressListener;
-                                       const nsIChannel = Components.interfaces.nsIChannel;
-                                       if (stateFlags == 65540 || stateFlags == 65537 || stateFlags == 65552) { return; }
-                                       s = ('onStateChange: stateFlags = ' + stateFlags + ' status = ' + status + '\n');
-                                       if (stateFlags & nsIWebProgressListener.STATE_IS_REQUEST) {
-                                               s += ('\tSTATE_IS_REQUEST\n');
-                                       }
-                                       if (stateFlags & nsIWebProgressListener.STATE_IS_DOCUMENT) {
-                                               s += ('\tSTATE_IS_DOCUMENT\n');
-                                               if( stateFlags & nsIWebProgressListener.STATE_STOP ) obj.push_variables(); 
-                                       }
-                                       if (stateFlags & nsIWebProgressListener.STATE_IS_NETWORK) {
-                                               s += ('\tSTATE_IS_NETWORK\n');
-                                       }
-                                       if (stateFlags & nsIWebProgressListener.STATE_IS_WINDOW) {
-                                               s += ('\tSTATE_IS_WINDOW\n');
-                                       }
-                                       if (stateFlags & nsIWebProgressListener.STATE_START) {
-                                               s += ('\tSTATE_START\n');
-                                       }
-                                       if (stateFlags & nsIWebProgressListener.STATE_REDIRECTING) {
-                                               s += ('\tSTATE_REDIRECTING\n');
-                                       }
-                                       if (stateFlags & nsIWebProgressListener.STATE_TRANSFERING) {
-                                               s += ('\tSTATE_TRANSFERING\n');
-                                       }
-                                       if (stateFlags & nsIWebProgressListener.STATE_NEGOTIATING) {
-                                               s += ('\tSTATE_NEGOTIATING\n');
-                                       }
-                                       if (stateFlags & nsIWebProgressListener.STATE_STOP) {
-                                               s += ('\tSTATE_STOP\n');
-                                       }
-                                       obj.error.sdump('D_OPAC',s);    
-                               }
-                       }
-                       obj.progressListener.QueryInterface = function(){return this;};
-               } catch(E) {
-                       this.error.sdump('D_ERROR','cat.opac.buildProgressListener: ' + E + '\n');
-               }
-       },
-}
-
-dump('exiting cat.opac.js\n');
diff --git a/Open-ILS/xul/staff_client/server/cat/opac.xul b/Open-ILS/xul/staff_client/server/cat/opac.xul
deleted file mode 100644 (file)
index a859072..0000000
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0"?>
-<!-- Application: Evergreen Staff Client -->
-<!-- Screen: Patron Display -->
-
-<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
-<!-- STYLESHEETS -->
-<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
-<?xml-stylesheet href="chrome://open_ils_staff_client/skin/global.css" type="text/css"?>
-<?xml-stylesheet href="/xul/server/skin/global.css" type="text/css"?>
-
-<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
-<!-- LOCALIZATION -->
-<!DOCTYPE window SYSTEM "chrome://open_ils_staff_client/locale/lang.dtd">
-
-<!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
-<!-- OVERLAYS -->
-<?xul-overlay href="/xul/server/OpenILS/util_overlay.xul"?>
-
-<window id="cat_opac_win" 
-       onload="my_init()"
-       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
-
-       <!-- ///////////////////////////////////////////////////////////////////////////////////////////////////////////// -->
-       <!-- BEHAVIOR -->
-        <script type="text/javascript">
-               var myPackageDir = 'open_ils_staff_client'; var IAMXUL = true; var g = {};
-               netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
-       </script>
-        <scripts id="openils_util_scripts"/>
-
-       <script type="text/javascript" src="/xul/server/main/JSAN.js"/>
-       <script>
-       <![CDATA[
-               function my_init() {
-                       try {
-                               netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
-                               if (typeof JSAN == 'undefined') { throw( "The JSAN library object is missing."); }
-                               JSAN.errorLevel = "die"; // none, warn, or die
-                               JSAN.addRepository('/xul/server/');
-                               JSAN.use('util.error'); g.error = new util.error();
-                               g.error.sdump('D_TRACE','my_init() for cat_opac.xul');
-
-                               g.cgi = new CGI();
-                               var session = g.cgi.param('session');
-                               var url = g.cgi.param('url');
-                               if (!url) url = urls.opac;
-
-                               JSAN.use('cat.opac'); g.opac = new cat.opac();
-
-                               g.opac.init( 
-                                       { 
-                                               'url' : url,
-                                               'session' : session,
-                                       } 
-                               );
-
-                               if (typeof window.xulG == 'object' && typeof window.xulG.set_tab_name == 'function') {
-                                       try { window.xulG.set_tab_name('Catalog'); } catch(E) { alert(E); }
-                               }
-
-                       } catch(E) {
-                               var err_msg = "!! This software has encountered an error.  Please tell your friendly " +
-                                       "system administrator or software developer the following:\n" + E + '\n';
-                               try { g.error.sdump('D_ERROR',err_msg); } catch(E) { dump(err_msg); }
-                               alert(err_msg);
-                       }
-               }
-
-       ]]>
-       </script>
-
-       <commandset id="cat_opac_cmds">
-               <command id="cmd_broken" />
-       </commandset>
-
-       <browser id="opac_browser" flex="1"/>
-
-</window>
-