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