diff --git a/src/client/components/facet_results/Export.js b/src/client/components/facet_results/Export.js index d493e3b0ec6976b4e613022b70b5e2d67591a48a..14fc6ce4b4f16bd9545bbeb9ee6f80066d6237de 100644 --- a/src/client/components/facet_results/Export.js +++ b/src/client/components/facet_results/Export.js @@ -1,9 +1,7 @@ import React from 'react' import PropTypes from 'prop-types' import { withStyles } from '@material-ui/core/styles' -// import CloudDownloadIcon from '@material-ui/icons/CloudDownload'; import Button from '@material-ui/core/Button' -import { yasguiBaseUrl, yasguiParams } from '../../configs/sampo/GeneralConfig' import querystring from 'querystring' import intl from 'react-intl-universal' @@ -43,7 +41,7 @@ class Export extends React.Component { } render = () => { - const { classes, data, pageType } = this.props + const { classes, data, pageType, yasguiBaseUrl, yasguiParams } = this.props let yasguiUrl = '' const sparqlQuery = pageType === 'facetResults' ? data.paginatedResultsSparqlQuery : this.props.sparqlQuery if (sparqlQuery !== null) { diff --git a/src/client/components/perspectives/sampo/Perspective1.js b/src/client/components/perspectives/sampo/Perspective1.js index 6b9c6c955d9fffe2bef1c420df022b2ad255a6d2..0735397faef368b5ce52b50f6670d6cec632fd37 100644 --- a/src/client/components/perspectives/sampo/Perspective1.js +++ b/src/client/components/perspectives/sampo/Perspective1.js @@ -329,6 +329,8 @@ const Perspective1 = props => { fetchPaginatedResults={props.fetchPaginatedResults} updatePage={props.updatePage} layoutConfig={props.layoutConfig} + yasguiBaseUrl={props.yasguiBaseUrl} + yasguiParams={props.yasguiParams} />} /> </> diff --git a/src/client/components/perspectives/sampo/Perspective2.js b/src/client/components/perspectives/sampo/Perspective2.js index b1565e21cc295a0bb37e0b57b32ac2f10b87bd82..e611098abdc43e005096aa64fc0c07df30aae5c9 100644 --- a/src/client/components/perspectives/sampo/Perspective2.js +++ b/src/client/components/perspectives/sampo/Perspective2.js @@ -47,6 +47,8 @@ const Perspective2 = props => { fetchPaginatedResults={props.fetchPaginatedResults} updatePage={props.updatePage} layoutConfig={props.layoutConfig} + yasguiBaseUrl={props.yasguiBaseUrl} + yasguiParams={props.yasguiParams} />} /> </> diff --git a/src/client/components/perspectives/sampo/Perspective3.js b/src/client/components/perspectives/sampo/Perspective3.js index 4d3cd215e7d9b78111fde1b6ec811ccdbf6eeb58..04b40b62ffd3695c5e1d486a4217849c917381b9 100644 --- a/src/client/components/perspectives/sampo/Perspective3.js +++ b/src/client/components/perspectives/sampo/Perspective3.js @@ -88,6 +88,8 @@ const Perspective3 = props => { fetchPaginatedResults={props.fetchPaginatedResults} updatePage={props.updatePage} layoutConfig={props.layoutConfig} + yasguiBaseUrl={props.yasguiBaseUrl} + yasguiParams={props.yasguiParams} />} /> </> diff --git a/src/client/containers/SemanticPortal.js b/src/client/containers/SemanticPortal.js index 8110c89947ba5d8ca1ec59888be9c5d3bf749aef..4f0ba9b645846e8cffe2b3c10456b385652eaf5f 100644 --- a/src/client/containers/SemanticPortal.js +++ b/src/client/containers/SemanticPortal.js @@ -58,7 +58,9 @@ const { rootUrl, layoutConfig, MAPBOX_ACCESS_TOKEN, - MAPBOX_STYLE + MAPBOX_STYLE, + yasguiBaseUrl, + yasguiParams } = await import(`../configs/${portalID}/GeneralConfig`) // ** Portal configuration end ** @@ -416,6 +418,8 @@ const SemanticPortal = props => { pieChartConfig={pieChartConfig} leafletConfig={leafletConfig} networkConfig={networkConfig} + yasguiBaseUrl={yasguiBaseUrl} + yasguiParams={yasguiParams} /> </Grid> </Grid>