Revision 60925
Added by Konstantina Galouni over 3 years ago
modules/uoa-services-library/trunk/ng-openaire-library/src/app/orcid/orcid.service.ts | ||
---|---|---|
7 | 7 |
import {encode, toUnicode} from "punycode"; |
8 | 8 |
import {Observable} from "rxjs"; |
9 | 9 |
import {properties} from "../../../environments/environment"; |
10 |
import {ConnectHelper} from "../connect/connectHelper"; |
|
10 | 11 |
|
11 | 12 |
@Injectable() |
12 | 13 |
export class OrcidService { |
... | ... | |
50 | 51 |
|
51 | 52 |
saveWork(resultLandingInfo: ResultLandingInfo, pids: string) { |
52 | 53 |
let work = WorkV3_0.resultLandingInfoConvert(resultLandingInfo, null); |
54 |
let portalId: string = ConnectHelper.getCommunityFromDomain(properties.domain); |
|
55 |
let dashboard: string = properties.environment + "_" + properties.dashboard + (portalId? "_" + portalId : ""); |
|
53 | 56 |
let result = { |
57 |
"dashboard": dashboard, |
|
54 | 58 |
"pids": pids.split(","), |
55 | 59 |
"work": work |
56 | 60 |
}; |
Also available in: Unified diff
[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).