Change query param to query id

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@50975 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
sofia.baltzi 2018-02-28 14:15:00 +00:00
parent 9520d42028
commit 2074fbbfb7
3 changed files with 2 additions and 7 deletions

View File

@ -15,9 +15,6 @@
<div *ngIf="community.description != null">
<p> {{community.description}}</p>
</div>
<div *ngIf="community.queryId != null">
<p> {{community.queryId}}</p>
</div>
</div>
</blockquote>
<p><span class="uk-label">Nature</span>&nbsp;<span class=" uk-label uk-label-danger">Life science</span>&nbsp;<span class="uk-label uk-label-success">Environment</span></p>
@ -56,7 +53,6 @@
<h3 class="uk-margin-small uk-h3 uk-heading-line uk-text-primary">
<span>Most recent publications</span>
</h3>
<results-comp [(results)]=publicationResults resultType="publication" [params]=params></results-comp>
</div>
<div class="uk-width-expand@m">

View File

@ -28,7 +28,7 @@ export class CommunityComponent {
public researchDataTotal = null;
public softwareTotal = null;
params = {community: encodeURIComponent('"egi||EGI Federation"')};
params: any;
properties:EnvProperties;
public publicationResults = null;
@ -75,12 +75,12 @@ export class CommunityComponent {
this.route.queryParams.subscribe(
communityId => {
this.communityId = communityId['communityId'];
//console.log(communityId);
});
this._communityService.getCommunity('https://dev-openaire.d4science.org/openaire/community/'+this.communityId).subscribe (
community => {
this.community = community;
this.params = {community: encodeURIComponent(community.queryId)};
console.log(community);
});

View File

@ -67,6 +67,5 @@ export class ResultsComponent {
@Input() public results : ResultInfo[];
@Input() public resultType: string;
@Input() public params: any;
@Input() public community : CommunityInfo;
}