From: Jeff Davis Date: Tue, 18 Jun 2019 20:48:44 +0000 (-0700) Subject: LP#1833300: wrap SRU query in parentheses before appending site param X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=20584c78aea87ac88b8da748ee9016f8719ee032;p=working%2FEvergreen.git 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 --- 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;