From 0cb2ff0ce9c275037b8a1b303a4ecf4255ebb09f 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 Signed-off-by: Victor Grousset/tuxayo Signed-off-by: David Cook Signed-off-by: Jonathan Druart --- 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.39.5