Skip to content

ETDF field widget, when it allows ranges, incidentally forbids times. #1364

@rosiel

Description

@rosiel

From the EDTF spec,

Three conformance levels are defined: level 0, level 1, and level 2. [...] An implementation must support all of the features listed for level 0. The vendor must state one of the following levels of support:

  • Level 0 is supported.
  • Level 0 is supported, and in addition the following features of levels 1 and 2 are supported (list features).
  • Level 1 is supported.
  • Level 1 is supported, and in addition the following features of level 2 are supported (list features).
  • Level 2 is supported.

There are some features defined within Level 0 that we do not support:

Date and Time

[dateI][“T”][time][shiftHour]
Date and time with timeshift in hours (only)
Example 3 ‘1985-04-12T23:20:30-04’ refers to the date 1985 April 12th time of day 23:20:30 with time shift of 4 hours behind UTC.

[oops, edited. it seems we do support timeshift when given in hours and minutes]

Time Interval

EDTF Level 0 adopts representations of a time interval where both the start and end are dates: start and end date only; that is, both start and duration, and duration and end, are excluded. Time of day is excluded.

  • Example 1 ‘1964/2008’ is a time interval with calendar year precision, beginning sometime in 1964 and ending sometime in 2008.
  • Example 2 ‘2004-06/2006-08’ is a time interval with calendar month precision, beginning sometime in June 2004 and ending sometime in August of 2006.
  • Example 3 ‘2004-02-01/2005-02-08’ is a time interval with calendar day precision, beginning sometime on February 1, 2004 and ending sometime on February 8, 2005.
  • Example 4 ‘2004-02-01/2005-02’ is a time interval beginning sometime on February 1, 2004 and ending sometime in February 2005. Since the start endpoint precision (day) is different than that of the end endpoint (month) the precision of the time interval at large is undefined.
  • Example 5 ‘2004-02-01/2005’ is a time interval beginning sometime on February 1, 2004 and ending sometime in 2005. The start endpoint has calendar day precision and the end endpoint has calendar year precision. Similar to the previous example, the precision of the time interval at large is undefined.
  • Example 6 ‘2005/2006-02’ is a time interval beginning sometime in 2005 and ending sometime in February 2006.

Until we do, we can't say we support EDTF, even though we also do support some of the formats in levels 1 and 2.

I am changing the documentation for Metadata to describe the particular subset of EDTF that is implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    StaleSubject: Datesrelated to managing dates in Islandora. Consider also using the search and metadata tags.

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions