Check if community and communityId are null

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-connect-portal/trunk@51040 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
sofia.baltzi 2018-03-05 14:21:28 +00:00
parent 1e6e5d5b64
commit c973bec01c
1 changed files with 3 additions and 3 deletions

View File

@ -11,15 +11,15 @@ import { CommunityInfo } from '../../utils/communityInfo';
<div class="uk-first-column">
<div class="el-item uk-panel">
<h6 class="el-title uk-margin uk-h6 uk-text-primary uk-margin-remove-adjacent uk-margin-remove-bottom">
<div *ngIf="item.type == 'publication'">
<div *ngIf="item.type == 'publication' && community != null && community.communityId != null">
<a [queryParams]="{articleId: item.id, community: community.communityId}" routerLinkActive="router-link-active" routerLink="/search/publication" >
{{item.title}} </a>
</div>
<div *ngIf="item.type == 'dataset'">
<div *ngIf="item.type == 'dataset' && community != null && community.communityId != null">
<a [queryParams]="{datasetId: item.id, community: community.communityId}" routerLinkActive="router-link-active" routerLink="/search/dataset" >
{{item.title}} </a>
</div>
<div *ngIf="item.type == 'software'">
<div *ngIf="item.type == 'software' && community != null && community.communityId != null">
<a [queryParams]="{softwareId: item.id, community: community.communityId}" routerLinkActive="router-link-active" routerLink="/search/software" >
{{item.title}} </a>
</div>