NAME
Catmandu::Exporter::MARC - Exporter for MARC records
SYNOPSIS
# 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;
DESCRIPTION
Catmandu::Exporter::MARC is a Catmandu::Exporter to serialize (write) MARC records to a file or the standard output.
CONFIGURATION
In addition to the configuration provided by Catmandu::Exporter (file
, fh
, etc.) the exporter can be configured with the following parameters:
The 'type' parameter describes the MARC syntax variant. Supported values include:
ISO: Catmandu::Exporter::MARC::ISO (default)
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