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
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>