From 87fa146a0d0c177678927a8fd40ee2e3fb2646b4 Mon Sep 17 00:00:00 2001 From: dbs Date: Thu, 4 Mar 2010 18:09:00 +0000 Subject: [PATCH] Persist the journal title selection in subsequent searches if applicable git-svn-id: svn://svn.open-ils.org/ILS-Contrib/conifer/branches/rel_1_6_0@819 6d9bc8c9-1ec2-4278-b937-99fde70a366f --- web/opac/skin/lul/js/search_bar.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/web/opac/skin/lul/js/search_bar.js b/web/opac/skin/lul/js/search_bar.js index 6d32bb5f5d..67369f3425 100644 --- a/web/opac/skin/lul/js/search_bar.js +++ b/web/opac/skin/lul/js/search_bar.js @@ -34,6 +34,11 @@ function searchBarInit() { setSelector(_ts, getStype()); setSelector(_fs, getForm()); + /* If searching for journal title, set it to journal title */ + if (getStype() == 'title' && getBibLevel() == 's') { + dojo.byId('jtitle').selected = true; + } + depthSelInit(); @@ -73,6 +78,8 @@ function searchBarSubmit(isFilterSort) { args[PARAM_LOCATION] = depthSelGetNewLoc(); args[PARAM_DEPTH] = d; args[PARAM_FORM] = _fs.options[_fs.selectedIndex].value; + + /* Set the bib level to 's' for serials if the magic "Journal title" has ben chosen */ if (_ts.options[_ts.selectedIndex].id == 'jtitle') { args[PARAM_BIBLEVEL] = 's'; } -- 2.11.0