The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catmandu::Fix::pica_update - change or add a PICA (sub)field to a fixed value

SYNOPSIS

    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
    

DESCRIPTION

FUNCTIONS

pica_update(PATH, VALUE, [OPTIONS])

Change or add value of PICA+ field(s) or subfields, specified by PICA Path expression.

Options

  • 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 ALSO

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.