From 5789f8b22f1c45c9e2f11b6335bcdd2dcf3c7355 Mon Sep 17 00:00:00 2001 From: Aleisha Amohia Date: Wed, 5 May 2021 17:22:06 +1200 Subject: [PATCH] Bug 21249: (follow-up) Adding parentheses to fix query --- catalogue/search.pl | 2 +- opac/opac-search.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/catalogue/search.pl b/catalogue/search.pl index a2398db7e7..9552c39089 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -413,7 +413,7 @@ for ( my $i=0; $i<@limits; $i++ ) { my $holdingbranchlimit = $limits[$i]; $homebranchlimit =~ s/branch/homebranch/; $holdingbranchlimit =~ s/branch/holdingbranch/; - $limits[$i] = "$homebranchlimit or $holdingbranchlimit"; + $limits[$i] = "($homebranchlimit or $holdingbranchlimit)"; } } } diff --git a/opac/opac-search.pl b/opac/opac-search.pl index bc344c2076..26ec1cca9e 100755 --- a/opac/opac-search.pl +++ b/opac/opac-search.pl @@ -519,7 +519,7 @@ for ( my $i=0; $i<@limits; $i++ ) { my $holdingbranchlimit = $limits[$i]; $homebranchlimit =~ s/branch/homebranch/; $holdingbranchlimit =~ s/branch/holdingbranch/; - $limits[$i] = "$homebranchlimit or $holdingbranchlimit"; + $limits[$i] = "($homebranchlimit or $holdingbranchlimit)"; } } } -- 2.11.0