The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Catmandu::Fix::pica_keep - reduce PICA record to selected fields

SYNOPSIS

# keep level 0 fields
pica_keep('0.../*')

# keep two specific fields only
pica_keep(003@,021A)    # pathes can passed as multiple arguments
pica_keep("003@,021A")  # equivalent: one argument with multiple pathes

FUNCTIONS

pica_keep(PATH,PATH...)

Reduce PICA record to fields referenced by PICA Path expressions. Multiple expressions can be separated by , and optional space or given as multiple arguments. Path expressions should not contain subfields.

SEE ALSO

Function pica_fields of PICA::Data, PICA::Path, Catmandu::Fix::pica_remove.