From 116c7fa0c31811cde1508ac70d8ae6de58edd66a Mon Sep 17 00:00:00 2001 From: martindholmes Date: Wed, 8 Jun 2022 17:00:00 -0700 Subject: [PATCH] Beginning new work on timeline pre-calc for issue #50. --- xsl/functions_module.xsl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/xsl/functions_module.xsl b/xsl/functions_module.xsl index 6c99364..2a26ec5 100644 --- a/xsl/functions_module.xsl +++ b/xsl/functions_module.xsl @@ -273,6 +273,23 @@ + + hcmc:getFeatureIdsForTimelinePoint + is passed a timeline point and retrieves the ids of all features which have a dateTime range which overlaps with + the point. This is used to construct a richer timeline structure which obviates the need to check through all + features in the JavaScript to look for time matches every time the timeline moves. + A timeline point in the form of a slash-delimited range. + A sequence of zero or more TEI place elements which may or may not + have timing information in the form of date elements in its location/desc. + A sequence of feature ids. + + + + + + + + hcmc:expandDateTime receives a date or datetime string and expands it to a complete datetime