Add queryId field

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@50964 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
sofia.baltzi 2018-02-28 10:06:37 +00:00
parent 0c58b059c7
commit 2faf70e764
3 changed files with 6 additions and 1 deletions

View File

@ -32,12 +32,14 @@ export class CommunitiesService {
result['title'] = resData[0].name;
result['shortTitle'] = resData[0].shortName;
result['communityId'] = resData[0].id;
result['queryId'] = resData[0].queryId;
result['logoUrl'] = resData[0].logoUrl;
result['description'] = resData[0].description;
} else {
result['title'] = resData.name;
result['shortTitle'] = resData.shortName;
result['communityId'] = resData.id;
result['queryId'] = resData.queryId;
result['logoUrl'] = resData.logoUrl;
result['description'] = resData.description;
}
@ -68,6 +70,7 @@ export class CommunitiesService {
result['title'] = resData[0].name;
result['shortTitle'] = resData[0].shortName;
result['communityId'] = resData[0].id;
result['queryId'] = resData[0].queryId;
result['logoUrl'] = resData[0].logoUrl;
result['description'] = resData[0].description;
@ -78,6 +81,7 @@ export class CommunitiesService {
result['title'] = resData.name;
result['shortTitle'] = resData.shortName;
result['communityId'] = resData.id;
result['queryId'] = resData.queryId;
result['logoUrl'] = resData.logoUrl;
result['description'] = resData.description;
}

View File

@ -110,7 +110,7 @@ export class CommunityComponent {
this._communitiesService.getCommunity(this.communityId,'https://dev-openaire.d4science.org/openaire/community/communities').subscribe (
communityInfo => {
this.communityInfo = communityInfo;
//console.log(communityInfo);
console.log(communityInfo);
});
}

View File

@ -2,6 +2,7 @@ export class CommunityInfo {
title: string;
shortTitle:string;
communityId: string;
queryId: string;
logoUrl: string;
description: string;
}