Catmandu::Fix::marc_in_json(3pm)

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 record
   marc_in_json()
   # Reverse, transform a MARC-in-JSON record into a Catmandu MARC record
   marc_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.

  1. 8
  2. 9
  3. 10–11
  4. 12
  5. 13

From libcatmandu-marc-perl 1.320-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.