From 3149f486f70331a057b78515b9b3e61d586fe20b Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Thu, 2 Feb 2012 09:19:11 -0500 Subject: [PATCH] Use getItemType() instead of getForm() in searchBarInit(). This seems to actually fix the problem with the item type limiter being lost when going from advanced search to the results page. Looks like the wrong method was being used to set the form_selector value in search_bar.js. It was being set to the web form itself and not to the value of the it (item type) parameter. Signed-off-by: Jason Stephenson --- Open-ILS/web/opac/skin/default/js/search_bar.js | 2 +- 1 file changed, 1 insertion(+), 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 1801edc1bf..4585067b3e 100644 --- a/Open-ILS/web/opac/skin/default/js/search_bar.js +++ b/Open-ILS/web/opac/skin/default/js/search_bar.js @@ -33,7 +33,7 @@ function searchBarInit() { G.ui.searchbar.text.value = (getTerm() != null) ? getTerm() : ""; if (!isFrontPage) G.ui.searchbar.facets.value = (getFacet() != null) ? getFacet() : ""; setSelector(_ts, getStype()); - setSelector(_fs, getForm()); + setSelector(_fs, getItemType()); depthSelInit(); -- 2.11.0