Skip to content
Snippets Groups Projects
Commit 514af44e authored by esikkala's avatar esikkala
Browse files

Timespan filter: update selections

parent d6d4be8b
No related branches found
No related tags found
No related merge requests found
......@@ -168,9 +168,13 @@ const generateTimespanFilter = ({
}) => {
const facetConfig = backendSearchConfig[facetClass].facets[facetID]
const { start, end } = values
const selectionStart = start
const selectionEnd = end
let selectionStart = start
let selectionEnd = end
const dataType = has(facetConfig, 'dataType') ? facetConfig.dataType : 'xsd:date'
if (dataType === 'xsd:dateTime') {
selectionStart = `${selectionStart}T00:00:00Z`
selectionEnd = `${selectionEnd}T00:00:00Z`
}
// return `
// ?${filterTarget} ${facetConfig.predicate} ?timespan .
// ?timespan ${facetConfig.startProperty} ?start .
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment