Catmandu::Fix::viaf_read - query the OCLC VIAF service
add_field('number','102333412'); do maybe(); viaf_read('number'); marc_map('700','author.$append') remove_field(record) end
Search for an authority record by a VIAF control number. Will insert the parsed VIAF MARC record into the document (overwriting the 'record' key if available). Returns undef on failure. Use the maybe() Bind to secure against service failures undef return values
Catmandu::Fix, Catmandu::MARC, Catmandu::Fix::Bind::maybe
To install Catmandu::OCLC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::OCLC
CPAN shell
perl -MCPAN -e shell install Catmandu::OCLC
For more information on module installation, please visit the detailed CPAN module installation guide.