Scroll to navigation

Catmandu::Fix::marc_in_json(3pm) User Contributed Perl Documentation Catmandu::Fix::marc_in_json(3pm)

NAME

Catmandu::Fix::marc_in_json - transform a Catmandu MARC record into MARC-in-JSON

SYNOPSIS

   # 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)

DESCRIPTION

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);

SEE ALSO

Catmandu::Fix
2019-02-25 perl v5.28.1