Bugzilla – Attachment 97863 Details for
Bug 24506
Multibranch limit does not work with ElasticSearch
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 24506: Multibranch limit does not work with ElasticSearch
Bug-24506-Multibranch-limit-does-not-work-with-Ela.patch (text/plain), 1.59 KB, created by
Andreas Jonsson
on 2020-01-24 10:14:31 UTC
(
hide
)
Description:
Bug 24506: Multibranch limit does not work with ElasticSearch
Filename:
MIME Type:
Creator:
Andreas Jonsson
Created:
2020-01-24 10:14:31 UTC
Size:
1.59 KB
patch
obsolete
>From e0c4d263518d3b4da0a3eb2b044228c74df06c3a Mon Sep 17 00:00:00 2001 >From: Andreas Jonsson <andreas.jonsson@kreablo.se> >Date: Fri, 24 Jan 2020 10:13:05 +0000 >Subject: [PATCH] Bug 24506: Multibranch limit does not work with ElasticSearch > >--- > 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 514c4a9b2c..6502b303fc 100755 >--- a/catalogue/search.pl >+++ b/catalogue/search.pl >@@ -408,7 +408,7 @@ my %is_nolimit = map { $_ => 1 } @nolimits; > if($params->{'multibranchlimit'}) { > my $search_group = Koha::Library::Groups->find( $params->{multibranchlimit} ); > my @libraries = $search_group->all_libraries; >- my $multibranch = '('.join( " or ", map { 'branch: ' . $_->branchcode } @libraries ) .')'; >+ my $multibranch = '('.join( " OR ", map { '(homebranch: ' . $_->branchcode .')' } @libraries ) .')'; > push @limits, $multibranch if ($multibranch ne '()'); > } > >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 97ba421d01..e4d2b155c8 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -503,7 +503,7 @@ if (@searchCategories > 0) { > if($params->{'multibranchlimit'}) { > my $search_group = Koha::Library::Groups->find( $params->{multibranchlimit} ); > my @libraries = $search_group->all_libraries; >- my $multibranch = '('.join( " or ", map { 'branch: ' . $_->branchcode } @libraries ) .')'; >+ my $multibranch = '('.join( " OR ", map { 'homebranch: ' . $_->branchcode } @libraries ) .')'; > push @limits, $multibranch if ($multibranch ne '()'); > } > >-- >2.11.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 24506
:
97863
|
98859
|
98998