LP#1741997: adjust normalization so that heading type matching works better
authorGalen Charlton <gmc@equinoxinitiative.org>
Tue, 28 Nov 2017 21:18:35 +0000 (21:18 +0000)
committerGalen Charlton <gmc@equinoxinitiative.org>
Mon, 8 Jan 2018 22:47:22 +0000 (17:47 -0500)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/perlmods/lib/OpenILS/WWW/EGCatLoader/Browse.pm

index 8f537c5..d817c2c 100644 (file)
@@ -6,7 +6,7 @@ use warnings;
 use OpenSRF::Utils::Logger qw/$logger/;
 use OpenILS::Utils::CStoreEditor qw/:funcs/;
 use OpenILS::Utils::Fieldmapper;
-use OpenILS::Utils::Normalize qw/search_normalize/;
+use OpenILS::Utils::Normalize qw/naco_normalize search_normalize/;
 use OpenILS::Application::AppUtils;
 use OpenSRF::Utils::JSON;
 use OpenSRF::Utils::Cache;
@@ -145,7 +145,7 @@ sub find_authority_headings_and_notes {
             my $h = { main_entry => ( $acsaf->main_entry ? 0 : 1 ),
                       heading => _get_authority_heading($field, \%sf_lookup, $acsaf->joiner) };
 
-            my $norm = search_normalize($h->{heading});
+            my $norm = naco_normalize($h->{heading});
             if (exists $heading_type_map{$norm}) {
                 $h->{type} = $heading_type_map{$norm};
             }