From 2faf70e76495f2d6068535a2fef0b35f9cb7b9b4 Mon Sep 17 00:00:00 2001 From: "sofia.baltzi" Date: Wed, 28 Feb 2018 10:06:37 +0000 Subject: [PATCH] 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 --- src/app/communities/communities.service.ts | 4 ++++ src/app/community/community.component.ts | 2 +- src/app/utils/communityInfo.ts | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/app/communities/communities.service.ts b/src/app/communities/communities.service.ts index 479d67d..bc6f64d 100644 --- a/src/app/communities/communities.service.ts +++ b/src/app/communities/communities.service.ts @@ -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; } diff --git a/src/app/community/community.component.ts b/src/app/community/community.component.ts index 5887fd1..df1ec50 100644 --- a/src/app/community/community.component.ts +++ b/src/app/community/community.component.ts @@ -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); }); } diff --git a/src/app/utils/communityInfo.ts b/src/app/utils/communityInfo.ts index ddea1f3..f97f44b 100644 --- a/src/app/utils/communityInfo.ts +++ b/src/app/utils/communityInfo.ts @@ -2,6 +2,7 @@ export class CommunityInfo { title: string; shortTitle:string; communityId: string; + queryId: string; logoUrl: string; description: string; }