Catman...arc_xml(3pm)
π NAME π
Catmandu::Fix::marc_xml β okay so this is the fix that grabs a Catmandu MARC record and transforms it into MARCXML. Manual page Catmandu::Fix::marc_xml(3pm), straight outta the User Contributed Perl Documentation, and yes she's a Perl module page, 3pm section, we love her π
β¨ 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)
π¦ DESCRIPTION π¦
Convert MARC data into a MARCXML string. That's the whole vibe. Data goes in, MARCXML comes out, no cap π«Ά
π METHODS π
marc_xml(PATH,[reverse:1])
Bestie, here's the tea β β this one takes the MARC record chillin' at PATH and transforms it into MARC XML.
But wait, there's more: if you pass the reverse option, then the XML sitting at PATH gets transformed into an internal MARC format instead. Flip it and reverse it, iconic behavior π
Heads up tho: the MARC representation needs to be stored in therecordkey so it plays nice with all the otherCatmandu::MARCfixes. That's not optional, that's the rules π
πΈ INLINE πΈ
Not me telling you this Fix can be used inline in a Perl script β because it absolutely can, and it eats every time β¨
use Catmandu::Fix::marc_xml as => 'marc_xml';
my $data = { record => [...] };
$data = marc_xml($data);
Look at her go π§
π SEE ALSO π
Catmandu::Fixβ the main character, go say hi π«Ά
and that's the whole page, bestie!! π this icon was lovingly served up by perl v5.38.2, dated 2024-08-03 π mwah, go slay your MARC records, iykyk πβ¨
π¦ where this page comes from
- debian trixie: libcatmandu-marc-perl 1.320-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcatmandu-marc-perl 1.320-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcatmandu-marc-perl 1.320-1 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms