From e0be0f421c7f95f825d9cb6253f1985d3901a1c9 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Fri, 2 Dec 2016 14:44:39 +0000 Subject: [PATCH] fix link in paging of compatible and entity registries PAges git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-portal/trunk@44778 d315682c-612b-4755-9ff5-7f18f6832af3 --- .../dataProviders/compatibleDataProviders.component.ts | 2 +- .../app/searchPages/dataProviders/entityRegistries.component.ts | 2 +- portal-2/src/app/utils/properties/openaireProperties.ts | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/portal-2/src/app/searchPages/dataProviders/compatibleDataProviders.component.ts b/portal-2/src/app/searchPages/dataProviders/compatibleDataProviders.component.ts index f6f06706..ef53f42c 100644 --- a/portal-2/src/app/searchPages/dataProviders/compatibleDataProviders.component.ts +++ b/portal-2/src/app/searchPages/dataProviders/compatibleDataProviders.component.ts @@ -51,7 +51,7 @@ export class SearchCompatibleDataprovidersComponent { constructor (private route: ActivatedRoute, private _searchDataprovidersService: SearchDataprovidersService ) { var errorCodes:ErrorCodes = new ErrorCodes(); this.searchUtils.status =errorCodes.LOADING; - this.baseUrl = OpenaireProperties.getLinkToSearchDataProviders(); + this.baseUrl = OpenaireProperties.searchLinkToCompatibleDataProviders; for(var i = 0; i < this._prefixQueryFields.length; i++ ){ for(var j =0; j < this._prefixQueryFields[i].values.length; j++){ this._prefixQuery+="&" + this._prefixQueryFields[i].field + "=" diff --git a/portal-2/src/app/searchPages/dataProviders/entityRegistries.component.ts b/portal-2/src/app/searchPages/dataProviders/entityRegistries.component.ts index b4f07bcc..26a67bc9 100644 --- a/portal-2/src/app/searchPages/dataProviders/entityRegistries.component.ts +++ b/portal-2/src/app/searchPages/dataProviders/entityRegistries.component.ts @@ -50,7 +50,7 @@ export class SearchEntityRegistriesComponent { constructor (private route: ActivatedRoute, private _searchDataprovidersService: SearchDataprovidersService ) { var errorCodes:ErrorCodes = new ErrorCodes(); this.searchUtils.status =errorCodes.LOADING; - this.baseUrl = OpenaireProperties.getLinkToSearchDataProviders(); + this.baseUrl = OpenaireProperties.searchLinkToEntityRegistriesDataProviders; for(var i = 0; i < this._prefixQueryFields.length; i++ ){ for(var j =0; j < this._prefixQueryFields[i].values.length; j++){ this._prefixQuery+="&" + this._prefixQueryFields[i].field + "=" diff --git a/portal-2/src/app/utils/properties/openaireProperties.ts b/portal-2/src/app/utils/properties/openaireProperties.ts index 42b4a38b..1220d9ab 100644 --- a/portal-2/src/app/utils/properties/openaireProperties.ts +++ b/portal-2/src/app/utils/properties/openaireProperties.ts @@ -14,6 +14,8 @@ export class OpenaireProperties { private static searchLinkToDatasets = "search/find/datasets"; private static searchLinkToOrganizations = "search/find/organizations"; private static searchLinkToPeople = "search/find/people"; + public static searchLinkToCompatibleDataProviders = "search/data-providers"; + public static searchLinkToEntityRegistriesDataProviders = "search/entity-registries"; //Advanced Search pages public static searchLinkToAdvancedPublications = "search/advanced/publications"; public static searchLinkToAdvancedProjects = "search/advanced/projects";