[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
This commit is contained in:
konstantina.galouni 2021-04-20 14:55:08 +00:00
parent 7cd0c4b5bd
commit 9e96ecddc6
1 changed files with 4 additions and 0 deletions

View File

@ -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
};