|
|
|
@ -13,10 +13,11 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row d-flex align-items-center mt-3 mb-4 label-txt">
|
|
|
|
|
<div *ngIf="isUserDMPRelated()" class="d-flex">
|
|
|
|
|
<p class="ml-0 mr-3 mb-0 label2-txt">
|
|
|
|
|
<p class="ml-0 mr-2 mb-0 label2-txt">
|
|
|
|
|
{{ roleDisplayFromList(dmp.users) }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="d-flex mr-4">
|
|
|
|
|
<span>.</span>
|
|
|
|
|
<div class="d-flex ml-2 mr-2">
|
|
|
|
|
<div *ngIf="dmp.isPublic" class="d-flex flex-row">
|
|
|
|
|
<mat-icon class="status-icon">public</mat-icon>
|
|
|
|
|
{{'DMP-OVERVIEW.PUBLIC' | translate}}
|
|
|
|
@ -30,15 +31,12 @@
|
|
|
|
|
<mat-icon class="status-icon">lock_outline</mat-icon>
|
|
|
|
|
{{'DMP-OVERVIEW.LOCKED' | translate}}
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <button class="d-flex mr-4 version-btn label2-txt"
|
|
|
|
|
(click)="viewVersions(dmp.groupId, dmp.label)">
|
|
|
|
|
{{'DMP-LISTING.ACTIONS.VIEW-VERSION' | translate}}
|
|
|
|
|
</button> -->
|
|
|
|
|
<mat-form-field appearance="outline" class="versions-select mr-4">
|
|
|
|
|
<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>
|
|
|
|
|
<mat-option *ngFor="let version of versions" [value]="version">{{'DMP-LISTING.VERSION' | translate}} {{version.version}}</mat-option>
|
|
|
|
|
</mat-select>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
<div class="d-flex mr-4">{{'GENERAL.STATUSES.EDIT' | translate}} :
|
|
|
|
|
{{dmp.modifiedTime | date:"longDate"}}
|
|
|
|
|
</div>
|
|
|
|
@ -50,19 +48,13 @@
|
|
|
|
|
</div>
|
|
|
|
|
</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">
|
|
|
|
|
<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">
|
|
|
|
|
<mat-icon class="mat-mini-fab-icon">content_copy</mat-icon>
|
|
|
|
|
</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">
|
|
|
|
|
<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">
|
|
|
|
|
<mat-icon class="mat-mini-fab-icon">create</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
<button *ngIf="isDraftDmp(dmp) && 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">
|
|
|
|
|
<button *ngIf="isDraftDmp(dmp) && 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">
|
|
|
|
|
<mat-icon class="mat-mini-fab-icon">delete</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
@ -103,8 +95,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row mt-2 add-dataset-txt">
|
|
|
|
|
<button class="add-dataset-btn" *ngIf="isDraftDmp(dmp) && isUserOwner"
|
|
|
|
|
(click)="addDataset(dmp.id)">
|
|
|
|
|
<button class="add-dataset-btn" *ngIf="isDraftDmp(dmp) && isUserOwner" (click)="addDataset(dmp.id)">
|
|
|
|
|
<mat-icon>add</mat-icon>
|
|
|
|
|
{{'DMP-LISTING.ACTIONS.ADD-DATASET-SHORT' | translate}}
|
|
|
|
|
</button>
|
|
|
|
@ -118,14 +109,10 @@
|
|
|
|
|
<textarea #doi class="doi-txt">{{ dmp.doi }}</textarea>
|
|
|
|
|
</p>
|
|
|
|
|
<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">
|
|
|
|
|
<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">
|
|
|
|
|
<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">
|
|
|
|
|
<button mat-mini-fab class="mr-2 d-flex justify-content-center align-items-center" matTooltip="{{'GRANT-EDITOR.ACTIONS.VISIT-WEBSITE' | translate}}" matTooltipPosition="above">
|
|
|
|
|
<a [href]="createDoiLink(dmp.doi)" class="doi-link" target="_blank">
|
|
|
|
|
<mat-icon class="mat-mini-fab-icon">launch</mat-icon>
|
|
|
|
|
</a>
|
|
|
|
@ -145,8 +132,7 @@
|
|
|
|
|
<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">
|
|
|
|
|
<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">
|
|
|
|
|
<button mat-mini-fab class="frame-btn">
|
|
|
|
|
<mat-icon class="mat-mini-fab-icon">archive</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
@ -159,16 +145,14 @@
|
|
|
|
|
<p class="mb-0 mr-0 pl-2 frame-txt" [matMenuTriggerFor]="exportMenu">
|
|
|
|
|
{{ 'DMP-LISTING.ACTIONS.EXPORT' | translate }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="row ml-0 mr-0 pl-4 pb-3 d-flex align-items-center"
|
|
|
|
|
*ngIf="isUserOwner && !lockStatus" (click)="newVersion(dmp.id, dmp.label)">
|
|
|
|
|
<div class="row ml-0 mr-0 pl-4 pb-3 d-flex align-items-center" *ngIf="isUserOwner && !lockStatus" (click)="newVersion(dmp.id, dmp.label)">
|
|
|
|
|
<button mat-mini-fab class="frame-btn">
|
|
|
|
|
<mat-icon class="mat-mini-fab-icon">add_to_photos</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|
<p class="mb-0 pl-2 frame-txt">{{ 'DMP-LISTING.ACTIONS.START-NEW-VERSION' | translate }}
|
|
|
|
|
</p>
|
|
|
|
|
</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)">
|
|
|
|
|
<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)">
|
|
|
|
|
<button mat-mini-fab class="frame-btn">
|
|
|
|
|
<mat-icon class="mat-mini-fab-icon">public</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
@ -211,12 +195,10 @@
|
|
|
|
|
<p class="authors-role">{{ roleDisplay(user) }}</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<button *ngIf="isUserOwner && !dmp.status && user.role" (click)="removeUserFromDmp(user)"
|
|
|
|
|
class="remove-btn">{{ 'GENERAL.CONFIRMATION-DIALOG.ACTIONS.REMOVE' | translate}}</button>
|
|
|
|
|
<button *ngIf="isUserOwner && !dmp.status && user.role" (click)="removeUserFromDmp(user)" class="remove-btn">{{ 'GENERAL.CONFIRMATION-DIALOG.ACTIONS.REMOVE' | translate}}</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div *ngIf="isUserOwner" (click)="openShareDialog(dmp.id,dmp.label)"
|
|
|
|
|
class="row mt-3 mb-3 d-flex align-items-center justify-content-center">
|
|
|
|
|
<div *ngIf="isUserOwner" (click)="openShareDialog(dmp.id,dmp.label)" class="row mt-3 mb-3 d-flex align-items-center justify-content-center">
|
|
|
|
|
<button mat-raised-button class="invite-btn">
|
|
|
|
|
<mat-icon>group_add</mat-icon>
|
|
|
|
|
{{'DMP-LISTING.ACTIONS.INVITE-SHORT' | translate}}
|
|
|
|
|