argos/dmp-frontend/src/app/ui/dmp/overview/dmp-overview.component.html

439 lines
21 KiB
HTML
Raw Normal View History

2020-06-29 09:53:56 +02:00
<div class="main-content pl-5 pr-5">
2020-06-30 17:33:01 +02:00
<div class="container-fluid pl-0 pr-0">
2020-06-29 09:53:56 +02:00
<div *ngIf="dmp">
2020-07-01 17:32:22 +02:00
<a class="row mb-2 pl-1" (click)="goBack()" role="button">
<mat-icon class="back-icon pointer">chevron_left</mat-icon>
<p class="label-txt pointer">{{'DMP-WIZARD.ACTIONS.BACK' | translate}}</p>
2020-06-30 17:33:01 +02:00
</a>
2020-06-29 09:53:56 +02:00
<div class="row">
2020-07-01 17:32:22 +02:00
<div class="col-md-8 col-lg-8 pl-4">
2020-06-29 09:53:56 +02:00
<div class="row">
2020-07-01 17:32:22 +02:00
<span class="dmp-logo">{{ 'DATASET-LISTING.COLUMNS.DMP' | translate }}</span>
2020-07-03 15:58:13 +02:00
<p class="dmp-label ml-3 mb-0">{{ dmp.label }}</p>
2020-06-29 09:53:56 +02:00
</div>
2020-06-30 17:33:01 +02:00
<div class="row d-flex align-items-center mt-3 mb-4 label-txt">
2020-06-29 09:53:56 +02:00
<div *ngIf="isUserDMPRelated()" class="d-flex">
2020-07-10 09:32:11 +02:00
<p class="ml-0 mr-2 mb-0 label2-txt">
2020-06-29 09:53:56 +02:00
{{ roleDisplayFromList(dmp.users) }}</p>
</div>
2020-07-10 09:32:11 +02:00
<span>.</span>
<div class="d-flex ml-2 mr-2">
2020-06-30 17:33:01 +02:00
<div *ngIf="dmp.isPublic" class="d-flex flex-row">
<mat-icon class="status-icon">public</mat-icon>
{{'DMP-OVERVIEW.PUBLIC' | translate}}
</div>
<div *ngIf="!dmp.isPublic" class="d-flex flex-row">
<mat-icon class="status-icon">public_off</mat-icon>
{{'DMP-OVERVIEW.PRIVATE' | translate}}
</div>
</div>
<div *ngIf="lockStatus" class="d-flex flex-row mr-2">
<span>.</span>
<mat-icon class="status-icon ml-2">lock_outline</mat-icon>
2020-07-06 17:42:54 +02:00
{{'DMP-OVERVIEW.LOCKED' | translate}}
2020-06-30 17:33:01 +02:00
</div>
2020-07-10 09:32:11 +02:00
<span>.</span>
<mat-form-field appearance="outline" class="versions-select ml-2 mr-4">
<mat-select placeholder="{{'DMP-LISTING.VERSION' | translate}} {{dmp.version}}"
[(ngModel)]="version" (ngModelChange)="versionChanged(version.id)">
<mat-option *ngFor="let version of versions" [value]="version">
{{'DMP-LISTING.VERSION' | translate}} {{version.version}}</mat-option>
2020-07-09 13:28:55 +02:00
</mat-select>
2020-07-10 09:32:11 +02:00
</mat-form-field>
2020-06-29 17:30:36 +02:00
<div class="d-flex mr-4">{{'GENERAL.STATUSES.EDIT' | translate}} :
2020-06-30 17:33:01 +02:00
{{dmp.modifiedTime | date:"longDate"}}
</div>
<div class="d-flex mr-4">
2020-07-01 17:32:22 +02:00
<div *ngIf="dmp.status" class="d-flex flex-row uppercase">
2020-06-30 17:33:01 +02:00
<mat-icon class="status-icon">check</mat-icon>
2020-07-06 12:21:11 +02:00
{{'TYPES.DMP.FINALISED' | translate}}
</div>
2020-06-30 17:33:01 +02:00
</div>
2020-06-29 09:53:56 +02:00
</div>
<div class="row">
<button *ngIf="isAuthenticated()" (click)="cloneClicked(dmp)" mat-mini-fab
class="mr-3 d-flex justify-content-center align-items-center"
matTooltip="{{'DMP-LISTING.ACTIONS.CLONE' | translate}}" matTooltipPosition="above">
2020-06-30 17:33:01 +02:00
<mat-icon class="mat-mini-fab-icon">content_copy</mat-icon>
2020-06-29 09:53:56 +02:00
</button>
<button *ngIf="isDraftDmp(dmp) && isUserOwner && !lockStatus" (click)="editClicked(dmp)"
mat-mini-fab class="mr-3 d-flex justify-content-center align-items-center"
matTooltip="{{'DMP-LISTING.ACTIONS.EDIT' | translate}}" matTooltipPosition="above">
2020-06-30 17:33:01 +02:00
<mat-icon class="mat-mini-fab-icon">create</mat-icon>
2020-06-29 09:53:56 +02:00
</button>
<button *ngIf="isUserOwner && !lockStatus" (click)="deleteClicked()" mat-mini-fab
class="mr-3 d-flex justify-content-center align-items-center"
matTooltip="{{'DMP-LISTING.ACTIONS.DELETE' | translate}}" matTooltipPosition="above">
2020-06-30 17:33:01 +02:00
<mat-icon class="mat-mini-fab-icon">delete</mat-icon>
2020-06-29 09:53:56 +02:00
</button>
</div>
2020-06-30 17:33:01 +02:00
<div class="row header">{{'DMP-OVERVIEW.GRANT' | translate}}</div>
2020-06-29 09:53:56 +02:00
<div class="row dmp-label">{{ dmp.grant.label }}</div>
2020-06-30 17:33:01 +02:00
<div class="row header">{{'DMP-OVERVIEW.RESEARCHERS' | translate}}</div>
2020-06-29 09:53:56 +02:00
<div class="row">
<div *ngFor="let researcher of dmp.researchers; let last = last">
<a href="{{ getOrcidPathForResearcher(researcher.reference) }}" target="blank"
class="researcher">
<div class="id-btn">&nbsp;</div>
<div *ngIf="!last">{{ researcher.name }}, </div>
<div *ngIf="last">{{ researcher.name }}</div>
</a>
2020-06-29 09:53:56 +02:00
</div>
</div>
2020-06-30 17:33:01 +02:00
<div class="row header">{{'DATASET-LISTING.COLUMNS.DESCRIPTION' | translate}}</div>
<div class="row" *ngIf="dmp.description">
<p class="desc-txt">{{ dmp.description }}</p>
2020-06-29 09:53:56 +02:00
</div>
2020-06-30 17:33:01 +02:00
<div class="row header">{{'DMP-OVERVIEW.DATASETS-USED' | translate}}</div>
<div class="d-flex flex-column">
<div *ngFor="let dataset of dmp.datasets">
<div class="row" (click)="datasetClicked(dataset.id)">
2020-06-29 17:30:36 +02:00
<button mat-raised-button class="mb-2 mr-2 pl-0 pr-0">
<div matTooltip="{{ dataset.label }}"
class="col-auto dataset-btn">
<div class="dataset-btn-label">{{ dataset.label }}</div>
2020-06-29 09:53:56 +02:00
<mat-icon>launch</mat-icon>
</div>
</button>
</div>
</div>
</div>
2020-06-30 17:33:01 +02:00
<div class="row mt-2 add-dataset-txt">
<button class="add-dataset-btn" *ngIf="isDraftDmp(dmp) && isUserOwner"
(click)="addDataset(dmp.id)">
2020-06-29 09:53:56 +02:00
<mat-icon>add</mat-icon>
2020-06-30 17:33:01 +02:00
{{'DMP-LISTING.ACTIONS.ADD-DATASET-SHORT' | translate}}
2020-06-29 09:53:56 +02:00
</button>
</div>
</div>
2020-06-30 17:33:01 +02:00
<div class="col-md-4 col-lg-4 p-0">
2020-07-01 17:32:22 +02:00
<div *ngIf="!hasDoi(dmp)" class="row d-flex flex-column ml-0 mr-0 mb-3">
2020-06-29 17:30:36 +02:00
<p class="doi-label">{{'DMP-EDITOR.TITLE.SUBTITLE' | translate}}</p>
<div class="doi-panel">
2020-07-01 17:32:22 +02:00
<p *ngIf="!hasDoi(dmp)" class="mb-0 ml-3">
<textarea #doi class="doi-txt">{{ dmp.doi }}</textarea>
</p>
2020-06-29 17:30:36 +02:00
<div class="d-flex justify-content-end">
<button (click)="copyDoi(doi)" mat-mini-fab
class="mr-2 d-flex justify-content-center align-items-center"
matTooltip="{{'DMP-LISTING.ACTIONS.CLONE' | translate}}" matTooltipPosition="above">
2020-06-29 17:30:36 +02:00
<mat-icon class="mat-mini-fab-icon">content_copy</mat-icon>
</button>
<button mat-mini-fab class="mr-2 d-flex justify-content-center align-items-center"
matTooltip="{{'GRANT-EDITOR.ACTIONS.VISIT-WEBSITE' | translate}}"
matTooltipPosition="above">
2020-06-30 17:33:01 +02:00
<a [href]="createDoiLink(dmp.doi)" class="doi-link" target="_blank">
<mat-icon class="mat-mini-fab-icon">launch</mat-icon>
</a>
2020-06-29 17:30:36 +02:00
</button>
</div>
</div>
</div>
2020-07-01 17:32:22 +02:00
<div class="frame mb-3 pt-4 pl-3 pr-5 pb-1">
2020-07-06 17:42:54 +02:00
<div *ngIf="!dmp.status && isDraftDmp(dmp) && isUserOwner && !lockStatus">
2020-07-01 17:32:22 +02:00
<div class="row ml-0 mr-0 pl-4 d-flex align-items-center" (click)="finalize(dmp)">
<button mat-mini-fab class="finalize-btn">
<mat-icon class="mat-mini-fab-icon">check</mat-icon>
</button>
<p class="mb-0 pl-2 finalize-txt">{{ 'DMP-LISTING.ACTIONS.FINALIZE' | translate }}</p>
</div>
<div class="row ml-0 mr-0 pl-4 d-flex align-items-center">
<hr class="hr-line">
</div>
</div>
<div *ngIf="hasDoi(dmp) && isFinalizedDmp(dmp) && !this.isPublicView && isUserOwner"
(click)="getDoi(dmp)" class="row ml-0 mr-0 pl-4 pb-3 d-flex align-items-center">
2020-06-29 17:30:36 +02:00
<button mat-mini-fab class="frame-btn">
<mat-icon class="mat-mini-fab-icon">archive</mat-icon>
2020-06-29 09:53:56 +02:00
</button>
2020-06-30 17:33:01 +02:00
<p class="mb-0 pl-2 frame-txt">{{ 'DMP-LISTING.ACTIONS.DEPOSIT' | translate }}</p>
2020-06-29 09:53:56 +02:00
</div>
<div *ngIf="(isFinalizedDmp(dmp) && hasDoi(dmp) && !isPublishedDMP(dmp)) && isUserOwner"
(click)="reverse(dmp)" class="row ml-0 mr-0 pl-4 pb-3 d-flex align-items-center">
<button mat-mini-fab class="frame-btn">
<mat-icon class="mat-mini-fab-icon">unarchive</mat-icon>
</button>
<p class="mb-0 pl-2 frame-txt">{{ 'DMP-LISTING.ACTIONS.UNFINALIZE' | translate }}</p>
</div>
2020-07-01 17:32:22 +02:00
<div class="row ml-0 mr-0 pl-4 pb-3 d-flex align-items-center">
2020-06-29 17:30:36 +02:00
<button mat-mini-fab class="frame-btn" [matMenuTriggerFor]="exportMenu">
<mat-icon class="mat-mini-fab-icon">open_in_new</mat-icon>
2020-06-29 09:53:56 +02:00
</button>
2020-06-30 17:33:01 +02:00
<p class="mb-0 mr-0 pl-2 frame-txt" [matMenuTriggerFor]="exportMenu">
2020-06-29 17:30:36 +02:00
{{ 'DMP-LISTING.ACTIONS.EXPORT' | translate }}</p>
2020-06-29 09:53:56 +02:00
</div>
<div *ngIf="isUserOwner" class="row ml-0 mr-0 pl-4 pb-3 d-flex align-items-center"
(click)="newVersion(dmp.id, dmp.label)">
2020-06-29 17:30:36 +02:00
<button mat-mini-fab class="frame-btn">
<mat-icon class="mat-mini-fab-icon">add_to_photos</mat-icon>
2020-06-29 09:53:56 +02:00
</button>
2020-06-30 17:33:01 +02:00
<p class="mb-0 pl-2 frame-txt">{{ 'DMP-LISTING.ACTIONS.START-NEW-VERSION' | translate }}
2020-06-29 17:30:36 +02:00
</p>
2020-06-29 09:53:56 +02:00
</div>
<div *ngIf="!dmp.isPublic && showPublishButton(dmp) && isUserOwner"
class="row ml-0 mr-0 pl-4 pb-3 d-flex align-items-center" (click)="publish(dmp.id)">
2020-06-29 17:30:36 +02:00
<button mat-mini-fab class="frame-btn">
<mat-icon class="mat-mini-fab-icon">public</mat-icon>
2020-06-29 09:53:56 +02:00
</button>
2020-06-30 17:33:01 +02:00
<p class="mb-0 pl-2 frame-txt">{{ 'DMP-LISTING.ACTIONS.MAKE-PUBLIC' | translate }}</p>
2020-06-29 09:53:56 +02:00
</div>
2020-06-29 17:30:36 +02:00
<mat-menu #exportMenu="matMenu" xPosition="before">
<button mat-menu-item (click)="downloadPDF(dmp.id)">
<i class="fa fa-file-pdf-o pr-2"></i>
<span>{{'GENERAL.FILE-TYPES.PDF' | translate}}</span>
</button>
<button mat-menu-item (click)="downloadDocx(dmp.id)">
<i class="fa fa-file-word-o pr-2"></i>
<span>{{'GENERAL.FILE-TYPES.DOC' | translate}}</span>
</button>
<button mat-menu-item (click)="downloadXml(dmp.id)">
<i class="fa fa-file-code-o pr-2"></i>
<span>{{'GENERAL.FILE-TYPES.XML' | translate}}</span>
</button>
<button mat-menu-item (click)="downloadJson(dmp.id)">
<i class="fa fa-file-o pr-2"></i>
<span>{{'GENERAL.FILE-TYPES.JSON' | translate}}</span>
</button>
</mat-menu>
2020-06-29 09:53:56 +02:00
</div>
2020-07-01 17:32:22 +02:00
<div class="frame mb-3 pt-4 pl-3 pr-3 pb-1">
<div class="row ml-0 mr-0 pl-4 pb-3">
2020-06-30 17:33:01 +02:00
<p class="header">{{ 'DMP-OVERVIEW.DMP-AUTHORS' | translate }}</p>
2020-06-29 17:30:36 +02:00
</div>
2020-07-01 17:32:22 +02:00
<div class="row ml-0 mr-0 pl-4 ml-2 pb-3 d-flex align-items-center">
<div *ngFor="let user of dmp.users" class="row authors">
<div class="d-flex flex-row">
<button class="account_btn mr-3 pl-0">
<mat-icon class="account-icon">account_circle</mat-icon>
</button>
<div>
<p class="authors-label">{{ user.name }}
<span *ngIf="isUserAuthor(user.id)">
({{ 'DMP-OVERVIEW.YOU' | translate }})</span>
2020-07-01 17:32:22 +02:00
</p>
<p class="authors-role">{{ roleDisplay(user) }}</p>
</div>
2020-06-29 17:30:36 +02:00
</div>
<button *ngIf="isUserOwner && !dmp.status && user.role"
(click)="removeUserFromDmp(user)"
class="remove-btn">{{ 'GENERAL.CONFIRMATION-DIALOG.ACTIONS.REMOVE' | translate}}</button>
2020-06-29 17:30:36 +02:00
</div>
2020-06-29 09:53:56 +02:00
</div>
<div *ngIf="isUserOwner" (click)="openShareDialog(dmp.id,dmp.label)"
class="row mt-3 mb-3 d-flex align-items-center justify-content-center">
2020-06-30 17:33:01 +02:00
<button mat-raised-button class="invite-btn">
2020-06-29 09:53:56 +02:00
<mat-icon>group_add</mat-icon>
{{'DMP-LISTING.ACTIONS.INVITE-SHORT' | translate}}
</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!--
2019-05-21 15:42:28 +02:00
<div class="main-content">
<div class="container-fluid">
2019-05-27 11:16:52 +02:00
<div *ngIf="dmp" class="card pb-4">
2019-10-07 17:31:22 +02:00
<div class="row card-header card-header-plain d-flex">
<div class="col-12 card-desc d-flex flex-column justify-content-center">
<div class="row">
2019-10-07 17:31:22 +02:00
<div class="col d-flex align-items-center flex-wrap-nowrap">
<h4 class="card-title">{{ dmp.label }}</h4>
<button mat-icon-button [matMenuTriggerFor]="actionsMenu" class="ml-auto more-icon" (click)="$event.stopImmediatePropagation();">
<mat-icon class="more-horiz">more_horiz</mat-icon>
</button>
<mat-menu #actionsMenu="matMenu" xPosition="before">
<button *ngIf="isUserOwner" mat-menu-item (click)="openShareDialog(dmp.id,dmp.label)">
<mat-icon>share</mat-icon>{{'DMP-LISTING.ACTIONS.INVITE' | translate}}
</button>
2020-06-29 09:53:56 +02:00
-->
<!-- <button *ngIf="isDraftDmp(dmp) && isUserOwner" mat-menu-item (click)="addDataset(dmp.id)">
<mat-icon>add_box</mat-icon>{{'DMP-LISTING.ACTIONS.ADD-DATASET' | translate}}
</button> -->
2020-06-29 09:53:56 +02:00
<!--
<button *ngIf="isUserOwner" mat-menu-item (click)="newVersion(dmp.id, dmp.label)">
2019-10-07 17:31:22 +02:00
<mat-icon>queue</mat-icon>{{'DMP-LISTING.ACTIONS.NEW-VERSION' | translate}}
</button>
<button mat-menu-item (click)="viewVersions(dmp.groupId, dmp.label)">
<mat-icon>library_books</mat-icon>{{'DMP-LISTING.ACTIONS.VIEW-VERSION' | translate}}
</button>
<button *ngIf="isAuthenticated()" mat-menu-item (click)="cloneClicked(dmp)" class="menu-item">
2019-10-07 17:31:22 +02:00
<mat-icon>add</mat-icon>{{ 'DMP-LISTING.ACTIONS.CLONE' | translate }}
</button>
<button mat-menu-item *ngIf="isDraftDmp(dmp) && isUserOwner" (click)="deleteClicked()" class="menu-item">
2019-10-07 17:31:22 +02:00
<mat-icon>delete</mat-icon>{{ 'DMP-LISTING.ACTIONS.DELETE' | translate }}
</button>
</mat-menu>
</div>
2019-10-07 17:31:22 +02:00
<div class="col-auto d-flex flex-wrap p-2">
<button *ngIf="(isFinalizedDmp(dmp) && hasDoi(dmp) && !isPublishedDMP(dmp)) && isUserOwner" mat-raised-button class="lightblue-btn mt-2 ml-2" color="primary" (click)="reverse()" type="button">{{ 'DMP-LISTING.ACTIONS.UNFINALIZE' | translate }}</button>
<button *ngIf="isDraftDmp(dmp) && isUserOwner" mat-raised-button color="primary" (click)="editClicked(dmp)" class="lightblue-btn mt-2 ml-2">
2019-10-07 17:31:22 +02:00
<mat-icon>edit</mat-icon> {{ 'DMP-LISTING.ACTIONS.EDIT' | translate }}
</button>
<button mat-raised-button [matMenuTriggerFor]="exportMenu" color="primary" class="lightblue-btn export-btn mt-2 ml-2">
{{ 'DMP-LISTING.ACTIONS.EXPORT' | translate }} <mat-icon>arrow_drop_down</mat-icon>
</button>
<button *ngIf="showPublishButton(dmp) && isUserOwner" mat-raised-button (click)="publish(dmp.id)" class="lightblue-btn mt-2 ml-2">
2019-10-07 17:31:22 +02:00
<mat-icon>public</mat-icon> {{ 'DMP-LISTING.ACTIONS.PUBLISH' | translate }}
</button>
<button *ngIf="isDraftDmp(dmp) && isUserOwner" mat-raised-button color="primary" (click)="finalize(dmp)" class="lightblue-btn mt-2 ml-2">
2019-10-07 17:31:22 +02:00
<mat-icon>done_all</mat-icon> {{ 'DMP-LISTING.ACTIONS.FINALIZE' | translate }}
</button>
<button *ngIf="hasDoi(dmp) && isFinalizedDmp(dmp) && !this.isPublicView && isUserOwner" mat-raised-button color="primary" (click)="getDoi(dmp)" class="lightblue-btn mt-2 ml-2">
2019-10-07 17:31:22 +02:00
<mat-icon>archive</mat-icon> {{ 'DMP-LISTING.ACTIONS.GETDOI' | translate }}
</button>
2019-10-07 17:31:22 +02:00
<mat-menu #exportMenu="matMenu" xPosition="before">
<button mat-menu-item (click)="downloadPDF(dmp.id)">
<i class="fa fa-file-pdf-o pr-2"></i>
<span>{{'GENERAL.FILE-TYPES.PDF' | translate}}</span>
</button>
<button mat-menu-item (click)="downloadDocx(dmp.id)">
<i class="fa fa-file-word-o pr-2"></i>
<span>{{'GENERAL.FILE-TYPES.DOC' | translate}}</span>
</button>
<button mat-menu-item (click)="downloadXml(dmp.id)">
<i class="fa fa-file-code-o pr-2"></i>
<span>{{'GENERAL.FILE-TYPES.XML' | translate}}</span>
</button>
<button mat-menu-item (click)="downloadJson(dmp.id)">
2019-10-07 17:31:22 +02:00
<i class="fa fa-file-o pr-2"></i>
<span>{{'GENERAL.FILE-TYPES.JSON' | translate}}</span>
</button>
</mat-menu>
</div>
</div>
<div class="row">
<mat-card-subtitle class="col" *ngIf="!hasDoi(dmp)">
{{ 'DMP-EDITOR.TITLE.SUBTITLE' | translate }}: <a [href]="createDoiLink(dmp.doi)">{{ dmp.doi }}</a>
2019-10-07 17:31:22 +02:00
</mat-card-subtitle>
</div>
2019-05-21 15:42:28 +02:00
</div>
</div>
2019-10-07 17:31:22 +02:00
<div class="col">
<div class="row">
<div class="col-md-9 col-lg-9">
<div class="row">
<div class="col-sm-12 col-md-6 ml-3 dmp-info">
<p class="card-subtitle">{{ dmp.label }}</p>
<p>{{ dmp.description }}</p>
</div>
<div class="col-12 d-flex flex-row flex-wrap ml-3">
<div *ngIf="isUserDMPRelated()" class="d-flex">
<mat-icon matTooltip="{{'DMP-OVERVIEW.TOOLTIP.LEVEL-OF-ACCESS' | translate}}" class="gray-icon pt-2">settings</mat-icon>
<p class="mt-2 ml-1 mr-3 p-1">{{ roleDisplayFromList(dmp.users) }}</p>
2019-10-07 17:31:22 +02:00
</div>
2019-05-21 15:42:28 +02:00
2019-10-07 17:31:22 +02:00
<div class="datasets-counter" *ngIf="!isPublishedDMP(dmp)">
<mat-icon matTooltip="{{'DMP-OVERVIEW.TOOLTIP.INVOLVED-DATASETS' | translate}}" class="gray-icon pt-2" (click)="datasetsClicked(dmp.id)">storage
</mat-icon>
<p class="mt-2 ml-1 p-1" (click)="datasetsClicked(dmp.id)">
{{ dmp.datasets.length }}</p>
<p class="mt-2 mr-3 p-1" (click)="datasetsClicked(dmp.id)">
{{'NAV-BAR.DATASETS' | translate}}</p>
</div>
2019-05-21 15:42:28 +02:00
2019-10-07 17:31:22 +02:00
<div class="d-flex">
<mat-icon matTooltip="{{'DMP-OVERVIEW.TOOLTIP.INVOLVED-DATASETS' | translate}}" class="gray-icon pt-2" *ngIf="isPublishedDMP(dmp)">storage</mat-icon>
<p class="mt-2 ml-1 p-1" *ngIf="isPublishedDMP(dmp)">{{ dmp.datasets.length }}</p>
<p class="mt-2 mr-3 p-1" *ngIf="isPublishedDMP(dmp)">{{'NAV-BAR.DATASETS' | translate}}</p>
2019-10-07 17:31:22 +02:00
</div>
2019-10-07 17:31:22 +02:00
<div class="d-flex">
<mat-icon matTooltip="{{'DMP-OVERVIEW.TOOLTIP.TEMPLATES-INVOLVED' | translate}}" class="gray-icon pt-2">assignment</mat-icon>
2019-05-21 15:42:28 +02:00
<p class="mt-2 ml-1 p-1">{{ dmp.associatedProfiles.length }}</p>
<p class="mt-2 mr-3 p-1">{{ 'DMP-EDITOR.FIELDS.TEMPLATES' | translate }}</p>
2019-10-07 17:31:22 +02:00
</div>
2019-05-21 15:42:28 +02:00
2019-10-07 17:31:22 +02:00
<div class="d-flex">
<mat-icon matTooltip="{{'DMP-OVERVIEW.RESEARCHERS' | translate}}" class="gray-icon pt-2">person</mat-icon>
2019-05-21 15:42:28 +02:00
<p class="mt-2 ml-1 p-1">{{ dmp.researchers.length }}</p>
<p class="mt-2 mr-3 p-1">{{ 'DMP-EDITOR.FIELDS.RESEARCHERS' | translate }}</p>
</div>
<div class="d-flex" *ngIf="!isPublicView">
<mat-icon matTooltip="{{'DMP-OVERVIEW.COLLABORATORS' | translate}}" class="gray-icon pt-2">person</mat-icon>
<p class="mt-2 ml-1 p-1">{{ dmp.users.length }}</p>
<p class="mt-2 mr-3 p-1">{{ 'DMP-EDITOR.FIELDS.COLLABORATORS' | translate }}</p>
</div>
2019-05-21 15:42:28 +02:00
</div>
</div>
<div class="row">
<div class="interact-icon">
<mat-icon *ngIf="isDraftDmp(dmp) && isUserOwner" matTooltip="{{'DMP-LISTING.ACTIONS.ADD-DATASET' | translate}}" (click)="addDataset(dmp.id)">add_box</mat-icon>
</div>
</div>
2019-10-07 17:31:22 +02:00
<div class="row">
<div *ngFor="let dataset of dmp.datasets; let i=index" class="col-md-4">
<div *ngIf="i < 9" class="dataset-card" (click)="datasetClicked(dataset.id)">
<mat-icon *ngIf="isDraftDataset(dataset)" class="draft-bookmark">bookmark</mat-icon>
<mat-icon *ngIf="!isDraftDataset(dataset)" class="finalized-bookmark">bookmark</mat-icon>
<h4 *ngIf="isDraftDataset(dataset)">
<span>{{ 'TYPES.DMP.DRAFT' | translate }}:</span> {{ dataset.label }}</h4>
<h4 *ngIf="!isDraftDataset(dataset)">{{ dataset.label }}</h4>
<div matTooltip="{{ dataset.datasetTemplate.label }}" class="chip">
{{ dataset.datasetTemplate.label }}</div>
</div>
2019-05-21 15:42:28 +02:00
</div>
</div>
2019-10-07 17:31:22 +02:00
<div *ngIf="dmp.datasets.length > 9" class="gray-container d-flex justify-content-center">
<button mat-button (click)="datasetsClicked(dmp.id)" class="show-more">
<mat-icon class="mr-2">expand_more</mat-icon>{{ 'GENERAL.ACTIONS.SHOW-MORE' | translate }}
</button>
2019-05-21 15:42:28 +02:00
</div>
2019-10-07 17:31:22 +02:00
</div>
<div class="col-md-3 col-lg-3">
<div class="grant-item">
2020-03-03 10:20:27 +01:00
<h6 class="grant-title">{{'DMP-OVERVIEW.GRANT' | translate}}</h6>
<div *ngIf="dmp.grant.abbreviation" class="gray-container container-header">
2019-10-07 17:31:22 +02:00
<span class="ml-2 pt-2" (click)="grantClicked(dmp.grant.id)">{{ dmp.grant.abbreviation }}</span>
</div>
<p class="card-subtitle mt-3 mb-1 ml-3 mr-3">{{ dmp.grant.label }}</p>
2020-03-03 10:20:27 +01:00
<p *ngIf="dmp.grant.startDate && dmp.grant.endDate" class="mb-1 ml-3 mr-3">{{ dmp.grant.startDate | date: "shortDate" }} - {{ dmp.grant.endDate | date: "shortDate" }}</p>
2019-05-21 15:42:28 +02:00
2020-03-03 10:20:27 +01:00
<div class="row desc-container" *ngIf="dmp.grant.description">
<p #desc class="ml-3 mr-3 desc" [ngClass]="{'desc-expanded': expand}">{{ dmp.grant.description }}</p>
2020-06-29 09:53:56 +02:00
<button *ngIf="checkOverflow(desc)" mat-flat-button class="show-more col-12" (click)="expandDesc()"> -->
<!-- (click)="grantClicked(dmp.grant.id)"> -->
<!--<mat-icon class="mr-2">{{!expand ? 'expand_more' : 'expand_less'}}</mat-icon>
2020-03-03 10:20:27 +01:00
{{ (!expand ? 'GENERAL.ACTIONS.SHOW-MORE' : 'GENERAL.ACTIONS.SHOW-LESS') | translate }}
</button>
2020-06-29 09:53:56 +02:00
</div>-->
<!-- <button mat-flat-button class="show-more" (click)="grantClicked(dmp.grant.id)">
2020-03-03 10:20:27 +01:00
<mat-icon class="mr-2">expand_more</mat-icon>
2019-10-07 17:31:22 +02:00
{{ 'GENERAL.ACTIONS.SHOW-MORE' | translate }}
2020-03-03 10:20:27 +01:00
</button> -->
2020-06-29 09:53:56 +02:00
<!--
2019-05-21 15:42:28 +02:00
2020-03-03 10:20:27 +01:00
<a *ngIf="dmp.grant.uri" mat-raised-button class="visit-website" href="{{dmp.grant.uri}}" target="_blank">
2019-10-07 17:31:22 +02:00
<mat-icon class="mr-2">open_in_new</mat-icon>
{{ 'GRANT-EDITOR.ACTIONS.VISIT-WEBSITE' | translate }}
</a>
</div>
<div class="researchers">
<h6 class="researchers-title">{{'DMP-OVERVIEW.RESEARCHERS' | translate}}</h6>
<div *ngFor="let researcher of dmp.researchers">
<div matTooltip="{{ researcher.name }}" class="avatar">{{ researcher.name }}</div>
</div>
2019-05-21 15:42:28 +02:00
</div>
<div class="collaborators" *ngIf="!isPublicView">
<h6 class="collaborators-title">{{'DMP-OVERVIEW.COLLABORATORS' | translate}}</h6>
<div *ngFor="let user of dmp.users">
<div matTooltip="{{ roleDisplay(user) }}" class="avatar">{{ user.name }}</div>
</div>
</div>
2019-05-21 15:42:28 +02:00
</div>
</div>
</div>
</div>
</div>
</div>
-->