Project

General

Profile

1
import {Component, Input} from '@angular/core';
2
import {Observable}       from 'rxjs/Observable';
3
import {PiwikHelper} from '../../utils/piwikHelper';
4
import {ConnectHelper} from '../../openaireLibrary/connect/connectHelper';
5

    
6

    
7
@Component({
8
    selector: 'openaire-deposit-by-subject-result',
9
    template:`<deposit-by-subject-result [piwikSiteId]=piwikSiteId></deposit-by-subject-result>`
10
})
11

    
12
export class OpenaireDepositBySubjectResultComponent {
13
  piwikSiteId = null;
14
  constructor (  ) {
15
    var communityId = ConnectHelper.getCommunityFromDomain(document.location.hostname);
16
    this.piwikSiteId = PiwikHelper.siteIDs[communityId];
17
  }
18

    
19
}
(2-2/9)