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:
parent
2248346582
commit
f4c10e12c0
|
@ -34,6 +34,10 @@ export class CommunitiesService {
|
||||||
result['description'] = resData[0].description;
|
result['description'] = resData[0].description;
|
||||||
result['date'] = resData[0].creationDate;
|
result['date'] = resData[0].creationDate;
|
||||||
|
|
||||||
|
if (resData[0].type != null) {
|
||||||
|
result['type'] = resData[0].type;
|
||||||
|
}
|
||||||
|
|
||||||
if(resData[0].managers != null) {
|
if(resData[0].managers != null) {
|
||||||
if(result['managers'] == undefined) {
|
if(result['managers'] == undefined) {
|
||||||
result['managers'] = new Array<string>();
|
result['managers'] = new Array<string>();
|
||||||
|
@ -71,6 +75,10 @@ export class CommunitiesService {
|
||||||
result['description'] = resData.description;
|
result['description'] = resData.description;
|
||||||
result['date'] = resData.creationDate;
|
result['date'] = resData.creationDate;
|
||||||
|
|
||||||
|
if (resData.type != null) {
|
||||||
|
result['type'] = resData.type;
|
||||||
|
}
|
||||||
|
|
||||||
if(resData.managers != null) {
|
if(resData.managers != null) {
|
||||||
if(result['managers'] == undefined) {
|
if(result['managers'] == undefined) {
|
||||||
result['managers'] = new Array<string>();
|
result['managers'] = new Array<string>();
|
||||||
|
|
|
@ -52,6 +52,10 @@ export class CommunityService {
|
||||||
community['description'] = resData[0].description;
|
community['description'] = resData[0].description;
|
||||||
community['date'] = resData[0].creationDate;
|
community['date'] = resData[0].creationDate;
|
||||||
|
|
||||||
|
if (resData[0].type != null) {
|
||||||
|
community['type'] = resData[0].type;
|
||||||
|
}
|
||||||
|
|
||||||
if(resData[0].managers != null) {
|
if(resData[0].managers != null) {
|
||||||
if(community['managers'] == undefined) {
|
if(community['managers'] == undefined) {
|
||||||
community['managers'] = new Array<string>();
|
community['managers'] = new Array<string>();
|
||||||
|
@ -90,6 +94,10 @@ export class CommunityService {
|
||||||
community['description'] = resData.description;
|
community['description'] = resData.description;
|
||||||
community['date'] = resData.creationDate;
|
community['date'] = resData.creationDate;
|
||||||
|
|
||||||
|
if (resData.type != null) {
|
||||||
|
community['type'] = resData.type;
|
||||||
|
}
|
||||||
|
|
||||||
if(resData.managers != null) {
|
if(resData.managers != null) {
|
||||||
if(community['managers'] == undefined) {
|
if(community['managers'] == undefined) {
|
||||||
community['managers'] = new Array<string>();
|
community['managers'] = new Array<string>();
|
||||||
|
|
|
@ -3,6 +3,7 @@ export class CommunityInfo {
|
||||||
shortTitle:string;
|
shortTitle:string;
|
||||||
communityId: string;
|
communityId: string;
|
||||||
queryId: string;
|
queryId: string;
|
||||||
|
type: string;
|
||||||
logoUrl: string;
|
logoUrl: string;
|
||||||
description: string;
|
description: string;
|
||||||
managers: string[];
|
managers: string[];
|
||||||
|
|
Loading…
Reference in New Issue