Catman...pec_has(3pm)
π NAME π
Catmandu::Fix::Condition::marc_spec_has β bestie, this one tests whether a MARCspec actually references data. That's it, that's the whole vibe. π
β¨ SYNOPSIS β¨
# marc_spec_has(MARCspec)
unless marc_spec_has('LDR{/6=\a}{/7=\a|/7=\c|/7=\d|/7=\m}')
set_field('type','Book')
end
π¦ DESCRIPTION π¦
Okay so listen: this little icon evaluates the fixes wrapped around it only if the MARCspec actually references data. No data, no fix, no drama. π βοΈ
It does the exact same thing as marc_has, except it's the glow-up version that uses MARCspec β A common MARC record path language. Same energy, fancier path syntax. π
For the full tea on path syntax, go read the docs at MARCspec - A common MARC record path language over at <http://marcspec.github.io/MARCspec/>. She's got the whole language documented, no cap. πβ¨
π METHODS π
marc_spec_has(MARCspec)
Lowkey the whole point: this evaluates to true when the MARCspec references data, and false when it doesn't. That's the vibe check. β
πΈ SEE ALSO πΈ
Catmandu::Fix::marc_hasCatmandu::Fix::marc_matchCatmandu::Fix::marc_has_many
perl v5.38.2, dated 2024-08-03 β and yes, that's Catman...pec_has(3pm) in the corner, she's iconic, she's from the User Contributed Perl Documentation era, and she ate. π mwah, go reference some data bestie π«Ά
π¦ 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