Ubuntu Manpages

Catmandu::Exporter::MARC

Exporter for MARC records

    # 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;

Create a new Catmandu::Exporter which serializes MARC records into a $file. Type describes the MARC serializer to be used. Currently we support:

Read the documentation of the parser modules for extra configuration options.

Catmandu::Exporter