added url param that, if present, prevents search propogation to the advanced search...
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 1 Oct 2008 17:17:36 +0000 (17:17 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 1 Oct 2008 17:17:36 +0000 (17:17 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@10745 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/web/opac/common/js/config.js
Open-ILS/web/opac/skin/default/js/adv_global.js

index 279d3bd..27cee73 100644 (file)
@@ -43,6 +43,7 @@ var PARAM_PUBD_BEFORE = 'pdb';
 var PARAM_PUBD_AFTER = 'pda';
 var PARAM_PUBD_BETWEEN = 'pdt';
 var PARAM_PUBD_DURING = 'pdd';
+var PARAM_NOPERSIST_SEARCH = 'nps';
 
 /* URL param values (see comments above) */
 var TERM;  
index e28a33a..a8a0a14 100644 (file)
@@ -53,7 +53,8 @@ function advgInit() {
     // since other filters are not propogated
     //advInitPubFilter();
 
-    initSearchBoxes();
+    if(!new CGI().param(PARAM_NOPERSIST_SEARCH))
+        initSearchBoxes();
     advSyncCopyLocLink(getLocation());
 }