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;
Catmandu::Exporter::MARC is a Catmandu::Exporter to serialize (write) MARC records to a file or the standard output.
Create a new MARC exporter of the given type. Currently we support:
USMARC L<Catmandu::Exporter::MARC::USMARC> ISO alias for USMARC XML L<Catmandu::Exporter::MARC::XML> MARCMaker L<Catmandu::Exporter::MARC::MARCMaker> MiJ L<Catmandu::Exporter::MARC::MiJ> (Marc in Json) ALEPHSEQ L<Catmandu::Exporter::MARC::ALEPHSEQ>
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.
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.