-
Notifications
You must be signed in to change notification settings - Fork 30
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
[BUG] EDTF date sets in multivalued fields are rendered into human-readable text incorrectly. #95
Comments
Giving a quick look, thinking that controlled_access_terms/src/Plugin/Field/FieldFormatter/EDTFFormatter.php Lines 161 to 193 in 7f33294
... probably something like adding a $formatted_dates = []; just before that |
Threw together #96 as a theoretical fix. |
What steps does it take to reproduce the issue?
Enable date sets in an EDTF field (admittedly, this is "not recommended")
Enable multiple values in that field
Add multiple date sets to see how they render.
When does this issue occur?
When looking at the node
Which page does it occur on?
a node
What happens?
the human-readable version of each date set includes data from other "deltas" (i.e. other values in the multivalued field)
In my example the first two values in the multivalued field are:
[1667,1668,1670..1672] which renders as "one of the dates: 1667, 1668, 1670 until 1672"
[..1760-12-03] which renders as "one of the dates: 1667, 1668, 1670 until 1672, 1760-12-03 or some earlier date"
To whom does it occur (anonymous visitor, editor, administrator)?
Everyone can see it.
What did you expect to happen?
the values to be rendered to text independently
Which version of Islandora are you using?
2
more meaningfully, the starter site
Any related open or closed issues to this bug report?
not that i know of
Screenshots:
The text was updated successfully, but these errors were encountered: