From 4f747ae00d7968cd9060e62f1d2379e68291b634 Mon Sep 17 00:00:00 2001 From: dbs Date: Sun, 29 Mar 2009 20:44:34 +0000 Subject: [PATCH] Backport r12713 from trunk: make SlimPAC respect author/title/subject/series indexes git-svn-id: svn://svn.open-ils.org/ILS/branches/rel_1_4_0@12714 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm index 04fe9993a0..3fb47a802a 100644 --- a/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm +++ b/Open-ILS/src/perlmods/OpenILS/WWW/SuperCat.pm @@ -970,6 +970,9 @@ sub opensearch_feed { $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'); -- 2.11.0