Catman...append(3pm)
π NAME π
Catmandu::Fix::marc_append β bestie, this one's a Fix, and what it does is add a value at the end of a MARC field π
(yes, we're in the User Contributed Perl Documentation section here, 3pm girlies rise up π«Ά)
β¨ SYNOPSIS β¨
okay so picture this, you just wanna slap a period at the end of your 100 field:
# Append a period at the end of the 100 field
marc_append(100,".")
that's it. that's the whole vibe. iconic. π
πΈ DESCRIPTION πΈ
It appends a value at the end of a MARC (sub)field. simple as. lowkey does exactly what it says on the tin π¦
π METHODS π
marc_append(MARC_PATH , VALUE)
So for each (sub)field that matches the MARC_PATH, it appends the VALUE to the last subfield. no cap π₯
And that VALUE? It can be either:
- a literal β like, just type the thing you want, bestie βοΈ
- or a reference to an existing field in the record, using the dollar
JSON_PATHsyntax π«
pick your fighter, both work π«Ά
π INLINE π
Not me casually reminding you that this Fix can be used inline in a Perl script β yes, right there in your own code, main character energy only π
use Catmandu::Fix::marc_append as => 'marc_append';
my $data = { record => [...] };
$data = marc_append($data, '100', '.');
go off, script π β¨
π SEE ALSO π
Catmandu::Fixβ the mothership, the blueprint, the whole reason we're here π
fr fr, that's the entire page β no crumbs left behind, every flag, path and default accounted for ππ
perl v5.38.2 Β· 2024-08-03 β and that's the sign-off bestie, mwah, go append some values ππ¦π
π¦ 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