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

(-)a/catalogue/search.pl (-1 / +1 lines)
Lines 399-405 my %is_nolimit = map { $_ => 1 } @nolimits; Link Here
399
if($params->{'multibranchlimit'}) {
399
if($params->{'multibranchlimit'}) {
400
    my $search_group = Koha::Library::Groups->find( $params->{multibranchlimit} );
400
    my $search_group = Koha::Library::Groups->find( $params->{multibranchlimit} );
401
    my @libraries = $search_group->all_libraries;
401
    my @libraries = $search_group->all_libraries;
402
    my $multibranch = '('.join( " or ", map { 'branch: ' . $_->id } @libraries ) .')';
402
    my $multibranch = '('.join( " or ", map { 'branch: ' . $_->branchcode } @libraries ) .')';
403
    push @limits, $multibranch if ($multibranch ne  '()');
403
    push @limits, $multibranch if ($multibranch ne  '()');
404
}
404
}
405
405
(-)a/opac/opac-search.pl (-2 / +1 lines)
Lines 493-499 if (@searchCategories > 0) { Link Here
493
if($params->{'multibranchlimit'}) {
493
if($params->{'multibranchlimit'}) {
494
    my $search_group = Koha::Library::Groups->find( $params->{multibranchlimit} );
494
    my $search_group = Koha::Library::Groups->find( $params->{multibranchlimit} );
495
    my @libraries = $search_group->all_libraries;
495
    my @libraries = $search_group->all_libraries;
496
    my $multibranch = '('.join( " or ", map { 'branch: ' . $_->id } @libraries ) .')';
496
    my $multibranch = '('.join( " or ", map { 'branch: ' . $_->branchcode } @libraries ) .')';
497
    push @limits, $multibranch if ($multibranch ne  '()');
497
    push @limits, $multibranch if ($multibranch ne  '()');
498
}
498
}
499
499
500
- 

Return to bug 20838