NAME
Catmandu::Fix::lido_classification - create an objectClassificationWrap
.
SYNOPSIS
lido_classification(
object_work_type,
classification,
-object_work_type_id: objectWorkType.conceptID,
-classification_id: classification.conceptID,
-object_work_type_type: objectWorkType.type,
-object_work_type_source: objectWorkType.source,
-classification_type: classification.type,
-classification_source: classification_source,
-lang: objectClassificationWrap.*.lang
)
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. Note that lang
is repeated on both objectWorkType
and classification
.
object_work_type_id
classification_id
object_work_type_type
object_work_type_source
classification_type
classification_source
lang
EXAMPLE
Fix
lido_classification (
recordList.record.object_name.value,
recordList.record.object_cat.value,
-object_work_type_id: recordList.record.object_name.id,
-classification_id: recordList.record.object_cat.id,
-object_work_type_type: global,
-object_work_type_source: adlib,
-classification_type: global,
-classification_source: adlib,
-lang: nl
)
Result
<lido:descriptiveMetadata>
<lido:objectClassificationWrap>
<lido:objectWorkTypeWrap>
<lido:objectWorkType>
<lido:conceptID lido:type="global" lido:source="adlib">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="global" 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>