The basis for this message is to get a feeling whether or not I should
submit a module that will do NACO normalization
(http://lcweb.loc.gov/catdir/pcc/naco/normrule.html) to CPAN.
[...]
So, away I went and came back with normalize() sub which does the trick.
Fabulous! (Disclaimer: I'd never heard of NACO normalization before, but it sounds like it could be useful -- for MARC bib records, too.)
I now wonder if this code would have greater utility as a module on CPAN.
Yes, please! (You're not BRICAS on cpan.org, are you?)
And if I do decide to upload it to CPAN, perhaps a base class
(Text::Normalize) should be created to which NACO normalization could be
added as a subclass.
I would recommend putting it in the MARC::* namespace, since it's specific to MARC records -- maybe MARC::Transform::NACO or some such.
A class hierarchy rooted at MARC:: Transform might be useful, if (for example) people wanted to apply arbitrary transformations to a single record:
my @records = ... some MARC::Record objects ... ; my @transforms = ( MARC::Transform::Delete9xx->new, MARC::Transform::StripInitialArticles->new, some_other_transforms(), ); foreach my $t (@ transforms) { $t->transform($_) foreach @records; }
Thanks for your hard work.
Paul.
-- Paul Hoffman :: Taubman Medical Library :: Univ. of Michigan [EMAIL PROTECTED] :: [EMAIL PROTECTED] :: http://www.nkuitse.com/