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

(-)a/C4/Matcher.pm (-1 / +1 lines)
Lines 659-665 sub get_matches { Link Here
659
            }
659
            }
660
            else {
660
            else {
661
                my $phr = ( C4::Context->preference('AggressiveMatchOnISBN') || C4::Context->preference('AggressiveMatchOnISSN') )  ? ',phr' : q{};
661
                my $phr = ( C4::Context->preference('AggressiveMatchOnISBN') || C4::Context->preference('AggressiveMatchOnISSN') )  ? ',phr' : q{};
662
                $query = join( " or ",
662
                $query = join( " OR ",
663
                    map { "$matchpoint->{'index'}$phr=\"$_\"" } @source_keys );
663
                    map { "$matchpoint->{'index'}$phr=\"$_\"" } @source_keys );
664
                    #NOTE: double-quote the values so you don't get a "Embedded truncation not supported" error when a term has a ? in it.
664
                    #NOTE: double-quote the values so you don't get a "Embedded truncation not supported" error when a term has a ? in it.
665
            }
665
            }
(-)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: ' . $_->id } @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: ' . $_->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