Add and parse type field in CommunityInfo

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@51511 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
sofia.baltzi 2018-03-26 14:13:28 +00:00
parent 2248346582
commit f4c10e12c0
3 changed files with 17 additions and 0 deletions

View File

@ -34,6 +34,10 @@ export class CommunitiesService {
result['description'] = resData[0].description;
result['date'] = resData[0].creationDate;
if (resData[0].type != null) {
result['type'] = resData[0].type;
}
if(resData[0].managers != null) {
if(result['managers'] == undefined) {
result['managers'] = new Array<string>();
@ -71,6 +75,10 @@ export class CommunitiesService {
result['description'] = resData.description;
result['date'] = resData.creationDate;
if (resData.type != null) {
result['type'] = resData.type;
}
if(resData.managers != null) {
if(result['managers'] == undefined) {
result['managers'] = new Array<string>();

View File

@ -52,6 +52,10 @@ export class CommunityService {
community['description'] = resData[0].description;
community['date'] = resData[0].creationDate;
if (resData[0].type != null) {
community['type'] = resData[0].type;
}
if(resData[0].managers != null) {
if(community['managers'] == undefined) {
community['managers'] = new Array<string>();
@ -90,6 +94,10 @@ export class CommunityService {
community['description'] = resData.description;
community['date'] = resData.creationDate;
if (resData.type != null) {
community['type'] = resData.type;
}
if(resData.managers != null) {
if(community['managers'] == undefined) {
community['managers'] = new Array<string>();

View File

@ -3,6 +3,7 @@ export class CommunityInfo {
shortTitle:string;
communityId: string;
queryId: string;
type: string;
logoUrl: string;
description: string;
managers: string[];