Catmandu::Fix::make_pid - Use the Resolver to create/retrieve a PID for a record
A fix to either fetch or create a PID (workPID) for a record based on the record number.
make_pid( path, url, username, password, -type: work )
make_pid() will query the resolver to see if a PID exists for the value in path. If it does, it replaces the value with the PID. If it doesn't, it will create the PID and replace the value with the PID.
make_pid()
path
path, url, username and password must be present. Except for path, they are all strings.
url
username
password
URL of a Resolver instance (e.g. https://resolver.be).
type
Type of the PID. String, optional and default is 'work'.
Catmandu Catmandu::Store::Resolver
Pieter De Praetere, pieter at packed.be
pieter at packed.be
This package is copyright (c) 2016 by PACKED vzw. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Catmandu::Resolver, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::Resolver
CPAN shell
perl -MCPAN -e shell install Catmandu::Resolver
For more information on module installation, please visit the detailed CPAN module installation guide.