Catmandu::Exporter::MARC - Exporter for MARC records
# From the command line $ catmandu convert MARC --type ISO to MARC --type XML < /foo/bar.mrc # From Perl use Catmandu; my $importer = Catmandu->importer('MARC', file => "/foo/bar.mrc" , type => 'ISO'); my $exporter = Catmandu->exporter('MARC', file => "marc.xml", type => "XML" ); $exporter->add($importer); $exporter->commit;
Catmandu::Exporter::MARC is a Catmandu::Exporter to serialize (write) MARC records to a file or the standard output.
In addition to the configuration provided by Catmandu::Exporter (file, fh, etc.) the exporter can be configured with the following parameters:
file
fh
The 'type' parameter describes the MARC syntax variant. Supported values include:
ISO: Catmandu::Exporter::MARC::ISO (default)
XML: Catmandu::Exporter::MARC::XML
MARCMaker: Catmandu::Exporter::MARC::MARCMaker
MiJ: Catmandu::Exporter::MARC::MiJ (MARC in JSON)
ALEPHSEQ: Catmandu::Exporter::MARC::ALEPHSEQ
E.g. catmandu convert MARC --type XML to MARC --type ISO < marc.xml > marc.iso
Catmandu::Importer::MARC
To install Catmandu::MARC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::MARC
CPAN shell
perl -MCPAN -e shell install Catmandu::MARC
For more information on module installation, please visit the detailed CPAN module installation guide.