NAME

Catmandu::Fix::lido_descriptivenote - create a descriptiveNoteValue in a path

SYNOPSIS

lido_descriptivenote(
    path,
    value,
    -lang:  descriptiveNoteValue.lang,
    -label: descriptiveNoteValue.label
)

DESCRIPTION

Creates a descriptiveNoteValue in a path.

PARAMETERS

Required parameters

path and value are required path parameters.

path
value

Optional parameters

All optional parameters are strings.

lang
label

MULTIPLE INSTANCES

To add multiple descriptiveNoteValue's at the same location (e.g. descriptiveMetadata.objectDescriptionWrap.objectDescriptionSet), simply call the fix multiple times with the same path. A new parent (e.g. objectDescriptionSet) will be created for every new descriptiveNoteValue, per the standard.

EXAMPLE

Fix

lido_descriptivenote(
    descriptiveMetadata.eventWrap.eventSet.$last.event.eventDescriptionSet,
    recordList.record.creation_desc,
    -lang:  nl,
    -label: Default
)

Result <lido:descriptiveMetadata> <lido:eventWrap> <lido:eventSet> <lido:event> <lido:eventDescriptionSet> <lido:descriptiveNoteValue xml:lang="nl" lido:label="Default">Een generieke beschrijving.</lido:descriptiveNoteValue> </lido:eventDescriptionSet> </lido:event> </lido:eventSet> </lido:eventWrap> </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.