Catmandu::Exporter::MARC::MARCMaker - Exporter for MARC records to USMARC
# 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;
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.
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.
file
An ARRAY of one or more fixes or file scripts to be applied to exported items.
Binmode of the output stream fh. Set to ":utf8" by default.
fh
:utf8
See Catmandu::Exporter, Catmandu::Addable, Catmandu::Fixable, Catmandu::Counter, and Catmandu::Logger for a full list of methods.
Catmandu::Exporter
To install Catmandu::MARC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::MARC
CPAN shell
perl -MCPAN -e shell install Catmandu::MARC
For more information on module installation, please visit the detailed CPAN module installation guide.