From: berick Date: Fri, 25 Mar 2011 15:53:52 +0000 (-0400) Subject: update search depth to match the selected org unit instead of always searching globally X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=809a38e02559680995ababced8cc5663f04e803e;p=evergreen%2Fequinox.git update search depth to match the selected org unit instead of always searching globally --- diff --git a/Open-ILS/web/opac/skin/kcls/js/depth_selector.js b/Open-ILS/web/opac/skin/kcls/js/depth_selector.js index 83031bd812..46b29cada9 100644 --- a/Open-ILS/web/opac/skin/kcls/js/depth_selector.js +++ b/Open-ILS/web/opac/skin/kcls/js/depth_selector.js @@ -49,6 +49,7 @@ function depthSelGetDepth() { function depthSelectorChanged() { if(!_ds) return; _newlocation = _ds.options[_ds.selectedIndex].value; + newSearchDepth = findOrgDepth(_newlocation); } var chooseAnotherNode; diff --git a/Open-ILS/web/opac/skin/kcls/js/search_bar.js b/Open-ILS/web/opac/skin/kcls/js/search_bar.js index af36f2d93d..428e634544 100644 --- a/Open-ILS/web/opac/skin/kcls/js/search_bar.js +++ b/Open-ILS/web/opac/skin/kcls/js/search_bar.js @@ -70,8 +70,8 @@ function searchBarSubmit(isFilterSort) { var facet_text = isFrontPage ? '' : G.ui.searchbar.facets.value; clearSearchParams(); if(!text || text == "" || text == "Search Keyword") return; - //var d = (newSearchDepth != null) ? newSearchDepth : depthSelGetDepth(); - var d = getDepth(); + var d = (newSearchDepth != null) ? newSearchDepth : depthSelGetDepth(); + //var d = getDepth(); if(isNaN(d)) d = 0; var args = {};