Revision 50449
Added by Sofia Baltzi almost 7 years ago
modules/uoa-connect-portal/trunk/src/app/community/community.component.html | ||
---|---|---|
18 | 18 |
</div> |
19 | 19 |
<div> |
20 | 20 |
<div class="uk-card uk-card-default uk-card-small uk-card-body"> |
21 |
<a><h3 class="uk-card-title">1397</h3>
|
|
21 |
<a><h3 class="uk-card-title">{{res2.total}}</h3>
|
|
22 | 22 |
<p>research data</p></a> |
23 | 23 |
</div> |
24 | 24 |
</div> |
modules/uoa-connect-portal/trunk/src/app/community/community.service.ts | ||
---|---|---|
6 | 6 |
@Injectable() |
7 | 7 |
export class CommunityService { |
8 | 8 |
|
9 |
constructor(private http:Http) { |
|
9 |
constructor(private http:Http) { |
|
10 |
} |
|
11 |
|
|
12 |
getNumberOfPublications() { |
|
13 |
return this.http.get('http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/publications/count?format=json') |
|
14 |
.map(res => <any> res.json()).do(res => {console.log(res)}); |
|
10 | 15 |
} |
11 | 16 |
|
12 |
getNumberOfPublications() { |
|
13 |
return this.http.get('http://rudie.di.uoa.gr:8080/dnet-functionality-services-2.0.0-SNAPSHOT/rest/v2/api/publications/count?format=json').map(res => <any> res.json()).do(res => {console.log(res)}); |
|
17 |
getNumberOfResearchData() { |
|
18 |
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') |
|
19 |
.map(res => <any> res.json()).do(res => {console.log(res)}); |
|
20 |
} |
|
14 | 21 |
} |
15 |
|
|
16 |
} |
modules/uoa-connect-portal/trunk/src/app/community/community.component.ts | ||
---|---|---|
21 | 21 |
public pageTitle = "OpenAIRE" |
22 | 22 |
|
23 | 23 |
public res=[]; |
24 |
public res2=[]; |
|
24 | 25 |
|
25 | 26 |
constructor ( |
26 | 27 |
private route: ActivatedRoute, |
... | ... | |
54 | 55 |
this.res = res; |
55 | 56 |
console.log(res); |
56 | 57 |
}); |
58 |
this._communityService.getNumberOfResearchData().subscribe( |
|
59 |
res2 => { |
|
60 |
this.res2 = res2; |
|
61 |
console.log(res2); |
|
62 |
}); |
|
57 | 63 |
} |
58 | 64 |
public ngOnDestroy() { |
59 | 65 |
if(this.piwiksub){ |
Also available in: Unified diff
Add getNumberOfResearchData