1
|
import {Component, Input} from '@angular/core';
|
2
|
import {PiwikHelper} from '../../utils/piwikHelper';
|
3
|
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
|
4
|
|
5
|
@Component({
|
6
|
selector: 'openaire-deposit-datasets-result',
|
7
|
template: `
|
8
|
<deposit-datasets-result [piwikSiteId]=piwikSiteId></deposit-datasets-result>
|
9
|
|
10
|
|
11
|
`
|
12
|
})
|
13
|
|
14
|
export class OpenaireDepositDatasetsResultComponent {
|
15
|
piwikSiteId = null;
|
16
|
constructor ( ) {
|
17
|
var communityId = ConnectHelper.getCommunityFromDomain(document.location.hostname);
|
18
|
this.piwikSiteId = PiwikHelper.siteIDs[communityId];
|
19
|
}
|
20
|
|
21
|
}
|