Catmandu::Fix::pica_update - change or add a PICA (sub)field to a fixed value
pica_update('021A','$abook$hto read'); # update full field pica_update('003@$0','123'); # update subfield(s) pica_update('021A$h','for reading', add: 1); # add 021A$a if missing
Change or add value of PICA+ field(s) or subfields, specified by PICA Path expression.
all - update all (sub)field instances instead of only the first field (or first matching subfield in a field). Enabled by default.
add - add field or subfield(s) if missing. Disabled by default. Ignored if PICA Path expression does not reference an individual field.
See Catmandu::Fix::pica_set and Catmandu::Fix::pica_add for setting/adding PICA (sub)fields to values from other record fields.
See Catmandu::Fix::pica_append to add a full field to a record.
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.