From 9b2606ee0655522f334fe9d5abf20900ca26f0be Mon Sep 17 00:00:00 2001 From: Michele Morgan Date: Mon, 21 Aug 2023 14:36:26 -0400 Subject: [PATCH] LP1913815 More exact match fixes Exact matches return results regardless of case. Signed-off-by: Michele Morgan Signed-off-by: Jane Sandberg --- Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Course.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Course.pm b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Course.pm index 8195872084..3cb967c448 100644 --- a/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Course.pm +++ b/Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Course.pm @@ -183,7 +183,7 @@ sub load_course_browse { if ($value_exists eq 0) { # For Name/Course Number browse queries... if ($bterm_match eq 0) { - if ($result->{$rqtype} =~ m/^$bterm./i || $result->{$rqtype} eq m/^$bterm./i) { + if ($result->{$rqtype} =~ m/^$bterm/i || $result->{$rqtype} eq m/^$bterm/i || $result->{$rqtype} =~ m/^$bterm./i || $result->{$rqtype} eq m/^$bterm./i) { $bterm_match = 1; $entry->{'match'} = 1; } -- 2.43.2