NAME

Catmandu::Fix::lido_baseid - Create a basic id component in a path

SYNOPSIS

lido_baseid(
	path,
	id_value,
	-type:   ID.type,
	-source: ID.source,
	-label:  ID.label
)

DESCRIPTION

This component will assist in the creation of generic LIDO ID nodes, of the form <lido:ID attributesvalue</lido:ID>>.

The nodes will be created in the path provided by path.

PARAMETERS

Required parameters

The parameters path and id_value are mandatory paths.

path
id_value

Optional parameters

All optional parametes are strings.

type
source
label

EXAMPLE

Fix

lido_baseid(
	lidoRecID,
	recordList.record.object_number,
	-source: 'Museum voor Schone Kunsten Gent',
	-type:   'global',
	-label:  'dataPID'
)

Result

<lido:lidoRecID lido:type="global" lido:source="Museum voor Schone Kunsten Gent" lido:label="dataPID">1812-A</lido:lidoRecID>

MULTIPLE INSTANCES

Repeated invocations of the fix with the same path will result in a new ID node at the specified path. No nodes will be overwritten.

SEE ALSO

Catmandu::LIDO and Catmandu

AUTHORS

Pieter De Praetere, pieter at packed.be

CONTRIBUTORS

Pieter De Praetere, pieter at packed.be
Matthias Vandermaesen, matthias.vandermaesen at vlaamsekunstcollectie.be

COPYRIGHT AND LICENSE

The Perl software is copyright (c) 2016 by PACKED vzw and VKC 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.