diff --git a/productMods/config/listViewConfig-hasAttendeeRole.xml b/productMods/config/listViewConfig-hasAttendeeRole.xml index 94a33f72..39ce6996 100644 --- a/productMods/config/listViewConfig-hasAttendeeRole.xml +++ b/productMods/config/listViewConfig-hasAttendeeRole.xml @@ -19,7 +19,8 @@ ?event2 ?event2Label ?series ?seriesLabel ?event3 - ?dateTime + ?dateTimeStart + ?dateTimeEnd WHERE { @@ -88,7 +89,10 @@ OPTIONAL { ?role vivo:dateTimeInterval ?dateTimeInterval OPTIONAL { ?dateTimeInterval vivo:start ?dateTimeStartValue . - ?dateTimeStartValue vivo:dateTime ?dateTime + ?dateTimeStartValue vivo:dateTime ?dateTimeStart + } + OPTIONAL { ?dateTimeInterval vivo:end ?dateTimeEndValue . + ?dateTimeEndValue vivo:dateTime ?dateTimeEnd } } @@ -331,6 +335,20 @@ ?dateTimeStartValue vivo:dateTime ?dateTimeStart } - + + + PREFIX vivo: <http://vivoweb.org/ontology/core#> + CONSTRUCT { + ?subject ?property ?role . + ?role vivo:dateTimeInterval ?dateTimeInterval . + ?dateTimeInterval vivo:end ?dateTimeEndValue . + ?dateTimeEndValue vivo:dateTime ?dateTimeEnd + } WHERE { + ?subject ?property ?role . + ?role vivo:dateTimeInterval ?dateTimeInterval . + ?dateTimeInterval vivo:end ?dateTimeEndValue . + ?dateTimeEndValue vivo:dateTime ?dateTimeEnd + } + diff --git a/productMods/templates/freemarker/body/partials/individual/propStatement-hasAttendeeRole.ftl b/productMods/templates/freemarker/body/partials/individual/propStatement-hasAttendeeRole.ftl index 8ffc351e..732b68a6 100644 --- a/productMods/templates/freemarker/body/partials/individual/propStatement-hasAttendeeRole.ftl +++ b/productMods/templates/freemarker/body/partials/individual/propStatement-hasAttendeeRole.ftl @@ -24,7 +24,7 @@ <#local dateTime> - <@dt.yearSpan statement.dateTime! /> + <@dt.yearIntervalSpan "${statement.dateTimeStart!}" "${statement.dateTimeEnd!}" /> <#local attendedEvent>