From a65502ba1ad840dd56223bf1a1978f0a98aa2f93 Mon Sep 17 00:00:00 2001 From: Joshua Ferraro Date: Tue, 18 Dec 2007 01:34:30 -0600 Subject: [PATCH] case-insensitive match on query highlighting Signed-off-by: Chris Cormack Signed-off-by: Joshua Ferraro --- C4/Search.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Search.pm b/C4/Search.pm index a82e8c292a..58c6b5ed44 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -1058,7 +1058,7 @@ sub searchResults { my $match; my $field = $highlight_field->as_string(); for my $term ( keys %$span_terms_hashref ) { - if (($field =~ /$term/) && (length($term) > 3)) { + if (($field =~ /$term/i) && (length($term) > 3)) { $field =~ s/$term/$&<\/span>/gi; $match++; } -- 2.39.5