Pieter De Praetere
and 3 contributors

NAME

Catmandu::Fix::lido_date - create a generic date component in path

SYNOPSIS

    lido_date(
        path,
        -earliest_date:      earliestDate,
        -earliest_date_type: earliestDate.type,
        -latest_date:        latestDate,
        -latest_date_type:   latestDate.type
    )

DESCRIPTION

Creates a generic date component consisting of latestDate and earliestDate in a path.

PARAMETERS

Required parameters

path is a required path parameter.

path

Optional parameters

All optional parameters are paths.

earliest_date
latest_date
latest_date_type
earliest_date_type

EXAMPLE

Fix

    lido_date(
        descriptiveMetadata.eventWrap.eventSet.$last.event.eventDate.date,
        -earliest_date:      recordList.record.production_date_start,
        -earliest_date_type: recordList.record.production_date_type,
        -latest_date:        recordList.record.production_date_end,
        -latest_date_type:   recordList.record.production_date_type
    )

Result

    <lido:descriptiveMetadata>
        <lido:eventWrap>
            <lido:eventSet>
                <lido:event>
                    <lido:eventDate>
                        <lido:date>
                            <lido:earliestDate lido:type="circa">1812</lido:earliestDate>
                            <lido:latestDate lido:type="circa">1813</lido:latestDate>
                        </lido:date>
                    </lido:eventDate>
                </lido:event>
            </lido:eventSet>
        </lido:eventWrap>
    </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.