Catmandu::Fix::lido_term - create a term and conceptID node in a path
term
conceptID
path
lido_term( path, term, -conceptid: conceptID, -lang: term.lang, -pref: term.pref, -source: conceptID.source, -type: conceptID.type )
Create a node consisting of a term and a conceptID in a path.
The parameters term and path are required path parameters.
conceptid is an optional path parameter.
conceptid
All other optional parameters are strings.
lang
pref
source
type
Multiple instances can be created in two ways, depending on whether you want to repeat the parent element or not.
If you do not want to repeat the parent element, call the fixn multiple times with the same path. Multiple term and conceptID tags will be created on the same level.
If you do want to repeat the parent element (to keep related term and conceptID together), add an $append to your path.
$append
lido_term( category, recordList.record.category.value, -conceptid: recordList.record.category.id, -type: global, -source: 'cidoc-crm' )
<lido:category> <lido:conceptID lido:type="global" lido:source="cidoc-crm">123</lido:conceptID> <lido:term>Paintings</lido:term> </lido:category>
Catmandu::LIDO and Catmandu
pieter at packed.be
matthias.vandermaesen at vlaamsekunstcollectie.be
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.
To install Catmandu::LIDO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::LIDO
CPAN shell
perl -MCPAN -e shell install Catmandu::LIDO
For more information on module installation, please visit the detailed CPAN module installation guide.