Catmandu::Fix::marc_xml(3pm)

Catmandu::Fix::marc_xml3pm

Transform a catmandu marc record into marcxml

Usage

   # Transforms the 'record' key into a MARCXML string
   marc_xml('record')
   # Transforms the XML in the 'record' key into MARC accessible data
   marc_xml('record',reverse:1)

Overview

Convert MARC data into a MARCXML string

Methods

marc_xml(PATH,[reverse:1])

Transform the MARC record found at PATH to MARC XML. If an "reverse" option is given, then XML found at "PATH" will be transformed into an internal MARC format. The MARC representation needs to be stored in the "record" key to be used with other Catmandu::MARC fixes.

Inline

This Fix can be used inline in a Perl script:

    use Catmandu::Fix::marc_xml as => 'marc_xml';
    my $data = { record => [...] };
    $data = marc_xml($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.