Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
Nos Hs2023
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Språksamlingane
stadnamn
Nos Hs2023
Commits
514af44e
Commit
514af44e
authored
4 years ago
by
esikkala
Browse files
Options
Downloads
Patches
Plain Diff
Timespan filter: update selections
parent
d6d4be8b
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/server/sparql/Filters.js
+6
-2
6 additions, 2 deletions
src/server/sparql/Filters.js
with
6 additions
and
2 deletions
src/server/sparql/Filters.js
+
6
−
2
View file @
514af44e
...
...
@@ -168,9 +168,13 @@ const generateTimespanFilter = ({
})
=>
{
const
facetConfig
=
backendSearchConfig
[
facetClass
].
facets
[
facetID
]
const
{
start
,
end
}
=
values
cons
t
selectionStart
=
start
cons
t
selectionEnd
=
end
le
t
selectionStart
=
start
le
t
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 .
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment