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_xml - transform a Catmandu MARC record into MARCXML

Description

       Convert MARC data into a MARCXML string

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

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.

Name

       Catmandu::Fix::marc_xml - transform a Catmandu MARC record into MARCXML

See Also

       Catmandu::Fix

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

Synopsis

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

See Also