Catmandu::Fix::marc_in_json3pm
Transform a catmandu marc record into marc-in-json
Usage
# Transform a Catmandu MARC 'record' into a MARC-in-JSON recordmarc_in_json()# Reverse, transform a MARC-in-JSON record into a Catmandu MARC recordmarc_in_json(reverse:1)
Overview
Convert the MARC record into MARC-in-JSON format
Methods
marc_in_json( [OPT1:VAL, OPT2: VAL])
Convert a Catmandu MARC record into the MARC-in-JSON format.
Options
reverse: 0|1
Convert a MARC-in-JSON record back into the Catmandu MARC format.
Inline
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);
Releases
6 releases since Debian 8 (Jessie); the text changed 4 times.