From 899742e0119893e43769c11c4a43f466dceaf3e5 Mon Sep 17 00:00:00 2001 From: Jason Stephenson Date: Wed, 15 May 2019 13:57:18 -0400 Subject: [PATCH] Do not quote SRU = search if index is used by Z39.50 We configure z39.50 to use the eg.keyword, eg.title, and eg.author indexes. One client in particular does "=" searches when it probably means "all." To give that client all of the results that it expects, we modify SuperCat to not quote the terms of an = search when one of the previous indexes is being used. Signed-off-by: Jason Stephenson Signed-off-by: Jason Boyer --- Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm index b43d266069..0773f24735 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm @@ -2177,7 +2177,7 @@ sub sru_search { } } - $quote_it = 0 if ( $base eq 'all' ); + $quote_it = 0 if ( $base eq 'all' || ( $base eq '=' && grep {$qualifier eq $_} qw(eg.keyword eg.title eg.author) ) ); $term = maybeQuote($term) if $quote_it; } else { -- 2.11.0