DOKK / manpages / debian 12 / libcatmandu-marc-perl / Catmandu::Fix::Condition::marc_has.3pm.en
Catmandu::Fix::Condition::marc_has(3pm) User Contributed Perl Documentation Catmandu::Fix::Condition::marc_has(3pm)

Catmandu::Fix::Condition::marc_has - Test if a MARC (sub)field exists

   # marc_has(MARC_PATH)
   unless marc_has('245')
        add_field('error.$append','no 245 value!')
   end

Evaluate the enclosing fixes only if the MARC (sub)field exists.

Evaluates to true when the MARC_PATH values exists, false otherwise.

Catmandu::Fix::marc_has_many

2022-09-27 perl v5.34.0