Catmandu::Fix::lido_basenameset - Create a basic nameset in a path
path
lido_basenameset ( path, value, -value_pref: appellationValue.pref, -value_lang: appellationValue.lang, -source: sourceAppellation, -source_lang: sourceAppellation.lang )
lido_basenameset creates a basic LIDO node that contains both appellationValue and sourceAppellation at a specified path.
lido_basenameset
appellationValue
sourceAppellation
path and value are required parameters that must be a path.
value
source must be a path, all the other parameters are strings.
source
value_pref
value_lang
source_lang
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 function multiple times with the same path. Multiple appellationValue and sourceAppellation tags will be created on the same level.
If you do want to repeat the parent element (to keep related appellationValue and sourceAppellation together), add an $append to your path for all calls.
$append
lido_basenameset( descriptiveMetadata.objectIdentificationWrap.titleWrap.titleSet, recordList.record.title.value, -value_lang: nl, -value_pref: preferred, -source: recordList.record.title.source, -source_lang: nl )
<lido:descriptiveMetadata> <lido:objectIdentificationWrap> <lido:titleWrap> <lido:titleSet> <lido:appellationValue lido:pref="preferred" xml:lang="nl">Naderend onweer</lido:appellationValue> <lido:sourceAppellation xml:lang="nl">MSK Gent</lido:sourceAppellation> </lido:titleSet> </lido:titleWrap> </lido:objectIdentificationWrap> </lido:descriptiveMetadata>
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.