Catman...rc_has(3pm)
π NAME π
Catmandu::Fix::Condition::marc_has β the little fix that just wants to know: does this MARC (sub)field even exist, bestie? π
(Also filed under the manual name marc_has(3pm) in the User Contributed Perl Documentation, if you're the type to look things up properly. π)
β¨ SYNOPSIS β¨
# marc_has(MARC_PATH)
unless marc_has('245')
add_field('error.$append','no 245 value!')
end
Look at her. Gorgeous. Iconic. She checks, and if it's a no, she goes straight to adding that error field. π
π¦ DESCRIPTION π¦
Okay so here's the vibe: this condition only lets the enclosing fixes run if the MARC (sub)field actually exists. No field, no fixes. That's it. That's the whole personality. πΈ
π METHODS π
π marc_has(MARC_PATH)
Evaluates to true when the MARC_PATH values exist, and false otherwise. Simple as that, fr fr. π
π SEE ALSO π
Catmandu::Fix::marc_has_manyβ for when one (sub)field just isn't enough and you need the whole squad. π«Ά
perl v5.38.2 Β· 2024-08-03 Β· that's the version and the date, bestie, and that's the whole page. Go forth and check your fields. πβ¨π
π¦ 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