Catmandu::Fix::Condition::marc_has - Test if a MARC (sub)field exists
# marc_has(MARC_PATH) unless marc_has('245') add_field('error.$append','no 245 value!') end
Evaluate the enclosing fixes only if the MARC (sub)field exists.
Evaluates to true when the MARC_PATH values exists, false otherwise.
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.