2023-11-29 14:26:40 +01:00
< div class = "description-card" >
< a [ routerLink ] = " getItemLink ( ) " class = "pointer" >
< div class = "d-flex flex-direction-row" >
2023-12-01 18:18:41 +01:00
< div class = "col-auto description-label" > {{'DESCRIPTION-LISTING.DESCRIPTION' | translate}}< / div >
< div * ngIf = "!isPublic" class = "col-auto ml-auto edited-date" > {{'DESCRIPTION-LISTING.STATES.EDITED' | translate}}: {{description.updatedAt | dateTimeCultureFormatter: "d MMMM y"}}< / div >
2024-04-05 16:17:33 +02:00
< div * ngIf = "isPublic" class = "col-auto ml-auto edited-date" > {{'DESCRIPTION-LISTING.STATES.PUBLISHED' | translate}}: {{description.finalizedAt | dateTimeCultureFormatter: "d MMMM y"}}< / div >
2023-11-29 14:26:40 +01:00
< / div >
2023-11-30 09:12:41 +01:00
< div * ngIf = "description.status === descriptionStatusEnum.Finalized" class = "col-auto description-title" > {{description.label}}< / div >
< div * ngIf = "description.status === descriptionStatusEnum.Draft" class = "col-auto description-title-draft" > {{description.label}}< / div >
2023-11-29 14:26:40 +01:00
< div class = "description-subtitle" >
2024-04-04 09:53:24 +02:00
< span * ngIf = "isUserDMPRelated()" class = "col-auto" > {{ enumUtils.toDmpUserRolesString(dmpService.getCurrentUserRolesInDmp(description?.dmp?.dmpUsers)) }}< / span >
< span * ngIf = "isUserDMPRelated()" > .< / span >
2023-12-01 18:18:41 +01:00
< span class = "col-auto" * ngIf = "description.status === descriptionStatusEnum.Finalized && description.dmp.accessType === dmpAccessTypeEnum.Public" > < span class = "material-icons icon-align" > public< / span > {{'DESCRIPTION-LISTING.STATES.PUBLIC' | translate}}< / span >
2023-11-30 09:12:41 +01:00
< span * ngIf = "description.status === descriptionStatusEnum.Finalized && description.dmp.accessType != dmpAccessTypeEnum.Public" class = "col-auto" > < span class = "material-icons icon-align" > done< / span > {{ enumUtils.toDescriptionStatusString(description.status) }}< / span >
< span * ngIf = "description.status === descriptionStatusEnum.Draft" class = " col-auto draft" > < span class = "material-icons icon-align" > create< / span > {{ enumUtils.toDescriptionStatusString(description.status) }}< / span >
2023-11-29 14:26:40 +01:00
< span > .< / span >
2024-02-09 21:46:05 +01:00
< span class = "col" > {{'DESCRIPTION-LISTING.GRANT' | translate}}: {{referenceService.getReferencesForTypesFirstSafe(description?.dmp?.dmpReferences, [this.referenceTypeService.getGrantReferenceType()])?.reference?.label}}< / span >
2023-11-29 14:26:40 +01:00
< / div >
< div class = "d-flex flex-direction-row pt-3 pb-3" >
2023-12-01 18:18:41 +01:00
< div class = "col-auto description-subtitle pr-0" > {{'DESCRIPTION-LISTING.PART-OF' | translate}}
< div class = "col-auto dmp-label ml-3" > {{'DESCRIPTION-LISTING.DMP' | translate}}< / div >
2023-11-29 14:26:40 +01:00
< / div >
2023-11-30 09:12:41 +01:00
< div class = "col dmp-title" > {{description.dmp?.label}}< / div >
2023-11-29 14:26:40 +01:00
< / div >
< / a >
< div class = "description-card-actions" >
2024-04-18 09:08:46 +02:00
< a class = "col-auto border-right pointer" * ngIf = "fileTransformerService.availableFormatsFor(fileTransformerEntityTypeEnum.Description) && fileTransformerService.availableFormatsFor(fileTransformerEntityTypeEnum.Description).length > 0" [ matMenuTriggerFor ] = " exportMenu " > < span class = "material-icons icon-align pr-2" > open_in_new< / span > {{'DESCRIPTION-LISTING.ACTIONS.EXPORT' | translate}}< / a >
2024-03-22 16:22:12 +01:00
< a class = "col-auto border-right pointer" * ngIf = "canInviteDmpUsers" ( click ) = " openShareDialog ( ) " > < span class = "material-icons icon-align pr-2" > group_add< / span > {{'DESCRIPTION-LISTING.ACTIONS.INVITE-SHORT' | translate}}< / a >
2023-12-01 18:18:41 +01:00
< a class = "col-auto border-right pointer" * ngIf = "isAuthenticated()" ( click ) = " copyToDmp ( description ) " > < span class = "material-icons icon-align pr-2" > file_copy< / span > {{'DESCRIPTION-LISTING.ACTIONS.COPY-DESCRIPTION' | translate}}< / a >
2024-03-15 13:13:55 +01:00
< a class = "col-auto border-right pointer" * ngIf = "canDelete" ( click ) = " deleteClicked ( description . id ) " > < span class = "material-icons icon-align pr-2" > delete< / span > {{ 'DESCRIPTION-LISTING.ACTIONS.DELETE' | translate }}< / a >
2023-11-29 14:26:40 +01:00
< / div >
< mat-menu # actionsMenu = "matMenu" >
2023-12-01 18:18:41 +01:00
< button * ngIf = "isAuthenticated()" mat-menu-item ( click ) = " copyToDmp ( description ) " class = "menu-item" >
< mat-icon > file_copy< / mat-icon > {{'DESCRIPTION-LISTING.ACTIONS.COPY-DESCRIPTION' | translate}}
2023-11-29 14:26:40 +01:00
< / button >
2024-03-15 13:13:55 +01:00
< button * ngIf = "canDelete" mat-menu-item ( click ) = " deleteClicked ( description . id ) " class = "menu-item" >
2023-12-01 18:18:41 +01:00
< mat-icon > delete< / mat-icon > {{ 'DESCRIPTION-LISTING.ACTIONS.DELETE' | translate }}
2023-11-29 14:26:40 +01:00
< / button >
< / mat-menu >
< mat-menu # exportMenu = "matMenu" xPosition = "before" >
2024-04-18 09:08:46 +02:00
< button mat-menu-item * ngFor = 'let fileTransformer of fileTransformerService.availableFormatsFor(fileTransformerEntityTypeEnum.Description)' ( click ) = " fileTransformerService . exportDescription ( description . id , fileTransformer . repositoryId , fileTransformer . format ) " >
2024-01-17 13:47:32 +01:00
< i class = "fa pr-2" [ ngClass ] = " fileTransformer . icon ? fileTransformer . icon : ' fa-file-o ' " > < / i >
< span > {{'GENERAL.FILE-TRANSFORMER.' + fileTransformer.format.toUpperCase() | translate}}< / span >
2023-11-29 14:26:40 +01:00
< / button >
< / mat-menu >
2024-01-17 13:47:32 +01:00
< / div >