NAME
Catmandu::Fix::LIDO::Term::emit_term
SYNOPSIS
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.
)
DESCRIPTION
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.
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 term
and conceptID
tags will be created on the same level.
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.
SEE ALSO
AUTHORS
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.