Catmandu::Exporter::MARC::MiJ - Exporter for MARC records to MARC in JSON
# From the command line $ catmandu convert MARC --type XML to MARC --type MiJ < /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 => 'MiJ' ); $exporter->add($importer); $exporter->commit;
Create a new Catmandu::Exporter to serialize MARC record into MiJ. Provide the path of a $file to write exported records to. Optionally the following paramters 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
All the Catmandu::Exporter methods are inherited.
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.