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',
|
7
|
template: `
|
8
|
<deposit-datasets [piwikSiteId]=piwikSiteId>
|
9
|
|
10
|
</deposit-datasets>
|
11
|
`
|
12
|
})
|
13
|
|
14
|
export class OpenaireDepositDatasetsComponent {
|
15
|
piwikSiteId = null;
|
16
|
constructor ( ) {
|
17
|
var communityId = ConnectHelper.getCommunityFromDomain(document.location.hostname);
|
18
|
this.piwikSiteId = PiwikHelper.siteIDs[communityId];
|
19
|
}
|
20
|
|
21
|
}
|