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>

SEE ALSO

Catmandu::LIDO and Catmandu

AUTHORS

Pieter De Praetere, pieter at packed.be

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.