Closed fosterlynn closed 1 year ago
This is related to #41, where we need to create a taxonomy for dates. Should I assume that it should be XOR between hasPointInTime
and hasBeginning
?
Should I assume that it should be XOR between hasPointInTime and hasBeginning?
Sure, it's as good as anything right now. Or maybe safer to not assume XOR, just take hasPointInTime, else hasBeginning, else hasEnd? Just for reporting.
Logic I'm thinking about using:
const times = [e.hasPointInTime, e.hasBeginning, e.hasEnd, e.created];
const orderingTime = times.find((t) => t && t != '' && t != null);
It returns the first value that actually exists.
Looks good to me!
... instead of create date. We'll need to do a bit of logic to get one event date per event...