2021-04-01 16:25:15 +02:00
|
|
|
import {Component, OnInit} from '@angular/core';
|
|
|
|
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
2020-11-30 18:04:05 +01:00
|
|
|
import {properties} from "../../../environments/environment";
|
2018-07-27 16:45:08 +02:00
|
|
|
|
|
|
|
@Component({
|
2021-04-01 16:25:15 +02:00
|
|
|
selector: 'openaire-orp',
|
|
|
|
template: `
|
2023-07-13 10:48:23 +02:00
|
|
|
<result-landing type="orp" [communityId]="communityId"></result-landing>
|
2021-04-01 16:25:15 +02:00
|
|
|
`,
|
2018-07-27 16:45:08 +02:00
|
|
|
})
|
|
|
|
|
2021-04-01 16:25:15 +02:00
|
|
|
export class OpenaireOrpComponent implements OnInit {
|
|
|
|
communityId = null;
|
|
|
|
|
|
|
|
constructor() {}
|
|
|
|
|
|
|
|
ngOnInit() {
|
|
|
|
this.communityId = ConnectHelper.getCommunityFromDomain(properties.domain);
|
2020-11-12 16:59:26 +01:00
|
|
|
}
|
2018-07-27 16:45:08 +02:00
|
|
|
}
|