Patrick Hochstenbach > Catmandu-MARC > Catmandu::Exporter::MARC

Download:
Catmandu-MARC-1.01.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Module Version: 1.01   Source  

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 ^

type

Create a new MARC exporter of the given type. Currently we support:

file

Write output to a local file given by its path or file handle. Alternatively a scalar reference can be passed to write to a string and a code reference can be used to write to a callback function.

fh

Write the output to an IO::Handle. If not specified, Catmandu::Util::io is used to create the output handle from the file argument or by using STDOUT.

fix

An ARRAY of one or more fixes or file scripts to be applied to exported items.

encoding

Binmode of the output stream fh. Set to ":utf8" by default.

SEE ALSO ^

Catmandu::Exporter

syntax highlighting: