[open-ils-commits] r12715 - branches/rel_1_4/Open-ILS/src/perlmods/OpenILS/WWW (dbs)

svn at svn.open-ils.org svn at svn.open-ils.org
Sun Mar 29 16:45:05 EDT 2009


Author: dbs
Date: 2009-03-29 16:45:01 -0400 (Sun, 29 Mar 2009)
New Revision: 12715

Modified:
   branches/rel_1_4/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm
Log:
Backport r12713 from trunk: make SlimPAC respect author/title/subject/series indexes

Modified: branches/rel_1_4/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm
===================================================================
--- branches/rel_1_4/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm	2009-03-29 20:44:34 UTC (rev 12714)
+++ branches/rel_1_4/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm	2009-03-29 20:45:01 UTC (rev 12715)
@@ -970,6 +970,9 @@
 	$terms .= $cgi->param('searchTerms') if $cgi->param('searchTerms');
 
 	$class = $cgi->param('searchClass') if $cgi->param('searchClass');
+	if ($class && $terms !~ m/^$class:/o) {
+		$terms =~ s{^(\S*:)?\s*}{$class: }o;
+	}
 	$class ||= '-';
 
 	$type = $cgi->param('responseType') if $cgi->param('responseType');



More information about the open-ils-commits mailing list