NAME
Catmandu::Fix::lido_classification - create an objectClassificationWrap
.
SYNOPSIS
lido_classification(
object_work_type,
classification,
-object_work_type_id: objectWorkType.conceptID,
-object_work_type_lang: objectWorkType.term.lang,
-object_work_type_type: objectWorkType.conceptID.type,
-object_work_type_source: objectWorkType.conceptID.source,
-object_work_type_pref: objectWorkType.conceptID.pref & objectWorkType.term.pref,
-classification_id: classification.conceptID,
-classification_lang: classification.term.lang,
-classification_type: classification.conceptID.type,
-classification_source: classification.conceptID.source,
-classification_pref: classification.conceptID.pref & classification.term.pref
)
DESCRIPTION
lido_classification
will create a objectClassificationWrap
containing both the classificationWrap.classification
and the objectWorkTypeWrap.objectWorkType
.
PARAMETERS
Required parameters
object_work_type
and classification
are required path parameters.
object_work_type
classification
Optional parameters
object_work_type_id
and classification_id
are optional path parameters. All other parameters are strings.
object_work_type_id
classification_id
object_work_type_lang
object_work_type_type
object_work_type_source
object_work_type_pref
classification_lang
classification_type
classification_source
classification_pref
EXAMPLE
Fix
lido_classification (
recordList.record.object_name.value,
recordList.record.object_cat.value,
-object_work_type_id: recordList.record.object_name.id,
-object_work_type_lang: nl,
-object_work_type_type: local,
-object_work_type_source: Adlib,
-object_work_type_pref: preferred,
-classification_id: recordList.record.object_cat.id,
-classification_lang: nl,
-classification_type: local,
-classification_source: Adlib,
-classification_pref: preferred
)
Result
<lido:descriptiveMetadata>
<lido:objectClassificationWrap>
<lido:objectWorkTypeWrap>
<lido:objectWorkType>
<lido:conceptID lido:type="local" lido:source="Adlib" lido:pref="preferred">123</lido:conceptID>
<lido:term xml:lang="nl">olieverfschilderij</lido:term>
</lido:objectWorkType>
</lido:objectWorkTypeWrap>
<lido:classificationWrap>
<lido:classification>
<lido:conceptID lido:pref="preferred" lido:type="local" lido:source="Adlib">123</lido:conceptID>
<lido:term lido:pref="preferred" xml:lang="nl">Schilderijen</lido:term>
</lido:classification>
</lido:classificationWrap>
</lido:objectClassificationWrap>
</lido:descriptiveMetadata>
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.