From: erickson Date: Wed, 13 Sep 2006 21:21:23 +0000 (+0000) Subject: added a global flag to disable/enable authority lookups X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=a64fd8a9a5bbe6c0647643f2cd66f2417da9263c;p=Evergreen.git added a global flag to disable/enable authority lookups git-svn-id: svn://svn.open-ils.org/ILS/trunk@6086 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- diff --git a/Open-ILS/web/opac/common/js/config.js b/Open-ILS/web/opac/common/js/config.js index 437f7cd73a..617b6b5113 100644 --- a/Open-ILS/web/opac/common/js/config.js +++ b/Open-ILS/web/opac/common/js/config.js @@ -2,6 +2,8 @@ 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 */ diff --git a/Open-ILS/web/opac/skin/default/js/sidebar_extras.js b/Open-ILS/web/opac/skin/default/js/sidebar_extras.js index 7263954583..cb35d886d3 100644 --- a/Open-ILS/web/opac/skin/default/js/sidebar_extras.js +++ b/Open-ILS/web/opac/skin/default/js/sidebar_extras.js @@ -88,9 +88,11 @@ function resultDrawSidebarTrees( stype, treeName, items, wrapperNode, destNode ) if(found) { unHideMe(wrapperNode); // if(IE) resultFireXRefSingle(treeName, xrefCache, stype); - /* XXX */ // disabled auth lookups for now - //resultFireXRefBatch(treeName, xrefCache, stype); + + if( DO_AUTHORITY_LOOKUPS ) { + resultFireXRefBatch(treeName, xrefCache, stype); + } } }