Catmandu::Fix::Condition::marc_spec_has - Test if a MARCspec references data
# marc_spec_has(MARCspec) unless marc_spec_has('LDR{/6=\a}{/7=\a|/7=\c|/7=\d|/7=\m}') set_field('type','Book') end
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 for documentation on the path syntax.
Evaluates to true when the MARCspec references data, false otherwise.
Catmandu::Fix::marc_has
Catmandu::Fix::marc_match
Catmandu::Fix::marc_has_many
To install Catmandu::MARC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::MARC
CPAN shell
perl -MCPAN -e shell install Catmandu::MARC
For more information on module installation, please visit the detailed CPAN module installation guide.