logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

       Convert the MARC record into MARC-in-JSON 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);

Methods

marc_in_json([OPT1:VAL,OPT2:VAL])
       Convert a Catmandu MARC record into the MARC-in-JSON format.

Name

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

Options

reverse:0|1
       Convert a MARC-in-JSON record back into the Catmandu MARC format.

See Also

       Catmandu::Fix

perl v5.38.2                                       2024-08-03                   Catmandu::Fix::marc_in_json(3pm)

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)

See Also