Open kylehuynh205 opened 6 months ago
PHP doesn't accept the format of 1783 to 1784
so we can use rewrites to format as accordingly
Content datasource: Date Created
{{ field_edtf_date_created|split(' to ')[0] }}
Date Created
{{ field_edtf_date_created|split(' to ')[1] }}
Start Date
is selected as Content datasource: Date Created
and the End Date
is selected as Content datasource: Date Created
(the Date Created
field closes to the bottom of the list would be the one that was recently added and should be the one selected as the End Date)Add the fixes to Standard build with the PR: https://github.com/digitalutsc/islandora-lite-site/pull/27
@HyphenHook , There is similar issue: https://gundagunde.digital.utsc.utoronto.ca/collection/1/timeline
Extend the solution (from " to ") for "Until"
{{ field_edtf_date_created|split(' to ')[0] }}
in rewrite to {{ field_edtf_date_created|replace({' to ': '@', ' until ': '@'})|split('@')[0] }}
(In the first date field){{ field_edtf_date_created|split(' to ')[1] }}
in rewrite to {{ field_edtf_date_created|replace({' to ': '@', ' until ': '@'})|split('@')[1] }}
(In the second date field)Additional issues arise as more metadata with dates that are not properly formatted appear.
About
To resovlve
1783 to 1784