diff --git a/src/app/community/community.component.html b/src/app/community/community.component.html index 8f2ad46..b14a160 100644 --- a/src/app/community/community.component.html +++ b/src/app/community/community.component.html @@ -12,19 +12,19 @@
@@ -54,6 +54,21 @@

Most recent publications

+ +
+
+
+
+ Aaltodoc Publication Archive +
+
Aalto University
+
IR Data OpenAIRE 3.0
+ 12469 datasets +
+
+
+
+
diff --git a/src/app/community/community.component.ts b/src/app/community/community.component.ts index 91edb26..181225f 100644 --- a/src/app/community/community.component.ts +++ b/src/app/community/community.component.ts @@ -20,9 +20,10 @@ export class CommunityComponent { public pageTitle = "OpenAIRE" - public res=[]; - public res2=[]; - public res3=[]; + public publications=[]; + public reasearchData=[]; + public software=[]; + public publicationsInfo=[]; constructor ( private route: ActivatedRoute, @@ -52,21 +53,27 @@ export class CommunityComponent { public ngOnInit() { this._communityService.getNumberOfPublications().subscribe( - res => { - this.res = res; - console.log(res); + publications => { + this.publications = publications; + console.log(publications); }); this._communityService.getNumberOfResearchData().subscribe( - res2 => { - this.res2 = res2; - console.log(res2); + reasearchData => { + this.reasearchData = reasearchData; + console.log(reasearchData); }); this._communityService.getNumberOfSoftware().subscribe( - res3 => { - this.res3 = res3; - console.log(res3); + software => { + this.software = software; + console.log(software); + }); + + this._communityService.getPublicationsInfo().subscribe( + publicationsInfo => { + this.publicationsInfo = publicationsInfo; + console.log(publicationsInfo); }); } public ngOnDestroy() { diff --git a/src/app/community/community.service.ts b/src/app/community/community.service.ts index 9c9d3cc..5af3d18 100644 --- a/src/app/community/community.service.ts +++ b/src/app/community/community.service.ts @@ -14,6 +14,13 @@ export class CommunityService { .map(res => res.json()).do(res => {console.log(res)}); } + // Most recent publications + getPublicationsInfo(){ + return this.http.get('http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/publications?fq=communityid exact "egi"&sortBy=resultdateofacceptance,descending&format=json') + .map(res => res.json()).map(res => res.results).do(res => {console.log(res)}); + + } + getNumberOfResearchData() { return this.http.get('http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/datasets/count?format=json&fq=communityid=egi') .map(res => res.json()).do(res => {console.log(res)});