This resolves a problem in O:A:Storage:Publisher:authority:validate_tag() where
the full NACO normalization rules that are applied to the subfields of the
authority records when they are ingested into authority.full_rec are not similarly
applied to the incoming subfields of the bib field that is being validated;
only diacritic characters in the bib field subfields were being normalized.
Now we apply naco_normalize() to the search terms so that they will match
the ingested form of the authority record.
Addresses https://bugs.launchpad.net/evergreen/+bug/649556
git-svn-id: svn://svn.open-ils.org/ILS/trunk@18076
dcc99617-32d9-48b4-a31d-
7c20da2025e4
for my $t ( @tags ) {
for my $search ( @searches ) {
my $sf = $$search{subfield};
- my $term = NFD(lc($$search{term}));
-
- $term =~ s/\pM+//sgo;
- $term =~ s/\pC+//sgo;
- $term =~ s/\W+$//o;
+ my $term = OpenILS::Application::Storage::FTS::naco_normalize($$search{term}, $sf);
$tag = [$tag] if (!ref($tag));