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

Catmandu::Exporter::MARC::MARCMaker - Exporter for MARC records to USMARC

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

NAME

Catmandu::Exporter::MARC::MARCMaker - Exporter for MARC records to USMARC

SYNOPSIS

    # From the command line 
    $ catmandu convert MARC --type XML to MARC --type MARCMaker < /foo/data.mrc
    # From Perl
    use Catmandu;
    my $importer = Catmandu->importer('MARC', file => "/foo/bar.mrc" , type => 'XML');
    my $exporter = Catmandu->exporter('MARC', file => "marc.xml", type => 'MARCMaker' );
    $exporter->add($importer);
    $exporter->commit;

METHODS

new(file => $file , %opts)

Create a new Catmandu::Exporter to serialize MARC record into MARCMaker. Provide the path of a $file to write exported records to. Optionally the following parameters can be specified:
        record : the key containing the marc record (default: 'record')
        record_format : optionally set to 'MARC-in-JSON' when the input format is in MARC-in-JSON

INHERTED METHODS

count

add($hashref)

add_many($array)

add_many($iterator)

add_many(sub {})

...

All the Catmandu::Exporter methods are inherited.

SEE ALSO

Catmandu::Exporter
2016-02-22 perl v5.22.1