[open-ils-commits] r819 - conifer/branches/rel_1_6_0/web/opac/skin/lul/js (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Thu Mar 4 13:09:04 EST 2010


Author: dbs
Date: 2010-03-04 13:09:00 -0500 (Thu, 04 Mar 2010)
New Revision: 819

Modified:
   conifer/branches/rel_1_6_0/web/opac/skin/lul/js/search_bar.js
Log:
Persist the journal title selection in subsequent searches if applicable


Modified: conifer/branches/rel_1_6_0/web/opac/skin/lul/js/search_bar.js
===================================================================
--- conifer/branches/rel_1_6_0/web/opac/skin/lul/js/search_bar.js	2010-03-04 17:07:36 UTC (rev 818)
+++ conifer/branches/rel_1_6_0/web/opac/skin/lul/js/search_bar.js	2010-03-04 18:09:00 UTC (rev 819)
@@ -34,6 +34,11 @@
 	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 @@
 	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';
     }



More information about the open-ils-commits mailing list