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 - Test if a MARC (sub)field exists

Description

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

Methods

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

Name

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

See Also

       Catmandu::Fix::marc_has_many

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

Synopsis

          # marc_has(MARC_PATH)

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

See Also