MARC::Moose::Lint::Processor - Processor to lint iso2709 file
version 1.0.16
A MARC::Moose::Lint::Checker to be used to validate biblio record.
The name of the ISO2709 file containing biblio records to control.
A MARC::Moose::Formater which transform a MARC::Moose::Record into another MARC::Moose::Record. Using a cleaner, it's possible to clean biblio records before validating them.
package PeterCleaner; use Moose; extends 'MARC::Moose::Formater'; override 'format' => sub { my ($self, $record) = @_; for my $field (@{$record->fields}) { # clean content } return $record; }; package Main; my $processor = MARC::Moose::Lint::Processor->new( lint => MARC::Moose::Lint::Checker->new( file => 'unimarc.rules', file => 'biblio.mrc', cleaner => PeterCleaner->new(), verbose => 1, }; $processor->run();
The above script validates an ISO2709 file named biblio.mrc on a rules file named unimarc.rules. As a result, 3 files are created: (1) biblio.mrc.ok, an ISO2709 containing biblio records complying to the rules, (2) biblio.mrc.bad containing biblios violating the rules, and (3) biblio.mrc.log containing a textual representation of biblio records violating the rules + a description of violated rules.
biblio.mrc
unimarc.rules
biblio.mrc.ok
biblio.mrc.bad
biblio.mrc.log
MARC::Moose
MARC::Moose::Lint::Checker
Frédéric Demians <f.demians@tamil.fr>
This software is copyright (c) 2014 by Frédéric Demians.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
1 POD Error
The following errors were encountered while parsing the POD:
Unterminated L<...> sequence
To install MARC::Moose, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MARC::Moose
CPAN shell
perl -MCPAN -e shell install MARC::Moose
For more information on module installation, please visit the detailed CPAN module installation guide.