From a64fd8a9a5bbe6c0647643f2cd66f2417da9263c Mon Sep 17 00:00:00 2001 From: erickson Date: Wed, 13 Sep 2006 21:21:23 +0000 Subject: [PATCH] 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 --- Open-ILS/web/opac/common/js/config.js | 2 ++ Open-ILS/web/opac/skin/default/js/sidebar_extras.js | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) 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); + } } } -- 2.43.2