Project

General

Profile

« Previous | Next » 

Revision 54368

Merged trunk changes -r 53029:54367 into my branch

Change svn:externals to elixir branch of the library

View differences:

searchSoftware.component.ts
9 9

  
10 10
    <search-software
11 11
    openaireLink="https://beta.explore.openaire.eu/search/find/software"
12
                [(connectCommunityId)]=connectCommunityId>
12
                [(connectCommunityId)]=connectCommunityId  [piwikSiteId]="piwikSiteId">
13 13
    </search-software>
14 14
    `
15 15
})
......
22 22
  }
23 23
  ngOnInit() {
24 24
    var communityId = ConnectHelper.getCommunityFromDomain(document.location.hostname);
25
    this.piwikSiteId = PiwikHelper.siteIDs[communityId];
26 25
    if(communityId){
27
       this.connectCommunityId = communityId
26
      this.connectCommunityId = communityId
27
      this.piwikSiteId = PiwikHelper.siteIDs[this.connectCommunityId];
28 28
    }else{
29 29
      this.route.queryParams.subscribe(data => {
30

  
31 30
        if(data['communityId'] && data['communityId']!=""){
32
           this.connectCommunityId = data['communityId'];
31
          this.connectCommunityId = data['communityId'];
32
          this.piwikSiteId = PiwikHelper.siteIDs[this.connectCommunityId];
33 33
        }
34 34
      });
35 35
    }

Also available in: Unified diff