NAME
Catmandu::Fix::make_pid - Use the Resolver to create/retrieve a PID for a record
SYNOPSIS
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
)
DESCRIPTION
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.
PARAMETERS
Required parameters
path
, url
, username
and password
must be present. Except for path
, they are all strings.
path
url
-
URL of a Resolver instance (e.g. https://resolver.be).
username
password
Optional parameters
type
-
Type of the PID. String, optional and default is 'work'.
SEE ALSO
Catmandu Catmandu::Store::Resolver
AUTHORS
Pieter De Praetere, pieter at packed.be
CONTRIBUTORS
Pieter De Praetere, pieter at packed.be
COPYRIGHT AND LICENSE
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.