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:
parent
10875b7887
commit
ccfa9f5ab9
|
@ -66,6 +66,7 @@ export class CommunityComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this._communityService.getNumberOfPublications().subscribe(
|
this._communityService.getNumberOfPublications().subscribe(
|
||||||
publicationTotal => {
|
publicationTotal => {
|
||||||
this.publicationTotal = publicationTotal;
|
this.publicationTotal = publicationTotal;
|
||||||
|
@ -75,33 +76,37 @@ export class CommunityComponent {
|
||||||
this._communityService.getNumberOfResearchData().subscribe(
|
this._communityService.getNumberOfResearchData().subscribe(
|
||||||
researchDataTotal => {
|
researchDataTotal => {
|
||||||
this.researchDataTotal = researchDataTotal;
|
this.researchDataTotal = researchDataTotal;
|
||||||
//console.log(reasearchData);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
this._communityService.getNumberOfSoftware().subscribe(
|
this._communityService.getNumberOfSoftware().subscribe(
|
||||||
softwareTotal => {
|
softwareTotal => {
|
||||||
this.softwareTotal = 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(
|
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 => {
|
publicationResults => {
|
||||||
this.publicationResults = 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(
|
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 => {
|
researchDataResults => {
|
||||||
this.researchDataResults = 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(
|
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 => {
|
softwareResults => {
|
||||||
this.softwareResults = softwareResults;
|
this.softwareResults = softwareResults;
|
||||||
//console.log(softwareResults);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
this.route.queryParams
|
||||||
|
.subscribe(params => {
|
||||||
|
let communityId = params['communityId'];
|
||||||
|
console.log(communityId);
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public ngOnDestroy() {
|
public ngOnDestroy() {
|
||||||
if(this.piwiksub){
|
if(this.piwiksub){
|
||||||
this.piwiksub.unsubscribe();
|
this.piwiksub.unsubscribe();
|
||||||
|
|
Loading…
Reference in New Issue