Catmandu::Fix::LIDO::Nameset::emit_nameset
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. )
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.
nameset
appellationValue
sourceAppellation
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.
path
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.
$append
Catmandu::LIDO and Catmandu
pieter at packed.be
matthias.vandermaesen at vlaamsekunstcollectie.be
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.
To install Catmandu::LIDO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catmandu::LIDO
CPAN shell
perl -MCPAN -e shell install Catmandu::LIDO
For more information on module installation, please visit the detailed CPAN module installation guide.