diff --git a/src/app/community/community.component.ts b/src/app/community/community.component.ts index 177cae9..e342bd0 100644 --- a/src/app/community/community.component.ts +++ b/src/app/community/community.component.ts @@ -66,6 +66,7 @@ export class CommunityComponent { } }); + this._communityService.getNumberOfPublications().subscribe( publicationTotal => { this.publicationTotal = publicationTotal; @@ -75,33 +76,37 @@ export class CommunityComponent { this._communityService.getNumberOfResearchData().subscribe( researchDataTotal => { this.researchDataTotal = researchDataTotal; - //console.log(reasearchData); }); this._communityService.getNumberOfSoftware().subscribe( softwareTotal => { this.softwareTotal = softwareTotal; - //console.log(software); }); this._communityService.getResults('http://beta.services.openaire.eu:8480/search/rest/v2/api/publications?fq=communityid%20exact%20%22egi%22&sortBy=resultdateofacceptance,descending&format=json&size=5').subscribe( publicationResults => { this.publicationResults = publicationResults; - //console.log(publicationResults); }); this._communityService.getResults('http://beta.services.openaire.eu:8480/search/rest/v2/api/datasets?fq=communityid%20exact%20%22egi%22&sortBy=resultdateofacceptance,descending&format=json&size=5').subscribe( researchDataResults => { this.researchDataResults = researchDataResults; - console.log(researchDataResults); }); this._communityService.getResults('http://beta.services.openaire.eu:8480/search/rest/v2/api/software?fq=communityid%20exact%20%22egi%22&sortBy=resultdateofacceptance,descending&format=json&size=5').subscribe( softwareResults => { this.softwareResults = softwareResults; - //console.log(softwareResults); }); + + this.route.queryParams + .subscribe(params => { + let communityId = params['communityId']; + console.log(communityId); + }); + } + + public ngOnDestroy() { if(this.piwiksub){ this.piwiksub.unsubscribe();