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

(-)a/catalogue/itemsearch.pl (-1 / +1 lines)
Lines 51-57 if (defined $format and $format eq 'json') { Link Here
51
    my @f = $cgi->multi_param('f');
51
    my @f = $cgi->multi_param('f');
52
    my @q = $cgi->multi_param('q');
52
    my @q = $cgi->multi_param('q');
53
53
54
    # If index indicates the value is a barcode, we need to preproccess it before searching
54
    # If index indicates the value is a barcode, we need to preprocess it before searching
55
    for ( my $i = 0; $i < @q; $i++ ) {
55
    for ( my $i = 0; $i < @q; $i++ ) {
56
        $q[$i] = barcodedecode($q[$i]) if $f[$i] eq 'barcode';
56
        $q[$i] = barcodedecode($q[$i]) if $f[$i] eq 'barcode';
57
    }
57
    }
(-)a/catalogue/search.pl (-2 / +1 lines)
Lines 459-465 my $builder = Koha::SearchEngine::QueryBuilder->new( Link Here
459
my $searcher = Koha::SearchEngine::Search->new(
459
my $searcher = Koha::SearchEngine::Search->new(
460
    { index => $Koha::SearchEngine::BIBLIOS_INDEX } );
460
    { index => $Koha::SearchEngine::BIBLIOS_INDEX } );
461
461
462
# If index indicates the value is a barocode, we need to preproccess it before searching
462
# If index indicates the value is a barcode, we need to preprocess it before searching
463
for ( my $i = 0; $i < @operands; $i++ ) {
463
for ( my $i = 0; $i < @operands; $i++ ) {
464
    $operands[$i] = barcodedecode($operands[$i]) if (defined($indexes[$i]) && $indexes[$i] eq 'bc');
464
    $operands[$i] = barcodedecode($operands[$i]) if (defined($indexes[$i]) && $indexes[$i] eq 'bc');
465
}
465
}
466
- 

Return to bug 35294