2020-06-05 14:56:28 +02:00
|
|
|
<ul [class]="'uk-list uk-margin ' + custom_class" uk-height-match="target: .portalSearchCard; row: false">
|
|
|
|
<errorMessages [status]="[status]" [type]="'results'"></errorMessages>
|
|
|
|
<li *ngFor="let result of results" class="uk-animation-fade uk-margin-auto">
|
|
|
|
<div class="portalSearchCard uk-position-relative">
|
|
|
|
<div class="badges">
|
2020-11-02 17:55:05 +01:00
|
|
|
<div *ngIf="type === 'community' && result.isSubscribed"
|
2020-06-05 14:56:28 +02:00
|
|
|
class="portal-card-badge uk-text-center">
|
|
|
|
<span>Subscribed</span>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="type === 'community' && result.status == 'manager'"
|
|
|
|
class="private-card-badge uk-text-center ">
|
|
|
|
<span>Private</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-11-02 17:55:05 +01:00
|
|
|
<!--<div *ngIf="type === 'stakeholder' && result.visibility !== 'PUBLIC'"
|
|
|
|
class="uk-position-top-right uk-margin-top uk-margin-right">
|
|
|
|
<icon [name]="visibilityIcon.get(result.visibility)"></icon>
|
|
|
|
<span class="space uk-text-small uk-text-capitalize">{{result.visibility.toLowerCase()}}</span>
|
|
|
|
</div>-->
|
2020-06-05 14:56:28 +02:00
|
|
|
<div class="uk-grid uk-flex uk-flex-middle" uk-grid>
|
|
|
|
<a *ngIf="directLink" [href]="(type === 'community')?getCommunityPageUrl(result):getStakeholderPageUrl(result)"
|
|
|
|
target="_blank"
|
2020-06-09 10:57:05 +02:00
|
|
|
class="uk-width-1-5@s">
|
2020-12-02 10:26:36 +01:00
|
|
|
<div class="uk-flex uk-flex-center">
|
2020-06-05 14:56:28 +02:00
|
|
|
<img *ngIf="result.logoUrl != null && result.logoUrl != '' " src="{{result.logoUrl}}"
|
|
|
|
alt="{{(result.title)?result.title:result.shortTitle}} logo">
|
|
|
|
<span *ngIf="result.logoUrl == null || result.logoUrl == ''" class="uk-icon">
|
|
|
|
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="2.5"> <circle fill="none"
|
|
|
|
stroke="#000"
|
|
|
|
stroke-width="1.1"
|
|
|
|
cx="7.7" cy="8.6"
|
|
|
|
r="3.5"></circle> <path
|
|
|
|
fill="none" stroke="#000" stroke-width="1.1"
|
|
|
|
d="M1,18.1 C1.7,14.6 4.4,12.1 7.6,12.1 C10.9,12.1 13.7,14.8 14.3,18.3"></path> <path fill="none"
|
|
|
|
stroke="#000"
|
|
|
|
stroke-width="1.1"
|
|
|
|
d="M11.4,4 C12.8,2.4 15.4,2.8 16.3,4.7 C17.2,6.6 15.7,8.9 13.6,8.9 C16.5,8.9 18.8,11.3 19.2,14.1"></path></svg>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
<a *ngIf="!directLink"
|
2020-06-09 10:57:05 +02:00
|
|
|
class="uk-width-1-5@s"
|
2020-06-05 14:56:28 +02:00
|
|
|
(click)="confirmModalOpen(result)">
|
2020-12-02 10:26:36 +01:00
|
|
|
<div class="uk-flex uk-flex-center">
|
2020-06-05 14:56:28 +02:00
|
|
|
<img *ngIf="result.logoUrl != null && result.logoUrl != '' " src="{{result.logoUrl}}"
|
|
|
|
alt="{{(result.title)?result.title:result.shortTitle}} logo">
|
|
|
|
<span *ngIf="(result.logoUrl == null || result.logoUrl == '' )" class="uk-icon">
|
|
|
|
<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg" ratio="2.5"> <circle fill="none"
|
|
|
|
stroke="#000"
|
|
|
|
stroke-width="1.1"
|
|
|
|
cx="7.7" cy="8.6"
|
|
|
|
r="3.5"></circle> <path
|
|
|
|
fill="none" stroke="#000" stroke-width="1.1"
|
|
|
|
d="M1,18.1 C1.7,14.6 4.4,12.1 7.6,12.1 C10.9,12.1 13.7,14.8 14.3,18.3"></path> <path fill="none"
|
|
|
|
stroke="#000"
|
|
|
|
stroke-width="1.1"
|
|
|
|
d="M11.4,4 C12.8,2.4 15.4,2.8 16.3,4.7 C17.2,6.6 15.7,8.9 13.6,8.9 C16.5,8.9 18.8,11.3 19.2,14.1"></path></svg>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
<div class="uk-width-expand">
|
2020-06-09 10:57:05 +02:00
|
|
|
<div *ngIf="type === 'community'" [title]="result.shortTitle" class="uk-text-large uk-grid" uk-grid>
|
2020-06-05 14:56:28 +02:00
|
|
|
<a *ngIf="directLink" [href]="getCommunityPageUrl(result)" target="_blank"
|
2020-06-09 10:57:05 +02:00
|
|
|
[class]="(result.isManager)?'uk-width-3-4@s portal-link':'portal-link'">
|
2020-06-05 14:56:28 +02:00
|
|
|
{{(result.title) ? result.title : result.shortTitle}}
|
|
|
|
</a>
|
2020-06-09 10:57:05 +02:00
|
|
|
<a *ngIf="!directLink" (click)="confirmModalOpen(result)" [class]="(result.isManager)?'uk-width-3-4@s':''"
|
2020-06-05 14:56:28 +02:00
|
|
|
class="portal-link">
|
|
|
|
{{(result.title) ? result.title : result.shortTitle}}
|
|
|
|
</a>
|
|
|
|
<manage *ngIf="result.isManager" [communityId]="result.communityId"
|
|
|
|
class="uk-width-expand uk-margin-auto-right"></manage>
|
|
|
|
</div>
|
2020-06-09 10:57:05 +02:00
|
|
|
<div *ngIf="type === 'stakeholder'" [title]="result.index_shortName" class="uk-text-large uk-grid">
|
2020-06-05 14:56:28 +02:00
|
|
|
<a *ngIf="directLink" [href]="getStakeholderPageUrl(result)" target="_blank"
|
2020-06-09 10:57:05 +02:00
|
|
|
[class]="(result.isManager)?'uk-width-3-4@s portal-link':'portal-link'">
|
2020-06-05 14:56:28 +02:00
|
|
|
{{(result.name) ? result.name : result.index_shortName}}
|
|
|
|
</a>
|
2020-06-09 10:57:05 +02:00
|
|
|
<a *ngIf="!directLink" (click)="confirmModalOpen(result)" [class]="(result.isManager)?'uk-width-3-4@s':''"
|
2020-06-05 14:56:28 +02:00
|
|
|
class="portal-link">
|
2020-06-09 10:57:05 +02:00
|
|
|
{{(result.name) ? result.name : result.index_shortName}}
|
2020-06-05 14:56:28 +02:00
|
|
|
</a>
|
|
|
|
<manage *ngIf="result.isManager" [alias]="result.alias" [properties]="properties"
|
|
|
|
class="uk-width-expand uk-margin-auto-right"></manage>
|
|
|
|
</div>
|
|
|
|
<div class="uk-margin-small-top uk-text-small">
|
|
|
|
<span class="uk-text-muted" *ngIf="result.date || result.creationDate">Creation Date:</span>
|
|
|
|
<span class="space" *ngIf="result.date">{{result.date | date:'dd-MM-yyyy'}}</span>
|
|
|
|
<span class="space" *ngIf="result.creationDate">{{result.creationDate | date:'dd-MM-yyyy'}}</span>
|
|
|
|
<span *ngIf="type === 'community' && showType && result.type && result.type != ''" class="uk-margin-left">
|
|
|
|
<span class="uk-text-muted">Type:</span>
|
|
|
|
<span
|
|
|
|
class="space uk-text-capitalize">{{(result.type == 'ri') ? 'Research Initiative' : 'Research Community'}}</span>
|
|
|
|
</span>
|
|
|
|
<span *ngIf="type === 'stakeholder' && result.type && result.type != ''" class="uk-margin-left">
|
|
|
|
<span class="uk-text-muted">Type:</span>
|
|
|
|
<span
|
|
|
|
class="space uk-text-capitalize">{{(result.type == 'ri') ? 'research initiative' : result.type}}</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
<div *ngIf="result.description">
|
|
|
|
<div class="text-justify descriptionText uk-text-small uk-text-muted uk-margin-auto-right"
|
|
|
|
[title]="result.description">
|
|
|
|
{{_formatDescription(result.description)}}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<modal-alert #AlertModal (alertOutput)="goToPage($event)">
|
|
|
|
<div class="uk-text-left">
|
|
|
|
You will be navigated to a new tab. Are you sure that you want to proceed?
|
|
|
|
</div>
|
|
|
|
</modal-alert>
|
|
|
|
|