logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

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

Description

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

Methods

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

Name

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

See Also

       Catmandu::Fix::marc_has

perl v5.38.2                                       2024-08-03              Catmandu::Fix:...::marc_has_many(3pm)

Synopsis

          # marc_has_many(MARC_PATH)

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

See Also