View | Details | Raw Unified | Return to bug 19197
Collapse All | Expand All

(-)a/catalogue/search.pl (-1 / +1 lines)
Lines 408-414 my %is_nolimit = map { $_ => 1 } @nolimits; Link Here
408
if($params->{'multibranchlimit'}) {
408
if($params->{'multibranchlimit'}) {
409
    my $search_group = Koha::Library::Groups->find( $params->{multibranchlimit} );
409
    my $search_group = Koha::Library::Groups->find( $params->{multibranchlimit} );
410
    my @libraries = $search_group->all_libraries;
410
    my @libraries = $search_group->all_libraries;
411
    my $multibranch = '('.join( " or ", map { 'branch: ' . $_->branchcode } @libraries ) .')';
411
    my $multibranch = '('.join( " OR ", map { 'homebranch: ' . $_->branchcode } @libraries ) .')';
412
    push @limits, $multibranch if ($multibranch ne  '()');
412
    push @limits, $multibranch if ($multibranch ne  '()');
413
}
413
}
414
414
(-)a/opac/opac-search.pl (-2 / +1 lines)
Lines 500-506 if (@searchCategories > 0) { Link Here
500
if($params->{'multibranchlimit'}) {
500
if($params->{'multibranchlimit'}) {
501
    my $search_group = Koha::Library::Groups->find( $params->{multibranchlimit} );
501
    my $search_group = Koha::Library::Groups->find( $params->{multibranchlimit} );
502
    my @libraries = $search_group->all_libraries;
502
    my @libraries = $search_group->all_libraries;
503
    my $multibranch = '('.join( " or ", map { 'branch: ' . $_->branchcode } @libraries ) .')';
503
    my $multibranch = '('.join( " OR ", map { 'homebranch: ' . $_->branchcode } @libraries ) .')';
504
    push @limits, $multibranch if ($multibranch ne  '()');
504
    push @limits, $multibranch if ($multibranch ne  '()');
505
}
505
}
506
506
507
- 

Return to bug 19197