From 54d129ceca25f2a80684a4190db0334fa93e7c83 Mon Sep 17 00:00:00 2001 From: Brendan Lawlor Date: Thu, 6 Jun 2024 13:14:43 +0000 Subject: [PATCH] Bug 35294: Fix typos in catalogue code comments MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Test plan: 1. git grep -n -E 'barocode|preproccess' to find the files and line # of typos 2. Apply the patch 3. git grep -E 'barocode|proccess' 4. See no results Signed-off-by: David Nind Signed-off-by: Matt Blenkinsop Signed-off-by: Martin Renvoize (cherry picked from commit e8ef0f9417588345d6c9f7e2e5986e4e53986f52) Signed-off-by: Lucas Gass (cherry picked from commit 96097d8058f6de34036fc4b26dec83c485ed08d9) Signed-off-by: Fridolin Somers Signed-off-by: wainuiwitikapark (cherry picked from commit e471583547d42555f73ed2013ebe2883460ef460) Signed-off-by: Frédéric Demians --- catalogue/itemsearch.pl | 2 +- catalogue/search.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/catalogue/itemsearch.pl b/catalogue/itemsearch.pl index 23f026e9c8..8d1aad3581 100755 --- a/catalogue/itemsearch.pl +++ b/catalogue/itemsearch.pl @@ -52,7 +52,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 5954bf2d67..b4a8f7d209 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'); } -- 2.39.5