From 9172d83e71cbc8c06d1f42a7ca08b1b96efd8707 Mon Sep 17 00:00:00 2001 From: Liam Whalen Date: Tue, 1 Nov 2011 14:18:32 -0400 Subject: [PATCH] When sorting a search results set the isFilterSort variable is passed to searchBarSubmit. In side searchBarSumbit there is a call to the opac_utils.js function clearSearchParams function. This removes all search paramaters when sorting a result set, which is not the desired effect. I have wraped clearSearchParams in a check to make sure isFilterSort is not set before calling the clearSearchParams function, and this check ensures that the current search's paramaters are passed to sort operations. Signed-off-by: Liam Whalen Signed-off-by: Jason Stephenson Signed-off-by: Mike Rylander --- Open-ILS/web/opac/skin/default/js/search_bar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Open-ILS/web/opac/skin/default/js/search_bar.js b/Open-ILS/web/opac/skin/default/js/search_bar.js index 5015818058..20e8552704 100644 --- a/Open-ILS/web/opac/skin/default/js/search_bar.js +++ b/Open-ILS/web/opac/skin/default/js/search_bar.js @@ -89,7 +89,9 @@ function searchBarSubmit(isFilterSort) { var text = G.ui.searchbar.text.value; var facet_text = isFrontPage ? '' : G.ui.searchbar.facets.value; - clearSearchParams(); + if (!isFilterSort) { + clearSearchParams(); + } if(!text || text == "") return; -- 2.43.2