Catmandu::Fix::pica_map - copy pica values of one field to a new field
# Copy from field 003@ subfield 0 to dc.identifier hash pica_map('003A0','dc.identifier'); # Copy from field 003@ subfield 0 to dc.identifier hash pica_map('010@a','dc.language'); # Copy from field 009Q subfield a to foaf.primaryTopicOf array pica_map('009Qa','foaf.primaryTopicOf.$append'); # Copy from field 028A subfields a and d to dc.creator hash joining them by ' ' pica_map('028Aad','dcterms.creator', -join => ' '); # Copy from field 028A with occurrence subfields a and d to dc.contributor hash joining them by ' ' pica_map('028B[01]ad','dcterms.contributor', -join => ' ');
See PICA::Path for a definition of PICA path expressions and PICA::Data for more methods to process parsed PICA+ records.
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.