Add managers field in CommunityInfo structure

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@50978 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
sofia.baltzi 2018-02-28 15:49:43 +00:00
parent 52f9b63d0d
commit 611e8801b3
3 changed files with 31 additions and 2 deletions

View File

@ -29,7 +29,6 @@
</div>
</div>
<div>
<div class="uk-card uk-card-default uk-card-small uk-card-body">
<div *ngIf="researchDataTotal != null">
<a [queryParams]=params routerLinkActive="router-link-active" routerLink="/search/find/datasets"><h3 class="uk-card-title">{{researchDataTotal}}</h3>
@ -38,7 +37,6 @@
</div>
</div>
<div>
<div class="uk-card uk-card-default uk-card-small uk-card-body">
<div *ngIf="softwareTotal != null">
<a [queryParams]=params routerLinkActive="router-link-active" routerLink="/search/find/software"><h3 class="uk-card-title">{{softwareTotal}}</h3>
@ -46,6 +44,30 @@
</div>
</div>
</div>
<!-- <div>
<div class="uk-card uk-card-default uk-card-small uk-card-body">
<div *ngIf="projectTotal != null">
<a [queryParams]=params routerLinkActive="router-link-active" routerLink="/search/find/projects"><h3 class="uk-card-title">{{projectTotal}}</h3>
<p>projects</p></a>
</div>
</div>
</div>
<div>
<div class="uk-card uk-card-default uk-card-small uk-card-body">
<div *ngIf="organizationTotal != null">
<a [queryParams]=params routerLinkActive="router-link-active" routerLink="/search/find/organizations"><h3 class="uk-card-title">{{organizationTotals}}</h3>
<p>organizations</p></a>
</div>
</div>
</div>
<div>
<div class="uk-card uk-card-default uk-card-small uk-card-body">
<div *ngIf="dataproviderTotal != null">
<a [queryParams]=params routerLinkActive="router-link-active" routerLink="/search/find/dataproviders"><h3 class="uk-card-title">{{dataproviderTotal}}</h3>
<p>content providers</p></a>
</div>
</div>
</div> -->
</div>
<div class="uk-grid-small uk-margin-medium uk-grid" uk-grid="">

View File

@ -18,6 +18,12 @@ export class CommunityService {
.map(res => <any> res.json()).map(res => res.total).do(res => {console.log(res)});
}
// getTotal()
//
// countResults(url:string): string {
//
// }
getResults(url: string) {
return this.http.get(url).map(res => <any> res.json()).map(res => this.parseResults(res['results']));
}

View File

@ -5,4 +5,5 @@ export class CommunityInfo {
queryId: string;
logoUrl: string;
description: string;
managers: string[];
}