Catmandu::Fix::Condition::pica_match - Conditionals on PICA fields
# pica_match(PICA_PATH,REGEX) if pica_match('021A$a','^My funny title$') add_field('my.funny.title','true') end # pica_match(PICA_PATH) # checks whether a field exists # pica_match($9) # checks whether a subfield exists if pica_match('001$U0') add_field('my.encode_info','true') end
Check whether at least one PICA field or subfield exists or its value matches a regular expression.
Catmandu::Fix::pica_map
To install Catmandu::PICA, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::PICA
CPAN shell
perl -MCPAN -e shell install Catmandu::PICA
For more information on module installation, please visit the detailed CPAN module installation guide.