Skip to content

[BUG] EDTF formatter not handling unspecified years/months properly #133

Closed
@bondjimbond

Description

@bondjimbond

What steps does it take to reproduce the issue?

In the Date Issued field, enter some EDTF-valid dates with "unspecified" values. Rendered results are misleading and not clear. Use the sample dates below.

Sample dates:

  • XXXX-XX-31: renders as "unspecified year and month in XXXX-31"
    • Month is lost altogether
    • Language is extremely unclear and confusing; should be "Day 31 in unspecified year and month" or similar
  • XXXX-12-XX: renders as "unspecified year and day in XXXX-12"
    • Again, language extremely unclear
    • Should be something like "Unspecified year and day in December" or "in month 12" depending on config
  • 156X-12-25: renders as "unspecified year in 156X-12-25"
    • Awkward construction, doesn't quite make sense
  • 2004-%06-11: renders as "2004-06-11 (month uncertain; month approximate)"
    • Only one of these uncertain or approximate tags is needed
  • 202X: Renders as "unspecified year in 202X"
    • Ideally would render as "unspecified year in 2020s"
  • 20XX: Renders as "unspecified decade in 20XX"
    • Ideally would render as "unspecified decade in 2000s"
  • When does this issue occur?

Most types of date where uncertainty is indicated.

  • Which page does it occur on?

Repository Item nodes.

  • To whom does it occur (anonymous visitor, editor, administrator)?

All users.

  • What did you expect to happen?

See rendering descriptions under Steps.

Which version of Islandora are you using?

HEAD

Any related open or closed issues to this bug report?

None

Screenshots:

Screenshot 2024-09-18 at 10 06 44 AM
Screenshot 2024-09-18 at 10 07 09 AM

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions