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

(-)a/catalogue/search.pl (-1 / +3 lines)
Lines 423-429 my %is_nolimit = map { $_ => 1 } @nolimits; Link Here
423
@limits = grep { not $is_nolimit{$_} } @limits;
423
@limits = grep { not $is_nolimit{$_} } @limits;
424
424
425
if($params->{'multibranchlimit'}) {
425
if($params->{'multibranchlimit'}) {
426
    my $multibranch = '('.join( " or ", map { "branch: $_ " } @{ GetBranchesInCategory( $params->{'multibranchlimit'} ) } ).')';
426
    my $library_category = Koha::LibraryCategories->find( $params->{multibranchlimit} );
427
    my @libraries = $library_category->libraries;
428
    my $multibranch = '('.join( " or ", map { 'branch: ' . $_->branchcode } @libraries ) .')';
427
    push @limits, $multibranch if ($multibranch ne  '()');
429
    push @limits, $multibranch if ($multibranch ne  '()');
428
}
430
}
429
431
(-)a/opac/opac-search.pl (-2 / +3 lines)
Lines 480-486 if (@searchCategories > 0) { Link Here
480
@limits = map { uri_unescape($_) } @limits;
480
@limits = map { uri_unescape($_) } @limits;
481
481
482
if($params->{'multibranchlimit'}) {
482
if($params->{'multibranchlimit'}) {
483
    my $multibranch = '('.join( " or ", map { "branch: $_ " } @{ GetBranchesInCategory( $params->{'multibranchlimit'} ) } ).')';
483
    my $library_category = Koha::LibraryCategories->find( $params->{multibranchlimit} );
484
    my @libraries = $library_category->libraries;
485
    my $multibranch = '('.join( " or ", map { 'branch: ' . $_->branchcode } @libraries ) .')';
484
    push @limits, $multibranch if ($multibranch ne  '()');
486
    push @limits, $multibranch if ($multibranch ne  '()');
485
}
487
}
486
488
487
- 

Return to bug 15629