From 9e96ecddc6a086cb8e1cde6859d8d980763d1d0e Mon Sep 17 00:00:00 2001 From: "konstantina.galouni" Date: Tue, 20 Apr 2021 14:55:08 +0000 Subject: [PATCH] [Trunk | Library]: orcid.service.ts: In method "saveWork()" added "dashboard" field that is sent and is built by properties.environment and properties.dashboard (to know from which portal comes the claim). git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60925 d315682c-612b-4755-9ff5-7f18f6832af3 --- orcid/orcid.service.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/orcid/orcid.service.ts b/orcid/orcid.service.ts index 53756516..ec349cac 100644 --- a/orcid/orcid.service.ts +++ b/orcid/orcid.service.ts @@ -7,6 +7,7 @@ import {WorkV3_0} from "./orcidWork"; import {encode, toUnicode} from "punycode"; import {Observable} from "rxjs"; import {properties} from "../../../environments/environment"; +import {ConnectHelper} from "../connect/connectHelper"; @Injectable() export class OrcidService { @@ -50,7 +51,10 @@ export class OrcidService { saveWork(resultLandingInfo: ResultLandingInfo, pids: string) { let work = WorkV3_0.resultLandingInfoConvert(resultLandingInfo, null); + let portalId: string = ConnectHelper.getCommunityFromDomain(properties.domain); + let dashboard: string = properties.environment + "_" + properties.dashboard + (portalId? "_" + portalId : ""); let result = { + "dashboard": dashboard, "pids": pids.split(","), "work": work };