NAME¶
Catmandu::Exporter::MARC - Exporter for MARC records
SYNOPSIS¶
# From the command line
$ catmandu convert MARC --type USMARC to MARC --type XML < /foo/bar.mrc
# From Perl
use Catmandu;
my $importer = Catmandu->importer('MARC', file => "/foo/bar.mrc" , type => 'USMARC');
my $exporter = Catmandu->exporter('MARC', file => "marc.xml", type => "XML" );
$exporter->add($importer);
$exporter->commit;
METHODS¶
new(file => $file, type => $type)¶
Create a new Catmandu::Exporter which serializes MARC records into a $file. Type
describes the MARC serializer to be used. Currently we support:
- USMARC Catmandu::Exporter::MARC::USMARC
- XML Catmandu::Exporter::MARC::XML
- MARCMaker Catmandu::Exporter::MARC::MARCMaker
- MiJ Catmandu::Exporter::MARC::MiJ
- ALEPHSEQ Catmandu::Exporter::MARC::ALEPHSEQ
Read the documentation of the parser modules for extra configuration options.
SEE ALSO¶
Catmandu::Exporter