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_spec_has - Test if a MARCspec references data

Description

       Evaluate the enclosing fixes only if the MARCspec does reference data.

       Does the same like  marc_has but uses MARCspec - A common MARC record path language.

       See MARCspec - A common MARC record path language <http://marcspec.github.io/MARCspec/> for documentation
       on the path syntax.

Methods

marc_spec_has(MARCspec)
       Evaluates to true when the MARCspec references data, false otherwise.

Name

       Catmandu::Fix::Condition::marc_spec_has - Test if a MARCspec references data

See Also

       •   Catmandu::Fix::marc_has

       •   Catmandu::Fix::marc_match

       •   Catmandu::Fix::marc_has_many

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

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

See Also