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=refs%2Fheads%2Fuser%2Fjeffdavis%2Flp1833300-sru-site-param-nesting;p=working%2FEvergreen.git LP#1833300: wrap SRU query in parentheses before appending site param Signed-off-by: Jeff Davis --- diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/SuperCat.pm index b43d266069..5390b9c88e 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;