diff --git a/landingPages/dataProvider/dataProvider.service.ts b/landingPages/dataProvider/dataProvider.service.ts index a175cad7..3539b292 100644 --- a/landingPages/dataProvider/dataProvider.service.ts +++ b/landingPages/dataProvider/dataProvider.service.ts @@ -37,7 +37,9 @@ export class DataProviderService { let headers = new Headers({'Content-Type': 'application/json', 'accept': 'application/json'}); let options = new RequestOptions({headers: headers}); - return this.http.post("http://beta.services.openaire.eu:8080/openaire/ds/search/0/1?requestSortBy=id&order=ASCENDING", JSON.stringify({ "id": original_id }), options) + let page: number = 0; + let size: number = 1; + return this.http.post(properties.datasourcesAPI+page+"/"+size+"?requestSortBy=id&order=ASCENDING", JSON.stringify({ "id": original_id }), options) .map(res => res.json()) .map(res => res['datasourceInfo']) .map(res => this.parseDataproviderAggregationStatus(res)); diff --git a/utils/properties/env-properties.ts b/utils/properties/env-properties.ts index f4bfb137..4dac2e45 100644 --- a/utils/properties/env-properties.ts +++ b/utils/properties/env-properties.ts @@ -84,6 +84,7 @@ export class EnvProperties { communityAPI; communitiesAPI; + datasourcesAPI; miningBackendURL; csvLimit: number;