NAME
Catmandu::Fix::lido_basevalue - Create a basic XML node in a path
SYNOPSIS
lido_basevalue(
path,
value,
-pref: node.pref,
-lang: node.lang,
-label: node.label,
-type: node.type
)
DESCRIPTION
Creates a basic XML node in a specified path
. This fix can be used in places where a simple node is expected, but where the parent can have multiple nodes of this type. It can't be used for non-repeatable items.
Parameters
Required parameters
path
and value
are required paths.
path
value
Optional parameters
All optional parameters are strings.
pref
lang
label
type
EXAMPLE
Fix
lido_basevalue(
descriptiveMetadata.objectRelationWrap.subjectWrap.subjectSet.displaySubject,
recordList.record.object_name
)
Result
<lido:descriptiveMetadata>
<lido:objectRelationWrap>
<lido:subjectWrap>
<lido:subjectSet>
<lido:displaySubject>olieverfschilderij</lido:displaySubject>
</lido:subjectSet>
</lido:subjectWrap>
</lido:objectRelationWrap>
</lido:descriptiveMetadata>