staff cat details no longer preempts opac details page
authorphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Nov 2005 19:40:16 +0000 (19:40 +0000)
committerphasefx <phasefx@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Fri, 18 Nov 2005 19:40:16 +0000 (19:40 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@2080 dcc99617-32d9-48b4-a31d-7c20da2025e4

Evergreen/staff_client/chrome/content/evergreen/cat/details.xul
Evergreen/staff_client/chrome/content/evergreen/opac/opac.js

index 28dbf2c..7e08783 100644 (file)
@@ -24,7 +24,7 @@
 
                function my_init() {
 
-                       document.getElementById('copy_editor_tab').disabled = true;
+                       /*document.getElementById('copy_editor_tab').disabled = true;*/
                        chain_exec(
                                my_init_spawn_brief_view,
                                my_init_spawn_marc_view,
index f93945f..8d4351f 100644 (file)
@@ -68,7 +68,7 @@ function set_opac_vars(p) {
        p.opac_iframe.contentWindow.IAMXUL = true;
        p.opac_iframe.contentWindow.xulG = mw.G;
        p.opac_iframe.contentWindow.attachEvt("rdetail", "recordRetrieved", 
-               function(id,node){opac_make_details_page(p,id,node)});
+               function(id){opac_make_details_page(p,id)});
        p.opac_iframe.removeProgressListener(p.opac_progressListener);
        p.opac_iframe.addProgressListener(p.opac_progressListener, 
                Components.interfaces.nsIWebProgress.NOTIFY_STATE_DOCUMENT );
@@ -78,18 +78,11 @@ function set_opac_vars(p) {
 function opac_make_details_page(p, id) {
        sdump('D_OPAC',arg_dump(arguments));
        dump("OPAC doc id is " + id +'\n');
-       var f = function(ev) {
-               spawn_record_details(
-                       p.w.app_shell, 'new_tab', 'main_tabbox', {
-                               'find_this_id' : id
-                               /* , 'opac_url' : node.getAttribute('href')*/
-                       }
-               ).find_this_id = id;
-               ev.preventDefault();
-               ev.stopPropagation();
-               return true;
-       }
-       //node.addEventListener( 'click', f, false );
+       spawn_record_details(
+               p.w.app_shell, 'new_tab', 'main_tabbox', {
+                       'find_this_id' : id
+               }
+       ).find_this_id = id;
 }
 
 /* --------------------------------------------------------------------------