added a global flag to disable/enable authority lookups
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 Sep 2006 21:21:23 +0000 (21:21 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 13 Sep 2006 21:21:23 +0000 (21:21 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@6086 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/common/js/config.js
Open-ILS/web/opac/skin/default/js/sidebar_extras.js

index 437f7cd..617b6b5 100644 (file)
@@ -2,6 +2,8 @@
 
 var SHOW_MR_DEFAULT = false; /* true if we show metarecords by default */
 
 
 var SHOW_MR_DEFAULT = false; /* true if we show metarecords by default */
 
+var DO_AUTHORITY_LOOKUPS = false;
+
 /* URL param names */
 var PARAM_TERM                 = "t";                  /* search term */
 var PARAM_STYPE                = "tp";                 /* search type */
 /* URL param names */
 var PARAM_TERM                 = "t";                  /* search term */
 var PARAM_STYPE                = "tp";                 /* search type */
index 7263954..cb35d88 100644 (file)
@@ -88,9 +88,11 @@ function resultDrawSidebarTrees( stype, treeName, items, wrapperNode, destNode )
        if(found) {
                unHideMe(wrapperNode);
 //             if(IE) resultFireXRefSingle(treeName, xrefCache, stype);
        if(found) {
                unHideMe(wrapperNode);
 //             if(IE) resultFireXRefSingle(treeName, xrefCache, stype);
-
                /* XXX */ // disabled auth lookups for now
                /* XXX */ // disabled auth lookups for now
-               //resultFireXRefBatch(treeName, xrefCache, stype);
+
+               if( DO_AUTHORITY_LOOKUPS ) {
+                       resultFireXRefBatch(treeName, xrefCache, stype);
+               }
        }
 }
 
        }
 }