Catmandu::Exporter::MARC::USMARC3pm
Exporter for marc records to usmarc
Usage
# From the command line$ catmandu convert MARC --type XML to MARC --type USMARC < /foo/data.mrc# From Perluse Catmandu;my $importer = Catmandu->importer('MARC', file => "/foo/bar.mrc" , type => 'XML');my $exporter = Catmandu->exporter('MARC', file => "marc.xml", type => 'USMARC' );$exporter->add($importer);$exporter->commit;
Methods
new(file => $file , %opts)
Create a new Catmandu::Exporter to serialize MARC record into USMARC. 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.
Releases
2 releases since Debian 8 (Jessie); the text changed 1 time.