NAME
Catmandu::Fix::lido_basenameset - Create a basic nameset in a path
SYNOPSIS
lido_basenameset (
path,
value,
-value_pref: appellationValue.pref,
-value_lang: appellationValue.lang,
-source: sourceAppellation,
-source_lang: sourceAppellation.lang
)
DESCRIPTION
lido_basenameset
creates a basic LIDO node that contains both appellationValue
and sourceAppellation
at a specified path
.
PARAMETERS
Required parameters
path
and value
are required parameters that must be a path.
Optional parameters
source
must be a path, all the other parameters are strings.
value_pref
value_lang
source_lang
MULTIPLE INSTANCES
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.
EXAMPLE
Fix
lido_basenameset(
descriptiveMetadata.objectIdentificationWrap.titleWrap.titleSet,
recordList.record.title.value,
-value_lang: nl,
-value_pref: preferred,
-source: recordList.record.title.source,
-source_lang: nl
)
Result
<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>
SEE ALSO
AUTHORS
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.