Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Validate date intervals for EDTF #123

Open
AronNovak opened this issue Jun 13, 2024 · 0 comments
Open

[FEATURE] Validate date intervals for EDTF #123

AronNovak opened this issue Jun 13, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@AronNovak
Copy link

Overview of feature request

Add functionality to validate that in EDTF intervals, the start date is sooner than the end date within the EDTFUtils class.

What kind of user is the feature intended for?

Developers and Collections Managers who work with Extended Date Time Format (EDTF) dates and need to ensure accurate date intervals.

What inspired the request?

The need to ensure data integrity and logical consistency in date intervals. Users should be confident that date intervals are correctly formatted, with the start date always preceding the end date.

What existing behavior do you want changed?

The current validate function in the EDTFUtils class does not check that for intervals, the start date is sooner than the end date. This can lead to incorrect data representation and potential logical errors in date-related operations.

Any brand new behavior do you want to add to Islandora?

Yes, introduce a check within the validate function to compare the start and end dates of an interval. If the start date is later than the end date, an appropriate error message should be returned.

Any related open or closed issues to this feature request?

No known related issues at this time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants