diff --git a/catalogue/itemsearch.pl b/catalogue/itemsearch.pl index 14270d5a4f..b56f509513 100755 --- a/catalogue/itemsearch.pl +++ b/catalogue/itemsearch.pl @@ -51,7 +51,7 @@ if (defined $format and $format eq 'json') { my @f = $cgi->multi_param('f'); my @q = $cgi->multi_param('q'); - # If index indicates the value is a barcode, we need to preproccess it before searching + # If index indicates the value is a barcode, we need to preprocess it before searching for ( my $i = 0; $i < @q; $i++ ) { $q[$i] = barcodedecode($q[$i]) if $f[$i] eq 'barcode'; } diff --git a/catalogue/search.pl b/catalogue/search.pl index b5ae390657..462542d070 100755 --- a/catalogue/search.pl +++ b/catalogue/search.pl @@ -459,7 +459,7 @@ my $builder = Koha::SearchEngine::QueryBuilder->new( my $searcher = Koha::SearchEngine::Search->new( { index => $Koha::SearchEngine::BIBLIOS_INDEX } ); -# If index indicates the value is a barocode, we need to preproccess it before searching +# If index indicates the value is a barcode, we need to preprocess it before searching for ( my $i = 0; $i < @operands; $i++ ) { $operands[$i] = barcodedecode($operands[$i]) if (defined($indexes[$i]) && $indexes[$i] eq 'bc'); }