From b3ea3153939e2ba40db9381f80c9ec8b1b15a030 Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Wed, 12 May 2021 15:00:19 +0000 Subject: [PATCH] [Trunk | Library]: dataProvider.service.ts & searchDataproviders.service.ts: [Bug fix] #6678 ticket - In order to get "organizations related to a datasource" (at most one), parse rels.rel.to.class == "isProvidedBy" (instead of rels.rel.to.class == "provides"). git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60994 d315682c-612b-4755-9ff5-7f18f6832af3 --- landingPages/dataProvider/dataProvider.service.ts | 2 +- services/searchDataproviders.service.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/landingPages/dataProvider/dataProvider.service.ts b/landingPages/dataProvider/dataProvider.service.ts index 85b91614..44bbe676 100644 --- a/landingPages/dataProvider/dataProvider.service.ts +++ b/landingPages/dataProvider/dataProvider.service.ts @@ -219,7 +219,7 @@ export class DataProviderService { for(let i=0; i(); diff --git a/services/searchDataproviders.service.ts b/services/searchDataproviders.service.ts index 17cc08c6..385cf52c 100644 --- a/services/searchDataproviders.service.ts +++ b/services/searchDataproviders.service.ts @@ -390,7 +390,7 @@ export class SearchDataprovidersService { let relation = Array.isArray(resData['rels']['rel']) ? resData['rels']['rel'][i] : resData['rels']['rel']; if(relation.hasOwnProperty("to")) { - if(relation['to'].class == "provides" && relation['to'].type == "organization") { + if(relation['to'].class == "isProvidedBy" && relation['to'].type == "organization") { if(getOrganizations) { let item: {"name":string, "id":string} = {"name": "", "id": ""}; //item['name'] = relation.legalname;