Catmandu::Fix::LIDO::Term::emit_term
emit_term( $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). $term, # Path (string) to the value of the term component (required). $conceptid, # Path (string) to the value of the conceptID component. $lang, # xml:lang attribute, string. $pref, # pref attribute, string. $source, # source attribute, string. $type # type attribute, string. )
This function will generate the necessary emit code to generate a term node in a given path consisting of term and conceptID. The node is attached directly to the path, so you must specify the name of the term (e.g. category) in the $path.
term
conceptID
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 term and conceptID tags will be created on the same level.
path
If you do want to repeat the parent element (to keep related term and conceptID 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.