From 62eb4b6b74821fbca3bb300cd9dd7876e681b658 Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Wed, 26 Aug 2020 16:58:29 +0200 Subject: [PATCH] Bug 24143: Disable QueryXXX when searching on an authority number Using the ident or identifier-standard index should not involve any of the following features: - QueryAutoTruncate - QueryFuzzy - QueryStemming - QueryWeightFields This is used in autorities search table to display use count. --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index 64cf03a0f5..f09923a9be 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1398,7 +1398,7 @@ sub buildQuery { $stemming = $auto_truncation = $weight_fields = $fuzzy_enabled = 0; } # ISBN,ISSN,Standard Number, don't need special treatment - elsif ( $index eq 'nb' || $index eq 'ns' || $index eq 'hi' || $index eq 'sn' ) { + elsif ( $index eq 'nb' || $index eq 'ns' || $index eq 'hi' || $index eq 'sn' || $index eq 'an' ) { ( $stemming, $auto_truncation, $weight_fields, $fuzzy_enabled -- 2.27.0