Catman...as_many(3pm)
π NAME π
Catmandu::Fix::Condition::marc_has_many β bestie, this is the vibe check that asks: does this MARC record have more than one (sub)field? That's it. That's the whole job. β¨
(also hi, you found this in section 3pm of the User Contributed Perl Documentation, aka the perl module corner of the manual, welcome π«Ά)
πΈ SYNOPSIS πΈ
# marc_has_many(MARC_PATH)
if marc_has_many('245')
add_field('error.$append','more than one 245!')
end
okay so like, if the 245 shows up more than once, you get yourself a lil error field. iconic behavior honestly π
π¦ DESCRIPTION π¦
So here's the tea: marc_has_many only lets the enclosing fixes run when the MARC record has more than one (sub)field. Otherwise? Nothing happens. The fixes just sit there. Respectfully. π
π METHODS π
β marc_has_many(MARC_PATH)
Evaluates to true when the MARC has more than one (sub)field, and false otherwise. No in-between, no situationship, just true or false. periodt. π
π SEE ALSO π
Catmandu::Fix::marc_has
and that's the whole page, bestie!! this one came to you courtesy of perl v5.38.2, dated 2024-08-03 β the User Contributed Perl Documentation really said "here, take this and go build something slay" π§πβ¨
π¦ 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