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; }