NAME

Catmandu::Fix::lido_objectmeasurements - Create a objectMeasurements node

SYNOPSIS

lido_objectmeasurements(
    extent,
    type,
    unit,
    value
)

DESCRIPTION

Create a objectMeasurements node, consisting of measurementType, measurementUnit, measurementValue and extentMeasurements.

PARAMETERS

Required parameters

All parameters are required.

value, type and unit are path parameters, all other parameters are strings.

value
type
unit
extent

MULTIPLE INSTANCES

Repeated invocations of the fix with the same path will result in a new objectMeasurementsSet at descriptiveMetadata.objectIdentificationWrap.objectMeasurementsWrap. No nodes will be overwritten.

EXAMPLE

Fix

lido_objectmeasurements(
    'Volledig',
    recordList.record.height.type,
    recordList.record.height.unit,
    recordList.record.height
)

Result

<lido:descriptiveMetadata>
    <lido:objectIdentificationWrap>
        <lido:objectMeasurementsWrap>
            <lido:objectMeasurementsSet>
                <lido:objectMeasurements>
                    <lido:measurementsSet>
                        <lido:measurementType>hoogte</lido:measurementType>
                        <lido:measurementUnit>cm</lido:measurementUnit>
                        <lido:measurementValue>15</lido:measurementValue>
                    </lido:measurementsSet>
                    <lido:extentMeasurements>Volledig</lido:extentMeasurements>
                </lido:objectMeasurements>
            </lido:objectMeasurementsSet>
        </lido:objectMeasurementsWrap>
    </lido:objectIdentificationWrap>
</lido:descriptiveMetadata>

SEE ALSO

Catmandu::LIDO and Catmandu

AUTHORS

Pieter De Praetere, pieter at packed.be

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.