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

(-)a/C4/Matcher.pm (-1 / +1 lines)
Lines 657-663 sub get_matches { Link Here
657
            }
657
            }
658
            else {
658
            else {
659
                my $phr = ( C4::Context->preference('AggressiveMatchOnISBN') || C4::Context->preference('AggressiveMatchOnISSN') )  ? ',phr' : q{};
659
                my $phr = ( C4::Context->preference('AggressiveMatchOnISBN') || C4::Context->preference('AggressiveMatchOnISSN') )  ? ',phr' : q{};
660
                $query = join( " or ",
660
                $query = join( " OR ",
661
                    map { "$matchpoint->{'index'}$phr=\"$_\"" } @source_keys );
661
                    map { "$matchpoint->{'index'}$phr=\"$_\"" } @source_keys );
662
                    #NOTE: double-quote the values so you don't get a "Embedded truncation not supported" error when a term has a ? in it.
662
                    #NOTE: double-quote the values so you don't get a "Embedded truncation not supported" error when a term has a ? in it.
663
            }
663
            }
(-)a/catalogue/search.pl (-1 / +1 lines)
Lines 401-407 my %is_nolimit = map { $_ => 1 } @nolimits; Link Here
401
if($params->{'multibranchlimit'}) {
401
if($params->{'multibranchlimit'}) {
402
    my $library_category = Koha::LibraryCategories->find( $params->{multibranchlimit} );
402
    my $library_category = Koha::LibraryCategories->find( $params->{multibranchlimit} );
403
    my @libraries = $library_category->libraries;
403
    my @libraries = $library_category->libraries;
404
    my $multibranch = '('.join( " or ", map { 'branch: ' . $_->id } @libraries ) .')';
404
    my $multibranch = '('.join( " OR ", map { 'branch: ' . $_->id } @libraries ) .')';
405
    push @limits, $multibranch if ($multibranch ne  '()');
405
    push @limits, $multibranch if ($multibranch ne  '()');
406
}
406
}
407
407
(-)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 $library_category = Koha::LibraryCategories->find( $params->{multibranchlimit} );
494
    my $library_category = Koha::LibraryCategories->find( $params->{multibranchlimit} );
495
    my @libraries = $library_category->libraries;
495
    my @libraries = $library_category->libraries;
496
    my $multibranch = '('.join( " or ", map { 'branch: ' . $_->id } @libraries ) .')';
496
    my $multibranch = '('.join( " OR ", map { 'branch: ' . $_->id } @libraries ) .')';
497
    push @limits, $multibranch if ($multibranch ne  '()');
497
    push @limits, $multibranch if ($multibranch ne  '()');
498
}
498
}
499
499
500
- 

Return to bug 19197