Man pages sections > man3 > Catmandu::Exporter::MARC

Catmandu::Exporter::MARC - Exporter for MARC records

Catmandu::Exporter::MARC(3pm) User Contributed Perl Documentation Catmandu::Exporter::MARC(3pm)

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
ISO alias for 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
2016-02-22 perl v5.22.1