Persist the journal title selection in subsequent searches if applicable
authordbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Thu, 4 Mar 2010 18:09:00 +0000 (18:09 +0000)
committerdbs <dbs@6d9bc8c9-1ec2-4278-b937-99fde70a366f>
Thu, 4 Mar 2010 18:09:00 +0000 (18:09 +0000)
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

index 6d32bb5..67369f3 100644 (file)
@@ -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';
     }