NAME

Catmandu::Fix::LIDO::Nameset::emit_nameset

SYNOPSIS

emit_nameset(
    $fixer, # The fixer object from the calling emit function inside the calling Fix (required).
    $root, # The root path (string) from which the path parameter must be created (required).
    $path, # The path (string) for the nameset - must include the name of the nameset node (required).
    $appellation_value, # The value of the appellationValue component of the nameset, as a string path (required).
    $appellation_value_lang, # appellationValue.lang attribute, string.
    $appellation_value_type, # appellationValue.type attribute, string.
    $appellation_value_pref, # appellationValue.pref attribute, string.
    $source_appellation, # Value of the sourceAppellation component, as a string path (required).
    $source_appellation_lang # sourceAppellation.lang, string.
)

DESCRIPTION

This function will generate the necessary emit code to generate a nameset node, consisting of appellationValue and sourceAppellation, in a given path. The node is attached directly to the path, so you must specify the name of the nameset (e.g. titleSet) in the $path.

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.

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.