From cd7da4cc3be1ccdbf7929c81751b815d040d4187 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Wed, 13 Feb 2019 11:39:41 +0000 Subject: [PATCH] [Library] Claims: fix id field from orcid results git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@54766 d315682c-612b-4755-9ff5-7f18f6832af3 --- claims/claim-utils/service/searchOrcid.service.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/claims/claim-utils/service/searchOrcid.service.ts b/claims/claim-utils/service/searchOrcid.service.ts index cfa8faac..4eca31b5 100644 --- a/claims/claim-utils/service/searchOrcid.service.ts +++ b/claims/claim-utils/service/searchOrcid.service.ts @@ -61,7 +61,7 @@ export class SearchOrcidService { return this.http.get(url, { headers: headers }) .map(res => res.json()['group']) .do(res => console.log(res)) - .map(request => (parse?this.parse(request):request)); + .map(request => (parse?this.parse(id, request):request)); //.map(res => res['orcid-work']); } @@ -128,7 +128,7 @@ export class SearchOrcidService { } return ret; } - parse(response):ClaimResult[]{ + parse(authorId, response):ClaimResult[]{ var results:ClaimResult[] = []; for(var i=0; i