Skip to content
Snippets Groups Projects
Commit 96e62942 authored by esikkala's avatar esikkala
Browse files

Add new conf option: noFilterForRelatedInstances

parent bee27ee4
No related branches found
No related tags found
No related merge requests found
...@@ -215,11 +215,11 @@ export const getByURI = ({ ...@@ -215,11 +215,11 @@ export const getByURI = ({
} else { } else {
({ endpoint, langTag, langTagSecondary } = config) ({ endpoint, langTag, langTagSecondary } = config)
} }
const { properties, relatedInstances } = config.instance const { properties, relatedInstances, noFilterForRelatedInstances = false } = config.instance
let q = instanceQuery let q = instanceQuery
q = q.replace('<PROPERTIES>', properties) q = q.replace('<PROPERTIES>', properties)
q = q.replace('<RELATED_INSTANCES>', relatedInstances) q = q.replace('<RELATED_INSTANCES>', relatedInstances)
if (constraints == null) { if (constraints == null || noFilterForRelatedInstances) {
q = q.replace('<FILTER>', '# no filters') q = q.replace('<FILTER>', '# no filters')
} else { } else {
q = q.replace('<FILTER>', generateConstraintsBlock({ q = q.replace('<FILTER>', generateConstraintsBlock({
......
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