Catmandu::Fix::marc_in_json - transform a Catmandu MARC record into MARC-in-JSON
# Transform a Catmandu MARC 'record' into a MARC-in-JSON record marc_in_json() # Reverse, transform a MARC-in-JSON record into a Catmandu MARC record marc_in_json(reverse:1)
Convert the MARC record into MARC-in-JSON format
Convert a Catmandu MARC record into the MARC-in-JSON format.
Convert a MARC-in-JSON record back into the Catmandu MARC format.
This Fix can be used inline in a Perl script:
use Catmandu::Fix::marc_in_json as => 'marc_in_json'; my $data = { record => [...] }; $data = marc_in_json($data);
Catmandu::Fix
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.