From c14af88a7f30e786558fc3c46c5e772a46b47ec1 Mon Sep 17 00:00:00 2001 From: Jeff Davis Date: Tue, 18 Jun 2019 13:48:44 -0700 Subject: [PATCH] LP#1833300: wrap SRU query in parentheses before appending site param Signed-off-by: Jeff Davis Signed-off-by: Mike Risher Signed-off-by: Galen Charlton --- 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 2ba1f381a4..2728f36460 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm @@ -1985,7 +1985,7 @@ sub sru_search { # Ensure the search string overrides the default site if ($shortname and $search_string !~ m#site:#) { - $search_string .= " site:$shortname"; + $search_string = "($search_string) site:$shortname"; } my $offset = $req->startRecord; -- 2.43.2