Get query param for communityId

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@50941 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
sofia.baltzi 2018-02-27 11:37:18 +00:00
parent 10875b7887
commit ccfa9f5ab9
1 changed files with 10 additions and 5 deletions

View File

@ -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();