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

Catmandu::Fix::Condition::marc_has_many - Test if a MARC has more than one (sub)field

   # marc_has_many(MARC_PATH)
   if marc_has_many('245')
        add_field('error.$append','more than one 245!')
   end

Evaluate the enclosing fixes only if the MARC has more than one (sub)field.

Evaluates to true when the MARC has more than one (sub)field, false otherwise.

Catmandu::Fix::marc_has

2022-09-27 perl v5.34.0