diff --git a/.eslintrc.json b/.eslintrc.json index 888c968b5c..6ee63b269f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -294,7 +294,8 @@ "rules": { // Custom DSpace Angular rules "dspace-angular-html/themed-component-usages": "error", - "dspace-angular-html/no-disabled-attribute-on-button": "error" + "dspace-angular-html/no-disabled-attribute-on-button": "error", + "@angular-eslint/template/prefer-control-flow": "error" } }, { diff --git a/src/app/access-control/bulk-access/browse/bulk-access-browse.component.html b/src/app/access-control/bulk-access/browse/bulk-access-browse.component.html index 6c748ca2e7..8c2b37adbd 100644 --- a/src/app/access-control/bulk-access/browse/bulk-access-browse.component.html +++ b/src/app/access-control/bulk-access/browse/bulk-access-browse.component.html @@ -2,10 +2,10 @@
+ data-test="browse">
@@ -18,9 +18,9 @@ @@ -36,21 +36,25 @@ [showPaginator]="false" (prev)="pagePrev()" (next)="pageNext()"> - + @if ((objectsSelected$|async)?.hasSucceeded) { + + }
diff --git a/src/app/access-control/bulk-access/browse/bulk-access-browse.component.ts b/src/app/access-control/bulk-access/browse/bulk-access-browse.component.ts index a400742f01..fc7e86ad4c 100644 --- a/src/app/access-control/bulk-access/browse/bulk-access-browse.component.ts +++ b/src/app/access-control/bulk-access/browse/bulk-access-browse.component.ts @@ -1,8 +1,4 @@ -import { - AsyncPipe, - NgForOf, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, Input, @@ -59,11 +55,9 @@ import { BrowserOnlyPipe } from '../../../shared/utils/browser-only.pipe'; AsyncPipe, NgbAccordionModule, TranslateModule, - NgIf, NgbNavModule, ThemedSearchComponent, BrowserOnlyPipe, - NgForOf, NgxPaginationModule, SelectableListItemControlComponent, ListableObjectComponentLoaderComponent, diff --git a/src/app/access-control/bulk-access/settings/bulk-access-settings.component.ts b/src/app/access-control/bulk-access/settings/bulk-access-settings.component.ts index 264cefc708..a8c527c755 100644 --- a/src/app/access-control/bulk-access/settings/bulk-access-settings.component.ts +++ b/src/app/access-control/bulk-access/settings/bulk-access-settings.component.ts @@ -1,4 +1,4 @@ -import { NgIf } from '@angular/common'; + import { Component, ViewChild, @@ -16,7 +16,6 @@ import { AccessControlFormContainerComponent } from '../../../shared/access-cont imports: [ NgbAccordionModule, TranslateModule, - NgIf, AccessControlFormContainerComponent, ], standalone: true, diff --git a/src/app/access-control/epeople-registry/epeople-registry.component.html b/src/app/access-control/epeople-registry/epeople-registry.component.html index 8c462daf6b..c054a5dd55 100644 --- a/src/app/access-control/epeople-registry/epeople-registry.component.html +++ b/src/app/access-control/epeople-registry/epeople-registry.component.html @@ -6,7 +6,7 @@
@@ -18,77 +18,84 @@
-
-
-
+
+
- - - + class="form-control" [attr.aria-label]="labelPrefix + 'search.placeholder' | translate" + [placeholder]="(labelPrefix + 'search.placeholder' | translate)"> + + +
+ class="search-button btn btn-secondary">{{labelPrefix + 'button.see-all' | translate}}
- - - -
- - - - - - - - - - - - - - - + + } + +
{{labelPrefix + 'table.id' | translate}}{{labelPrefix + 'table.name' | translate}}{{labelPrefix + 'table.email' | translate}}{{labelPrefix + 'table.edit' | translate}}
{{epersonDto.eperson.id}}{{ dsoNameService.getName(epersonDto.eperson) }}{{epersonDto.eperson.email}} -
- + @if (epersonDto.ableToDelete) { + + } +
+
+
+
+ } + + @if ((pageInfoState$ | async)?.totalElements === 0) { + - - - - + }
diff --git a/src/app/access-control/epeople-registry/epeople-registry.component.ts b/src/app/access-control/epeople-registry/epeople-registry.component.ts index 6b62a13ecf..1aee792aba 100644 --- a/src/app/access-control/epeople-registry/epeople-registry.component.ts +++ b/src/app/access-control/epeople-registry/epeople-registry.component.ts @@ -1,8 +1,6 @@ import { AsyncPipe, NgClass, - NgForOf, - NgIf, } from '@angular/common'; import { Component, @@ -72,13 +70,11 @@ import { EPersonFormComponent } from './eperson-form/eperson-form.component'; TranslateModule, RouterModule, AsyncPipe, - NgIf, EPersonFormComponent, ReactiveFormsModule, ThemedLoadingComponent, PaginationComponent, NgClass, - NgForOf, ], standalone: true, }) diff --git a/src/app/access-control/epeople-registry/eperson-form/eperson-form.component.html b/src/app/access-control/epeople-registry/eperson-form/eperson-form.component.html index c6f3a915a9..9947d775a2 100644 --- a/src/app/access-control/epeople-registry/eperson-form/eperson-form.component.html +++ b/src/app/access-control/epeople-registry/eperson-form/eperson-form.component.html @@ -2,97 +2,111 @@
-
- - -

{{messagePrefix + '.create' | translate}}

-
- - + @if (activeEPerson$ | async) {

{{messagePrefix + '.edit' | translate}}

-
+ } @else { +

{{messagePrefix + '.create' | translate}}

+ } + + + [formModel]="formModel" + [formGroup]="formGroup" + [formLayout]="formLayout" + [displayCancel]="false" + [submitLabel]="submitLabel" + (submitForm)="onSubmit()">
-
- +
+ } + @if (canImpersonate$ | async) { +
+ @if (!isImpersonated) { + + } + @if (isImpersonated) { + + } +
+ } + @if (canDelete$ | async) { + -
-
- - -
- + } - + @if (!formGroup) { + + } -
-

{{messagePrefix + '.groupsEPersonIsMemberOf' | translate}}

- - - - - -
- - - - - - - - - - - - - - - -
{{messagePrefix + '.table.id' | translate}}{{messagePrefix + '.table.name' | translate}}{{messagePrefix + '.table.collectionOrCommunity' | translate}}
{{group.id}} - - {{ dsoNameService.getName(group) }} - - - {{ dsoNameService.getName((group.object | async)?.payload) }} -
-
- -
- - + }
diff --git a/src/app/access-control/epeople-registry/eperson-form/eperson-form.component.ts b/src/app/access-control/epeople-registry/eperson-form/eperson-form.component.ts index c7b57c986d..8b5a8817a9 100644 --- a/src/app/access-control/epeople-registry/eperson-form/eperson-form.component.ts +++ b/src/app/access-control/epeople-registry/eperson-form/eperson-form.component.ts @@ -1,8 +1,6 @@ import { AsyncPipe, NgClass, - NgFor, - NgIf, } from '@angular/common'; import { ChangeDetectorRef, @@ -84,8 +82,6 @@ import { ValidateEmailNotTaken } from './validators/email-taken.validator'; templateUrl: './eperson-form.component.html', imports: [ FormComponent, - NgIf, - NgFor, AsyncPipe, TranslateModule, NgClass, diff --git a/src/app/access-control/group-registry/group-form/group-form.component.html b/src/app/access-control/group-registry/group-form/group-form.component.html index 7e8c1ed1b4..060cc5b86d 100644 --- a/src/app/access-control/group-registry/group-form/group-form.component.html +++ b/src/app/access-control/group-registry/group-form/group-form.component.html @@ -2,13 +2,7 @@
-
- - -

{{messagePrefix + '.head.create' | translate}}

-
- - + @if (activeGroup$ | async) {

+ > {{messagePrefix + '.head.edit' | translate}}

-
+ } @else { +

{{messagePrefix + '.head.create' | translate}}

+ } - - - - - - - + + + @if ((activeGroup$ | async); as groupBeingEdited) { + @if (groupBeingEdited?.permanent) { + + } + @if ((activeGroupLinkedDSO$ | async); as activeGroupLinkedDSO) { + @if ((canEdit$ | async) !== true) { + + + } + } + } + [formModel]="formModel" + [formGroup]="formGroup" + [formLayout]="formLayout" + [displayCancel]="false" + (submitForm)="onSubmit()">
-
-
- -
-
+ class="btn btn-outline-secondary"> {{messagePrefix + '.return' | translate}} +
+ @if ((canEdit$ | async) && !(activeGroup$ | async)?.permanent) { +
+ +
+ } + - -
- -
- -
+ @if ((activeGroup$ | async); as groupBeingEdited) { +
+ @if (groupBeingEdited !== undefined) { + + } +
+ @if (groupBeingEdited !== undefined) { + + } + } +
- diff --git a/src/app/access-control/group-registry/group-form/group-form.component.ts b/src/app/access-control/group-registry/group-form/group-form.component.ts index d2ddb3266b..087db617e7 100644 --- a/src/app/access-control/group-registry/group-form/group-form.component.ts +++ b/src/app/access-control/group-registry/group-form/group-form.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { ChangeDetectorRef, Component, @@ -92,7 +89,6 @@ import { ValidateGroupExists } from './validators/group-exists.validator'; imports: [ FormComponent, AlertComponent, - NgIf, AsyncPipe, TranslateModule, ContextHelpDirective, diff --git a/src/app/access-control/group-registry/group-form/members-list/members-list.component.html b/src/app/access-control/group-registry/group-form/members-list/members-list.component.html index 82e07a898d..44a3775c05 100644 --- a/src/app/access-control/group-registry/group-form/members-list/members-list.component.html +++ b/src/app/access-control/group-registry/group-form/members-list/members-list.component.html @@ -3,63 +3,70 @@

{{messagePrefix + '.headMembers' | translate}}

- + @if ((ePeopleMembersOfGroup | async)?.totalElements > 0) { + +
+ + + + + + + + + + + @for (epersonDTO of (ePeopleMembersOfGroup | async)?.page; track epersonDTO) { + + + + + + + } + +
{{messagePrefix + '.table.id' | translate}}{{messagePrefix + '.table.name' | translate}}{{messagePrefix + '.table.identity' | translate}}{{messagePrefix + '.table.edit' | translate}}
{{epersonDTO.eperson.id}} + + {{ dsoNameService.getName(epersonDTO.eperson) }} + + + {{messagePrefix + '.table.email' | translate}}: {{ epersonDTO.eperson.email ? epersonDTO.eperson.email : '-' }}
+ {{messagePrefix + '.table.netid' | translate}}: {{ epersonDTO.eperson.netid ? epersonDTO.eperson.netid : '-' }} +
+
+ @if (epersonDTO.ableToDelete) { + + } + @if (!epersonDTO.ableToDelete) { + + } +
+
+
+
+ } -
- - - - - - - - - - - - - - - - - -
{{messagePrefix + '.table.id' | translate}}{{messagePrefix + '.table.name' | translate}}{{messagePrefix + '.table.identity' | translate}}{{messagePrefix + '.table.edit' | translate}}
{{epersonDTO.eperson.id}} - - {{ dsoNameService.getName(epersonDTO.eperson) }} - - - {{messagePrefix + '.table.email' | translate}}: {{ epersonDTO.eperson.email ? epersonDTO.eperson.email : '-' }}
- {{messagePrefix + '.table.netid' | translate}}: {{ epersonDTO.eperson.netid ? epersonDTO.eperson.netid : '-' }} -
-
- - -
-
+ @if ((ePeopleMembersOfGroup | async) === undefined || (ePeopleMembersOfGroup | async)?.totalElements === 0) { + - - - - + } @@ -78,68 +85,72 @@
+ class="form-control" aria-label="Search input"> - - + + +
-
-
- -
- +
+ +
+ - + @if ((ePeopleSearch | async)?.totalElements > 0) { + +
+ + + + + + + + + + + @for (eperson of (ePeopleSearch | async)?.page; track eperson) { + + + + + + + } + +
{{messagePrefix + '.table.id' | translate}}{{messagePrefix + '.table.name' | translate}}{{messagePrefix + '.table.identity' | translate}}{{messagePrefix + '.table.edit' | translate}}
{{eperson.id}} + + {{ dsoNameService.getName(eperson) }} + + + {{messagePrefix + '.table.email' | translate}}: {{ eperson.email ? eperson.email : '-' }}
+ {{messagePrefix + '.table.netid' | translate}}: {{ eperson.netid ? eperson.netid : '-' }} +
+
+ +
+
+
+
+ } -
- - - - - - - - - - - - - - - - - -
{{messagePrefix + '.table.id' | translate}}{{messagePrefix + '.table.name' | translate}}{{messagePrefix + '.table.identity' | translate}}{{messagePrefix + '.table.edit' | translate}}
{{eperson.id}} - - {{ dsoNameService.getName(eperson) }} - - - {{messagePrefix + '.table.email' | translate}}: {{ eperson.email ? eperson.email : '-' }}
- {{messagePrefix + '.table.netid' | translate}}: {{ eperson.netid ? eperson.netid : '-' }} -
-
- -
-
-
+ @if ((ePeopleSearch | async)?.totalElements === 0 && searchDone) { + + } -
- - - - + diff --git a/src/app/access-control/group-registry/group-form/members-list/members-list.component.ts b/src/app/access-control/group-registry/group-form/members-list/members-list.component.ts index 22934394c8..737e08427b 100644 --- a/src/app/access-control/group-registry/group-form/members-list/members-list.component.ts +++ b/src/app/access-control/group-registry/group-form/members-list/members-list.component.ts @@ -1,8 +1,6 @@ import { AsyncPipe, NgClass, - NgForOf, - NgIf, } from '@angular/common'; import { Component, @@ -109,11 +107,9 @@ export interface EPersonListActionConfig { ContextHelpDirective, ReactiveFormsModule, PaginationComponent, - NgIf, AsyncPipe, RouterLink, NgClass, - NgForOf, BtnDisabledDirective, ], standalone: true, diff --git a/src/app/access-control/group-registry/group-form/subgroup-list/subgroups-list.component.html b/src/app/access-control/group-registry/group-form/subgroup-list/subgroups-list.component.html index 32525fb2b5..d09ab08c42 100644 --- a/src/app/access-control/group-registry/group-form/subgroup-list/subgroups-list.component.html +++ b/src/app/access-control/group-registry/group-form/subgroup-list/subgroups-list.component.html @@ -3,51 +3,56 @@

{{messagePrefix + '.headSubgroups' | translate}}

- - -
- - - - - - - - - - - - - - - + + } + +
{{messagePrefix + '.table.id' | translate}}{{messagePrefix + '.table.name' | translate}}{{messagePrefix + '.table.collectionOrCommunity' | translate}}{{messagePrefix + '.table.edit' | translate}}
{{group.id}} - - {{ dsoNameService.getName(group) }} - - {{ dsoNameService.getName((group.object | async)?.payload)}} -
- +
+
+
+
+ } - + @if ((subGroups$ | async)?.payload?.totalElements === 0) { + + }

{{messagePrefix + 'head' | translate}}

@@ -17,8 +17,8 @@
+ class="form-control" [attr.aria-label]="messagePrefix + 'search.placeholder' | translate" + [placeholder]="(messagePrefix + 'search.placeholder' | translate)" >
- - + @if (loading$ | async) { + + } + @if ((pageInfoState$ | async)?.totalElements > 0 && (loading$ | async) !== true) { + +
+ + + + + + + + + + + + @for (groupDto of (groupsDto$ | async)?.page; track groupDto) { + + + + + + + + } + +
{{messagePrefix + 'table.id' | translate}}{{messagePrefix + 'table.name' | translate}}{{messagePrefix + 'table.collectionOrCommunity' | translate}}{{messagePrefix + 'table.members' | translate}}{{messagePrefix + 'table.edit' | translate}}
{{groupDto.group.id}}{{ dsoNameService.getName(groupDto.group) }}{{ dsoNameService.getName((groupDto.group.object | async)?.payload) }}{{groupDto.epersons?.totalElements + groupDto.subgroups?.totalElements}} +
+ @switch (groupDto.ableToEdit) { + @case (true) { + + } + @case (false) { + + } + } + @if (!groupDto.group?.permanent && groupDto.ableToDelete) { + + } +
+
+
+
+ } -
- - - - - - - - - - - - - - - - - - - -
{{messagePrefix + 'table.id' | translate}}{{messagePrefix + 'table.name' | translate}}{{messagePrefix + 'table.collectionOrCommunity' | translate}}{{messagePrefix + 'table.members' | translate}}{{messagePrefix + 'table.edit' | translate}}
{{groupDto.group.id}}{{ dsoNameService.getName(groupDto.group) }}{{ dsoNameService.getName((groupDto.group.object | async)?.payload) }}{{groupDto.epersons?.totalElements + groupDto.subgroups?.totalElements}} -
- - - - - -
-
+ @if ((pageInfoState$ | async)?.totalElements === 0) { + - - - + }
diff --git a/src/app/access-control/group-registry/groups-registry.component.ts b/src/app/access-control/group-registry/groups-registry.component.ts index 07b7317a1e..d3cf50ad4b 100644 --- a/src/app/access-control/group-registry/groups-registry.component.ts +++ b/src/app/access-control/group-registry/groups-registry.component.ts @@ -1,10 +1,4 @@ -import { - AsyncPipe, - NgForOf, - NgIf, - NgSwitch, - NgSwitchCase, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, OnDestroy, @@ -79,12 +73,8 @@ import { followLink } from '../../shared/utils/follow-link-config.model'; RouterLink, ReactiveFormsModule, AsyncPipe, - NgIf, PaginationComponent, - NgSwitch, - NgSwitchCase, NgbTooltipModule, - NgForOf, BtnDisabledDirective, ], standalone: true, diff --git a/src/app/admin/admin-import-batch-page/batch-import-page.component.html b/src/app/admin/admin-import-batch-page/batch-import-page.component.html index c321fb235d..38c6a1f349 100644 --- a/src/app/admin/admin-import-batch-page/batch-import-page.component.html +++ b/src/app/admin/admin-import-batch-page/batch-import-page.component.html @@ -1,10 +1,12 @@

{{'admin.batch-import.page.header' | translate}}

{{'admin.batch-import.page.help' | translate}}

-

- selected collection: {{getDspaceObjectName()}}  - {{'admin.batch-import.page.remove' | translate}} -

+ @if (dso) { +

+ selected collection: {{getDspaceObjectName()}}  + {{'admin.batch-import.page.remove' | translate}} +

+ }

@@ -21,32 +23,35 @@
+ [checkedLabel]="'admin.metadata-import.page.toggle.upload' | translate" + [uncheckedLabel]="'admin.metadata-import.page.toggle.url' | translate" + [checked]="isUpload" + (change)="toggleUpload()" > {{'admin.batch-import.page.toggle.help' | translate}} - - + @if (isUpload) { + + + } -
- -
+ @if (!isUpload) { +
+ +
+ }
+ (click)="this.onReturn();">{{'admin.metadata-import.page.button.return' | translate}} + (click)="this.importMetadata();">{{'admin.metadata-import.page.button.proceed' | translate}}
diff --git a/src/app/admin/admin-import-batch-page/batch-import-page.component.ts b/src/app/admin/admin-import-batch-page/batch-import-page.component.ts index 1f54b801c8..d4a578411d 100644 --- a/src/app/admin/admin-import-batch-page/batch-import-page.component.ts +++ b/src/app/admin/admin-import-batch-page/batch-import-page.component.ts @@ -1,7 +1,4 @@ -import { - Location, - NgIf, -} from '@angular/common'; +import { Location } from '@angular/common'; import { Component } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { Router } from '@angular/router'; @@ -36,7 +33,6 @@ import { FileDropzoneNoUploaderComponent } from '../../shared/upload/file-dropzo selector: 'ds-batch-import-page', templateUrl: './batch-import-page.component.html', imports: [ - NgIf, TranslateModule, FormsModule, UiSwitchModule, diff --git a/src/app/admin/admin-ldn-services/ldn-service-form/ldn-service-form.component.html b/src/app/admin/admin-ldn-services/ldn-service-form/ldn-service-form.component.html index 3a42eb7825..eefc372ac8 100644 --- a/src/app/admin/admin-ldn-services/ldn-service-form/ldn-service-form.component.html +++ b/src/app/admin/admin-ldn-services/ldn-service-form/ldn-service-form.component.html @@ -4,34 +4,38 @@

{{ isNewService ? ('ldn-create-service.title' | translate) : ('ldn-edit-registered-service.title' | translate) }}

-
- -
- -
-
+ @if (!isNewService) { +
+ +
+ +
+
+
-
+ }
-
- {{ 'ldn-new-service.form.error.name' | translate }} -
+ [placeholder]="'ldn-new-service.form.placeholder.name' | translate" class="form-control" + formControlName="name" + id="name" + name="name" + type="text"> + @if (formModel.get('name').invalid && formModel.get('name').touched) { +
+ {{ 'ldn-new-service.form.error.name' | translate }} +
+ }
+ class="form-control" formControlName="description" id="description" name="description">
@@ -40,30 +44,34 @@
-
- {{ 'ldn-new-service.form.error.url' | translate }} -
+ [placeholder]="'ldn-new-service.form.placeholder.url' | translate" class="form-control" + formControlName="url" + id="url" + name="url" + type="text"> + @if (formModel.get('url').invalid && formModel.get('url').touched) { +
+ {{ 'ldn-new-service.form.error.url' | translate }} +
+ }
-
- {{ 'ldn-new-service.form.error.score' | translate }} -
+ [placeholder]="'ldn-new-service.form.placeholder.score' | translate" formControlName="score" + id="score" + name="score" + min="0" + max="1" + step=".01" + class="form-control" + type="number"> + @if (formModel.get('score').invalid && formModel.get('score').touched) { +
+ {{ 'ldn-new-service.form.error.score' | translate }} +
+ }
@@ -73,21 +81,23 @@
+ [placeholder]="'ldn-new-service.form.placeholder.lowerIp' | translate" class="form-control me-2" + formControlName="lowerIp" + id="lowerIp" + name="lowerIp" + type="text"> -
-
- {{ 'ldn-new-service.form.error.ipRange' | translate }} + [placeholder]="'ldn-new-service.form.placeholder.upperIp' | translate" class="form-control" + formControlName="upperIp" + id="upperIp" + name="upperIp" + type="text">
+ @if ((formModel.get('lowerIp').invalid && formModel.get('lowerIp').touched) || (formModel.get('upperIp').invalid && formModel.get('upperIp').touched)) { +
+ {{ 'ldn-new-service.form.error.ipRange' | translate }} +
+ }
{{ 'ldn-new-service.form.hint.ipRange' | translate }}
@@ -97,223 +107,242 @@
-
-
- {{ 'ldn-new-service.form.error.ldnurl' | translate }} + [placeholder]="'ldn-new-service.form.placeholder.ldnUrl' | translate" class="form-control" + formControlName="ldnUrl" + id="ldnUrl" + name="ldnUrl" + type="text"> + @if (formModel.get('ldnUrl').invalid && formModel.get('ldnUrl').touched) { +
+ @if (formModel.get('ldnUrl').errors['required']) { +
+ {{ 'ldn-new-service.form.error.ldnurl' | translate }} +
+ } + @if (formModel.get('ldnUrl').errors['ldnUrlAlreadyAssociated']) { +
+ {{ 'ldn-new-service.form.error.ldnurl.ldnUrlAlreadyAssociated' | translate }} +
+ }
-
- {{ 'ldn-new-service.form.error.ldnurl.ldnUrlAlreadyAssociated' | translate }} -
-
+ }
-
-
- -
- + @if (areControlsInitialized) { +
- +
-
- + @if (formModel.get('notifyServiceInboundPatterns')['controls'][0]?.value?.pattern) { +
+ +
+
+ +
+ } +
- -
-
+ } -
-
- - - - -
-
-
- -
-
- -
- -
-
- -
- -
- -
-
-
-
- - -
-
- - - - + @for (constraint of (itemFiltersRD$ | async)?.payload?.page; track constraint; let internalIndex = $index) { + + } +
+
+
+
+ } +
+
+ +
+
+
+
+
+
+ + @if (markedForDeletionInboundPattern.includes(i)) { + + + + } +
+
-
+
- + } - + } {{ 'ldn-new-service.form.label.addPattern' | translate }} + class="add-pattern-link mb-2">{{ 'ldn-new-service.form.label.addPattern' | translate }}
-
-
- - - +
+
+ + + +
-
- -
- + + + -
+ class="fas fa-plus pe-2">{{ 'process.overview.new' | translate }}
- -
- - - - - - - - - - - - - - - + + } + +
{{ 'service.overview.table.name' | translate }}{{ 'service.overview.table.description' | translate }}{{ 'service.overview.table.status' | translate }}{{ 'service.overview.table.actions' | translate }}
{{ ldnService.name }} - - -
- {{ ldnService.description }} -
-
-
-
- - {{ ldnService.enabled ? ('ldn-service.overview.table.enabled' | translate) : ('ldn-service.overview.table.disabled' | translate) }} - - -
- - +
+
+
+
+ } @@ -72,8 +76,8 @@

{{'service.overview.delete.header' | translate }}

@@ -84,12 +88,12 @@
+ [attr.aria-label]="'ldn-service-overview-close-modal' | translate" + class="btn btn-outline-secondary me-2">{{ 'service.detail.delete.cancel' | translate }}
diff --git a/src/app/admin/admin-ldn-services/ldn-services-directory/ldn-services-directory.component.ts b/src/app/admin/admin-ldn-services/ldn-services-directory/ldn-services-directory.component.ts index cc2cba4704..59f21bb14a 100644 --- a/src/app/admin/admin-ldn-services/ldn-services-directory/ldn-services-directory.component.ts +++ b/src/app/admin/admin-ldn-services/ldn-services-directory/ldn-services-directory.component.ts @@ -1,8 +1,6 @@ import { AsyncPipe, NgClass, - NgFor, - NgIf, } from '@angular/common'; import { ChangeDetectionStrategy, @@ -54,8 +52,6 @@ import { LdnService } from '../ldn-services-model/ldn-services.model'; styleUrls: ['./ldn-services-directory.component.scss'], changeDetection: ChangeDetectionStrategy.Default, imports: [ - NgIf, - NgFor, TranslateModule, AsyncPipe, PaginationComponent, diff --git a/src/app/admin/admin-notify-dashboard/admin-notify-dashboard.component.html b/src/app/admin/admin-notify-dashboard/admin-notify-dashboard.component.html index 3adb7e857b..0e0183fe84 100644 --- a/src/app/admin/admin-notify-dashboard/admin-notify-dashboard.component.html +++ b/src/app/admin/admin-notify-dashboard/admin-notify-dashboard.component.html @@ -13,11 +13,13 @@ @@ -29,30 +29,34 @@
+ [query]="(searchOptions$ | async)?.query" + [scope]="(searchOptions$ | async)?.scope" + [currentUrl]="'./'" + [inPlaceSearch]="true" + [searchPlaceholder]="'collection.edit.item-mapper.search-form.placeholder' | translate" + (submitSearch)="performedSearch = true">
-
- + -
- + + } + @if (!performedSearch) { + + }
diff --git a/src/app/collection-page/collection-item-mapper/collection-item-mapper.component.ts b/src/app/collection-page/collection-item-mapper/collection-item-mapper.component.ts index 351a5daf60..4fce1601a9 100644 --- a/src/app/collection-page/collection-item-mapper/collection-item-mapper.component.ts +++ b/src/app/collection-page/collection-item-mapper/collection-item-mapper.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { ChangeDetectionStrategy, Component, @@ -86,7 +83,6 @@ import { followLink } from '../../shared/utils/follow-link-config.model'; TranslateModule, AsyncPipe, ItemSelectComponent, - NgIf, BrowserOnlyPipe, ], standalone: true, diff --git a/src/app/collection-page/collection-page.component.html b/src/app/collection-page/collection-page.component.html index e5b8bd6945..d38e38dd83 100644 --- a/src/app/collection-page/collection-page.component.html +++ b/src/app/collection-page/collection-page.component.html @@ -1,61 +1,71 @@
-
-
- -
-
- - - - - - - - - - - - - - - - -
- -
-
- - - - - -
-
- - - -
+ *ngVar="(collectionRD$ | async) as collectionRD"> + @if (collectionRD?.hasSucceeded) { +
+ @if (collectionRD?.payload; as collection) { +
+ +
+
+ + + + + @if (logoRD$) { + + + } + + + + + + + + + +
+ +
+
+ + + + +
+ @if (collection.copyrightText) { +
+ + + +
+ } +
+ }
-
- - + } + @if (collectionRD?.hasFailed) { + + } + @if (collectionRD?.isLoading) { + + }
diff --git a/src/app/collection-page/collection-page.component.ts b/src/app/collection-page/collection-page.component.ts index 0d240f5328..043d7e6426 100644 --- a/src/app/collection-page/collection-page.component.ts +++ b/src/app/collection-page/collection-page.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { ChangeDetectionStrategy, Component, @@ -65,7 +62,6 @@ import { getCollectionPageRoute } from './collection-page-routing-paths'; imports: [ ThemedComcolPageContentComponent, ErrorComponent, - NgIf, ThemedLoadingComponent, TranslateModule, ViewTrackerComponent, diff --git a/src/app/collection-page/create-collection-page/create-collection-page.component.html b/src/app/collection-page/create-collection-page/create-collection-page.component.html index 5c1b7b32a5..63e52925b9 100644 --- a/src/app/collection-page/create-collection-page/create-collection-page.component.html +++ b/src/app/collection-page/create-collection-page/create-collection-page.component.html @@ -1,15 +1,19 @@ -
-
-
-

{{ 'collection.create.sub-head' | translate:{ parent: dsoNameService.getName((parentRD$| async)?.payload) } }}

+@if ((isLoading$ | async) === false) { +
+
+
+

{{ 'collection.create.sub-head' | translate:{ parent: dsoNameService.getName((parentRD$| async)?.payload) } }}

+
+
- -
+}
- + @if (isLoading$ | async) { + + }
diff --git a/src/app/collection-page/create-collection-page/create-collection-page.component.ts b/src/app/collection-page/create-collection-page/create-collection-page.component.ts index a26bc9d6f8..989d77c15b 100644 --- a/src/app/collection-page/create-collection-page/create-collection-page.component.ts +++ b/src/app/collection-page/create-collection-page/create-collection-page.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { @@ -32,7 +29,6 @@ import { CollectionFormComponent } from '../collection-form/collection-form.comp TranslateModule, AsyncPipe, ThemedLoadingComponent, - NgIf, ], standalone: true, }) diff --git a/src/app/collection-page/delete-collection-page/delete-collection-page.component.html b/src/app/collection-page/delete-collection-page/delete-collection-page.component.html index 3bc2d23c34..2147cb85c0 100644 --- a/src/app/collection-page/delete-collection-page/delete-collection-page.component.html +++ b/src/app/collection-page/delete-collection-page/delete-collection-page.component.html @@ -1,23 +1,27 @@
-
- -
-

{{ 'collection.delete.head' | translate}}

-

{{ 'collection.delete.text' | translate:{ dso: dsoNameService.getName(dso) } }}

-
-
- - -
-
-
-
+
+ +
+

{{ 'collection.delete.head' | translate}}

+

{{ 'collection.delete.text' | translate:{ dso: dsoNameService.getName(dso) } }}

+
+
+ + +
+
+
+
-
+
diff --git a/src/app/collection-page/delete-collection-page/delete-collection-page.component.ts b/src/app/collection-page/delete-collection-page/delete-collection-page.component.ts index acc716b52a..61a6bd3336 100644 --- a/src/app/collection-page/delete-collection-page/delete-collection-page.component.ts +++ b/src/app/collection-page/delete-collection-page/delete-collection-page.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component } from '@angular/core'; import { ActivatedRoute, @@ -30,7 +27,6 @@ import { VarDirective } from '../../shared/utils/var.directive'; imports: [ TranslateModule, AsyncPipe, - NgIf, VarDirective, BtnDisabledDirective, ], diff --git a/src/app/collection-page/edit-collection-page/collection-access-control/collection-access-control.component.html b/src/app/collection-page/edit-collection-page/collection-access-control/collection-access-control.component.html index 4e957cf867..5f7ed57dcd 100644 --- a/src/app/collection-page/edit-collection-page/collection-access-control/collection-access-control.component.html +++ b/src/app/collection-page/edit-collection-page/collection-access-control/collection-access-control.component.html @@ -1,7 +1,8 @@ - - +@if (itemRD$ | async; as itemRD) { + + +} diff --git a/src/app/collection-page/edit-collection-page/collection-access-control/collection-access-control.component.ts b/src/app/collection-page/edit-collection-page/collection-access-control/collection-access-control.component.ts index 809fdcede8..6d63b69533 100644 --- a/src/app/collection-page/edit-collection-page/collection-access-control/collection-access-control.component.ts +++ b/src/app/collection-page/edit-collection-page/collection-access-control/collection-access-control.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, OnInit, @@ -21,7 +18,6 @@ import { AccessControlFormContainerComponent } from '../../../shared/access-cont styleUrls: ['./collection-access-control.component.scss'], imports: [ AccessControlFormContainerComponent, - NgIf, AsyncPipe, ], standalone: true, diff --git a/src/app/collection-page/edit-collection-page/collection-metadata/collection-metadata.component.html b/src/app/collection-page/edit-collection-page/collection-metadata/collection-metadata.component.html index 845c82458a..28c5f21869 100644 --- a/src/app/collection-page/edit-collection-page/collection-metadata/collection-metadata.component.html +++ b/src/app/collection-page/edit-collection-page/collection-metadata/collection-metadata.component.html @@ -1,23 +1,29 @@
{{ 'collection.edit.template.label' | translate}}
- - - + @if (!itemTemplateRD?.payload) { + + } + @if (itemTemplateRD?.payload) { + + } + @if (itemTemplateRD?.payload) { + + }
+ [isCreation]="false" + (submitForm)="onSubmit($event)" + (back)="navigateToHomePage()" +(finish)="navigateToHomePage()"> diff --git a/src/app/collection-page/edit-collection-page/collection-metadata/collection-metadata.component.ts b/src/app/collection-page/edit-collection-page/collection-metadata/collection-metadata.component.ts index df35199755..26f55770c1 100644 --- a/src/app/collection-page/edit-collection-page/collection-metadata/collection-metadata.component.ts +++ b/src/app/collection-page/edit-collection-page/collection-metadata/collection-metadata.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { ChangeDetectorRef, Component, @@ -56,7 +53,6 @@ import { getCollectionItemTemplateRoute } from '../../collection-page-routing-pa RouterLink, AsyncPipe, TranslateModule, - NgIf, VarDirective, ], standalone: true, diff --git a/src/app/collection-page/edit-collection-page/collection-roles/collection-roles.component.html b/src/app/collection-page/edit-collection-page/collection-roles/collection-roles.component.html index 7cd3d6a342..9408bd2ab3 100644 --- a/src/app/collection-page/edit-collection-page/collection-roles/collection-roles.component.html +++ b/src/app/collection-page/edit-collection-page/collection-roles/collection-roles.component.html @@ -1,8 +1,9 @@
- - + @for (comcolRole of comcolRoles$ | async; track comcolRole) { + + + }
diff --git a/src/app/collection-page/edit-collection-page/collection-roles/collection-roles.component.ts b/src/app/collection-page/edit-collection-page/collection-roles/collection-roles.component.ts index f402c99caf..bde3d30828 100644 --- a/src/app/collection-page/edit-collection-page/collection-roles/collection-roles.component.ts +++ b/src/app/collection-page/edit-collection-page/collection-roles/collection-roles.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgForOf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, OnInit, @@ -31,7 +28,6 @@ import { hasValue } from '../../../shared/empty.util'; templateUrl: './collection-roles.component.html', imports: [ ComcolRoleComponent, - NgForOf, AsyncPipe, ], standalone: true, diff --git a/src/app/collection-page/edit-collection-page/collection-source/collection-source-controls/collection-source-controls.component.html b/src/app/collection-page/edit-collection-page/collection-source/collection-source-controls/collection-source-controls.component.html index 9a46fac09a..147b10ff62 100644 --- a/src/app/collection-page/edit-collection-page/collection-source/collection-source-controls/collection-source-controls.component.html +++ b/src/app/collection-page/edit-collection-page/collection-source/collection-source-controls/collection-source-controls.component.html @@ -1,54 +1,65 @@
-
-

{{ 'collection.source.controls.head' | translate }}

-
- {{'collection.source.controls.harvest.status' | translate}} - {{contentSource?.harvestStatus}} -
-
- {{'collection.source.controls.harvest.start' | translate}} - {{contentSource?.harvestStartTime ? contentSource?.harvestStartTime : 'collection.source.controls.harvest.no-information'|translate }} -
-
- {{'collection.source.controls.harvest.last' | translate}} - {{contentSource?.lastHarvested ? contentSource?.lastHarvested : 'collection.source.controls.harvest.no-information'|translate }} -
-
- {{'collection.source.controls.harvest.message' | translate}} - {{contentSource?.message ? contentSource?.message: 'collection.source.controls.harvest.no-information'|translate }} -
- - - - - - - - - + }
+ }
diff --git a/src/app/collection-page/edit-collection-page/collection-source/collection-source-controls/collection-source-controls.component.ts b/src/app/collection-page/edit-collection-page/collection-source/collection-source-controls/collection-source-controls.component.ts index e35a64af16..1e07978af7 100644 --- a/src/app/collection-page/edit-collection-page/collection-source/collection-source-controls/collection-source-controls.component.ts +++ b/src/app/collection-page/edit-collection-page/collection-source/collection-source-controls/collection-source-controls.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { HttpClient } from '@angular/common/http'; import { Component, @@ -55,7 +52,6 @@ import { VarDirective } from '../../../../shared/utils/var.directive'; imports: [ TranslateModule, AsyncPipe, - NgIf, VarDirective, BtnDisabledDirective, ], diff --git a/src/app/collection-page/edit-collection-page/collection-source/collection-source.component.html b/src/app/collection-page/edit-collection-page/collection-source/collection-source.component.html index 715ef9e726..7f392b2f02 100644 --- a/src/app/collection-page/edit-collection-page/collection-source/collection-source.component.html +++ b/src/app/collection-page/edit-collection-page/collection-source/collection-source.component.html @@ -1,74 +1,92 @@
-
- - - -
-

{{ 'collection.edit.tabs.source.head' | translate }}

-
- - -
- -

{{ 'collection.edit.tabs.source.form.head' | translate }}

+
+ @if ((isReinstatable$ | async) !== true) { + + } + @if (isReinstatable$ | async) { + +} + +
+

{{ 'collection.edit.tabs.source.head' | translate }}

+@if (contentSource) { +
+ + +
+} +@if (!contentSource) { + +} +@if (contentSource && (contentSource?.harvestType !== harvestTypeNone)) { +

{{ 'collection.edit.tabs.source.form.head' | translate }}

+}
- + @if (formGroup && contentSource && (contentSource?.harvestType !== harvestTypeNone)) { + + }
-
+@if ((contentSource?.harvestType !== harvestTypeNone)) { +
-
-
- - - -
-
-
+
+
+ @if ((isReinstatable$ | async) !== true) { + + } + @if (isReinstatable$ | async) { + + } + +
+
+
+} + [isEnabled]="(hasChanges$ | async) !== true" + [shouldShow]="contentSource?.harvestType !== harvestTypeNone" + [collection]="(collectionRD$ |async)?.payload" + > diff --git a/src/app/collection-page/edit-collection-page/collection-source/collection-source.component.ts b/src/app/collection-page/edit-collection-page/collection-source/collection-source.component.ts index afeb2e2352..50b869e636 100644 --- a/src/app/collection-page/edit-collection-page/collection-source/collection-source.component.ts +++ b/src/app/collection-page/edit-collection-page/collection-source/collection-source.component.ts @@ -1,7 +1,6 @@ import { AsyncPipe, Location, - NgIf, } from '@angular/common'; import { Component, @@ -78,7 +77,6 @@ import { CollectionSourceControlsComponent } from './collection-source-controls/ imports: [ AsyncPipe, TranslateModule, - NgIf, ThemedLoadingComponent, FormComponent, CollectionSourceControlsComponent, diff --git a/src/app/collection-page/edit-collection-page/edit-collection-page.component.ts b/src/app/collection-page/edit-collection-page/edit-collection-page.component.ts index e629f80570..03fe92faa8 100644 --- a/src/app/collection-page/edit-collection-page/edit-collection-page.component.ts +++ b/src/app/collection-page/edit-collection-page/edit-collection-page.component.ts @@ -1,8 +1,6 @@ import { AsyncPipe, NgClass, - NgForOf, - NgIf, } from '@angular/common'; import { Component } from '@angular/core'; import { @@ -28,9 +26,7 @@ import { getCollectionPageRoute } from '../collection-page-routing-paths'; RouterLink, TranslateModule, NgClass, - NgForOf, RouterOutlet, - NgIf, AsyncPipe, ], standalone: true, diff --git a/src/app/collection-page/edit-item-template-page/edit-item-template-page.component.html b/src/app/collection-page/edit-item-template-page/edit-item-template-page.component.html index 7f0b2efba2..765d49b7bf 100644 --- a/src/app/collection-page/edit-item-template-page/edit-item-template-page.component.html +++ b/src/app/collection-page/edit-item-template-page/edit-item-template-page.component.html @@ -1,13 +1,17 @@
- + @if (itemRD?.hasSucceeded) {

{{ 'collection.edit.template.head' | translate:{ collection: dsoNameService.getName(collection) } }}

-
- - + } + @if (itemRD?.isLoading) { + + } + @if (itemRD?.hasFailed) { + + }
diff --git a/src/app/collection-page/edit-item-template-page/edit-item-template-page.component.ts b/src/app/collection-page/edit-item-template-page/edit-item-template-page.component.ts index f7c5dc4b14..eb8b36ec89 100644 --- a/src/app/collection-page/edit-item-template-page/edit-item-template-page.component.ts +++ b/src/app/collection-page/edit-item-template-page/edit-item-template-page.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, OnInit, @@ -39,7 +36,6 @@ import { getCollectionEditRoute } from '../collection-page-routing-paths'; RouterLink, AsyncPipe, VarDirective, - NgIf, TranslateModule, ThemedLoadingComponent, AlertComponent, diff --git a/src/app/community-list-page/community-list/community-list.component.html b/src/app/community-list-page/community-list/community-list.component.html index 6f3fc66705..864b5032d5 100644 --- a/src/app/community-list-page/community-list/community-list.component.html +++ b/src/app/community-list-page/community-list/community-list.component.html @@ -1,18 +1,24 @@ - +@if ((dataSource.loading$ | async) && !loadingNode) { + +} + class="example-tree-node show-more-node">
- - + @if ((dataSource.loading$ | async) !== true) { + + } + @if (node===loadingNode && dataSource.loading$ | async) { + + }
@@ -22,51 +28,61 @@ + class="example-tree-node expandable-node">
- + @if (hasChild(null, node) | async) { + + } - + @if ((hasChild(null, node) | async) !== true) { + + }
{{ dsoNameService.getName(node.payload) }}   - {{node.payload.archivedItemsCount}} + @if (node.payload.archivedItemsCount >= 0) { + {{node.payload.archivedItemsCount}} + }
-
- - - {{node.payload.shortDescription}} - -
+ @if (node.payload.shortDescription) { +
+ + + {{node.payload.shortDescription}} + +
+ }
-
- - -
+ @if (node===loadingNode && dataSource.loading$ | async) { +
+ + +
+ }
+ class="example-tree-node childless-node">
-
- - - {{node.payload.shortDescription}} - -
+ @if (node.payload.shortDescription) { +
+ + + {{node.payload.shortDescription}} + +
+ }
diff --git a/src/app/community-list-page/community-list/community-list.component.ts b/src/app/community-list-page/community-list/community-list.component.ts index 5819471d7e..c87fbf5d13 100644 --- a/src/app/community-list-page/community-list/community-list.component.ts +++ b/src/app/community-list-page/community-list/community-list.component.ts @@ -5,7 +5,6 @@ import { import { AsyncPipe, NgClass, - NgIf, } from '@angular/common'; import { Component, @@ -42,7 +41,7 @@ import { FlatNode } from '../flat-node.model'; templateUrl: './community-list.component.html', styleUrls: ['./community-list.component.scss'], standalone: true, - imports: [NgIf, ThemedLoadingComponent, CdkTreeModule, NgClass, RouterLink, TruncatableComponent, TruncatablePartComponent, AsyncPipe, TranslateModule], + imports: [ThemedLoadingComponent, CdkTreeModule, NgClass, RouterLink, TruncatableComponent, TruncatablePartComponent, AsyncPipe, TranslateModule], }) export class CommunityListComponent implements OnInit, OnDestroy { diff --git a/src/app/community-page/community-form/community-form.component.ts b/src/app/community-page/community-form/community-form.component.ts index d32d9e408f..147f6254ea 100644 --- a/src/app/community-page/community-form/community-form.component.ts +++ b/src/app/community-page/community-form/community-form.component.ts @@ -1,8 +1,4 @@ -import { - AsyncPipe, - NgClass, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, Input, @@ -49,8 +45,6 @@ import { VarDirective } from '../../shared/utils/var.directive'; UploaderComponent, AsyncPipe, ComcolPageLogoComponent, - NgIf, - NgClass, VarDirective, ], }) diff --git a/src/app/community-page/community-page.component.html b/src/app/community-page/community-page.component.html index c04575841e..13e5558d1b 100644 --- a/src/app/community-page/community-page.component.html +++ b/src/app/community-page/community-page.component.html @@ -1,43 +1,53 @@
-
-
- -
-
- - - - - - - - - - - - - - -
- -
-
- - - - - - -
-
- - - -
+ @if (communityRD?.hasSucceeded) { +
+ @if (communityRD?.payload; as communityPayload) { +
+ +
+
+ + + + @if (logoRD$) { + + + } + + + + + + + + + +
+ +
+
+ + + + +
+ @if (communityPayload.copyrightText) { +
+ + + +
+ } +
+ }
-
+ } - - + @if (communityRD?.hasFailed) { + + } + @if (communityRD?.isLoading) { + + }
diff --git a/src/app/community-page/community-page.component.ts b/src/app/community-page/community-page.component.ts index d04ecbee19..c8c947c900 100644 --- a/src/app/community-page/community-page.component.ts +++ b/src/app/community-page/community-page.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { ChangeDetectionStrategy, Component, @@ -56,7 +53,6 @@ import { ThemedCommunityPageSubCommunityListComponent } from './sections/sub-com ThemedComcolPageContentComponent, ErrorComponent, ThemedLoadingComponent, - NgIf, TranslateModule, ThemedCommunityPageSubCommunityListComponent, ThemedCollectionPageSubCollectionListComponent, diff --git a/src/app/community-page/create-community-page/create-community-page.component.html b/src/app/community-page/create-community-page/create-community-page.component.html index 1d3d6eb871..c07ca9c2e8 100644 --- a/src/app/community-page/create-community-page/create-community-page.component.html +++ b/src/app/community-page/create-community-page/create-community-page.component.html @@ -1,18 +1,25 @@ -
-
-
- -

{{ 'community.create.head' | translate }}

-

+
+
+ + @if (!parent) { +

{{ 'community.create.head' | translate }}

+ } @else { +

{{ 'community.create.sub-head' | translate:{ parent: dsoNameService.getName(parent) } }}

-
+ } + +
+

- -
+}
- + @if (isLoading$ | async) { + + }
diff --git a/src/app/community-page/create-community-page/create-community-page.component.ts b/src/app/community-page/create-community-page/create-community-page.component.ts index 082f6c4f0b..7c0c26ffcd 100644 --- a/src/app/community-page/create-community-page/create-community-page.component.ts +++ b/src/app/community-page/create-community-page/create-community-page.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component } from '@angular/core'; import { Router } from '@angular/router'; import { @@ -31,7 +28,6 @@ import { CommunityFormComponent } from '../community-form/community-form.compone CommunityFormComponent, TranslateModule, VarDirective, - NgIf, AsyncPipe, ThemedLoadingComponent, ], diff --git a/src/app/community-page/delete-community-page/delete-community-page.component.html b/src/app/community-page/delete-community-page/delete-community-page.component.html index 07b0bdfa9d..3403cc45db 100644 --- a/src/app/community-page/delete-community-page/delete-community-page.component.html +++ b/src/app/community-page/delete-community-page/delete-community-page.component.html @@ -1,22 +1,26 @@
-
- -
-

{{ 'community.delete.head' | translate}}

-

{{ 'community.delete.text' | translate:{ dso: dsoNameService.getName(dso) } }}

-
-
- - -
-
-
-
-
+
+ +
+

{{ 'community.delete.head' | translate}}

+

{{ 'community.delete.text' | translate:{ dso: dsoNameService.getName(dso) } }}

+
+
+ + +
+
+
+
+
diff --git a/src/app/community-page/delete-community-page/delete-community-page.component.ts b/src/app/community-page/delete-community-page/delete-community-page.component.ts index 9c19a5eb47..4799cd2db8 100644 --- a/src/app/community-page/delete-community-page/delete-community-page.component.ts +++ b/src/app/community-page/delete-community-page/delete-community-page.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component } from '@angular/core'; import { ActivatedRoute, @@ -31,7 +28,6 @@ import { VarDirective } from '../../shared/utils/var.directive'; TranslateModule, AsyncPipe, VarDirective, - NgIf, BtnDisabledDirective, ], standalone: true, diff --git a/src/app/community-page/edit-community-page/community-access-control/community-access-control.component.html b/src/app/community-page/edit-community-page/community-access-control/community-access-control.component.html index b4f2123b86..5f7d1d8fc4 100644 --- a/src/app/community-page/edit-community-page/community-access-control/community-access-control.component.html +++ b/src/app/community-page/edit-community-page/community-access-control/community-access-control.component.html @@ -1,6 +1,7 @@ - - +@if (itemRD$ | async; as itemRD) { + + +} diff --git a/src/app/community-page/edit-community-page/community-access-control/community-access-control.component.ts b/src/app/community-page/edit-community-page/community-access-control/community-access-control.component.ts index a0e094e21d..cc632c0e94 100644 --- a/src/app/community-page/edit-community-page/community-access-control/community-access-control.component.ts +++ b/src/app/community-page/edit-community-page/community-access-control/community-access-control.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, OnInit, @@ -21,7 +18,6 @@ import { AccessControlFormContainerComponent } from '../../../shared/access-cont styleUrls: ['./community-access-control.component.scss'], imports: [ AccessControlFormContainerComponent, - NgIf, AsyncPipe, ], standalone: true, diff --git a/src/app/community-page/edit-community-page/community-roles/community-roles.component.html b/src/app/community-page/edit-community-page/community-roles/community-roles.component.html index 7a048cf923..86e5b113fd 100644 --- a/src/app/community-page/edit-community-page/community-roles/community-roles.component.html +++ b/src/app/community-page/edit-community-page/community-roles/community-roles.component.html @@ -1,8 +1,9 @@
- - + @for (comcolRole of comcolRoles$ | async; track comcolRole) { + + + }
diff --git a/src/app/community-page/edit-community-page/community-roles/community-roles.component.ts b/src/app/community-page/edit-community-page/community-roles/community-roles.component.ts index 2e85cbe4c3..69234e07c3 100644 --- a/src/app/community-page/edit-community-page/community-roles/community-roles.component.ts +++ b/src/app/community-page/edit-community-page/community-roles/community-roles.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgForOf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, OnInit, @@ -31,7 +28,6 @@ import { ComcolRoleComponent } from '../../../shared/comcol/comcol-forms/edit-co imports: [ ComcolRoleComponent, AsyncPipe, - NgForOf, ], standalone: true, }) diff --git a/src/app/community-page/edit-community-page/edit-community-page.component.ts b/src/app/community-page/edit-community-page/edit-community-page.component.ts index 194976c3a8..77300023be 100644 --- a/src/app/community-page/edit-community-page/edit-community-page.component.ts +++ b/src/app/community-page/edit-community-page/edit-community-page.component.ts @@ -1,8 +1,6 @@ import { AsyncPipe, NgClass, - NgForOf, - NgIf, } from '@angular/common'; import { Component } from '@angular/core'; import { @@ -28,9 +26,7 @@ import { getCommunityPageRoute } from '../community-page-routing-paths'; RouterLink, TranslateModule, NgClass, - NgForOf, RouterOutlet, - NgIf, AsyncPipe, ], }) diff --git a/src/app/community-page/sections/sub-com-col-section/sub-collection-list/community-page-sub-collection-list.component.html b/src/app/community-page/sections/sub-com-col-section/sub-collection-list/community-page-sub-collection-list.component.html index 59d7b3bb5e..825399c23b 100644 --- a/src/app/community-page/sections/sub-com-col-section/sub-collection-list/community-page-sub-collection-list.component.html +++ b/src/app/community-page/sections/sub-com-col-section/sub-collection-list/community-page-sub-collection-list.component.html @@ -1,13 +1,19 @@ -
-

{{'community.sub-collection-list.head' | translate}}

- - -
- - + @if (subCollectionsRD?.hasSucceeded && subCollectionsRD?.payload.totalElements > 0) { +
+

{{'community.sub-collection-list.head' | translate}}

+ + +
+ } + @if (subCollectionsRD?.hasFailed) { + + } + @if (subCollectionsRD?.isLoading) { + + }
diff --git a/src/app/community-page/sections/sub-com-col-section/sub-collection-list/community-page-sub-collection-list.component.ts b/src/app/community-page/sections/sub-com-col-section/sub-collection-list/community-page-sub-collection-list.component.ts index 1e8ff1d46c..1d12860628 100644 --- a/src/app/community-page/sections/sub-com-col-section/sub-collection-list/community-page-sub-collection-list.component.ts +++ b/src/app/community-page/sections/sub-com-col-section/sub-collection-list/community-page-sub-collection-list.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, Input, @@ -44,7 +41,6 @@ import { VarDirective } from '../../../../shared/utils/var.directive'; ObjectCollectionComponent, ErrorComponent, ThemedLoadingComponent, - NgIf, TranslateModule, AsyncPipe, VarDirective, diff --git a/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.html b/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.html index a811014bcc..151737573e 100644 --- a/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.html +++ b/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.html @@ -1,8 +1,8 @@ - +@if ((community$ | async); as community) { + [community]="community"> + [community]="community"> - +} diff --git a/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.ts b/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.ts index 7aed3be076..ea21c66b54 100644 --- a/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.ts +++ b/src/app/community-page/sections/sub-com-col-section/sub-com-col-section.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, OnInit, @@ -26,7 +23,6 @@ import { ThemedCommunityPageSubCommunityListComponent } from './sub-community-li ThemedCommunityPageSubCommunityListComponent, ThemedCollectionPageSubCollectionListComponent, AsyncPipe, - NgIf, ], standalone: true, }) diff --git a/src/app/community-page/sections/sub-com-col-section/sub-community-list/community-page-sub-community-list.component.html b/src/app/community-page/sections/sub-com-col-section/sub-community-list/community-page-sub-community-list.component.html index 7f9840f6b7..7c3d23b809 100644 --- a/src/app/community-page/sections/sub-com-col-section/sub-community-list/community-page-sub-community-list.component.html +++ b/src/app/community-page/sections/sub-com-col-section/sub-community-list/community-page-sub-community-list.component.html @@ -1,13 +1,19 @@ -
-

{{'community.sub-community-list.head' | translate}}

- - -
- - + @if (subCommunitiesRD?.hasSucceeded && subCommunitiesRD?.payload.totalElements > 0) { +
+

{{'community.sub-community-list.head' | translate}}

+ + +
+ } + @if (subCommunitiesRD?.hasFailed) { + + } + @if (subCommunitiesRD?.isLoading) { + + }
diff --git a/src/app/community-page/sections/sub-com-col-section/sub-community-list/community-page-sub-community-list.component.ts b/src/app/community-page/sections/sub-com-col-section/sub-community-list/community-page-sub-community-list.component.ts index 36bd9919bb..972ba3d7fb 100644 --- a/src/app/community-page/sections/sub-com-col-section/sub-community-list/community-page-sub-community-list.component.ts +++ b/src/app/community-page/sections/sub-com-col-section/sub-community-list/community-page-sub-community-list.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, Input, @@ -43,7 +40,6 @@ import { VarDirective } from '../../../../shared/utils/var.directive'; ErrorComponent, ThemedLoadingComponent, VarDirective, - NgIf, ObjectCollectionComponent, AsyncPipe, TranslateModule, diff --git a/src/app/core/notifications/qa/models/quality-assurance-event.model.ts b/src/app/core/notifications/qa/models/quality-assurance-event.model.ts index e015dd01d9..e2a00f2e75 100644 --- a/src/app/core/notifications/qa/models/quality-assurance-event.model.ts +++ b/src/app/core/notifications/qa/models/quality-assurance-event.model.ts @@ -88,6 +88,15 @@ export interface SourceQualityAssuranceEventMessageObject { */ pidHref: string; + /** + * Possible link to a page + */ + href?: string; + + /** + * The service Id + */ + serviceId?: string; } /** diff --git a/src/app/core/registry/registry.service.spec.ts b/src/app/core/registry/registry.service.spec.ts index 9bac2af51d..b0f6009e98 100644 --- a/src/app/core/registry/registry.service.spec.ts +++ b/src/app/core/registry/registry.service.spec.ts @@ -44,7 +44,7 @@ import { RegistryService } from './registry.service'; @Component({ template: '', standalone: true, - imports: [CommonModule], + imports: [], }) class DummyComponent { } diff --git a/src/app/core/shared/search/search.service.spec.ts b/src/app/core/shared/search/search.service.spec.ts index 64b305ff64..403def3d32 100644 --- a/src/app/core/shared/search/search.service.spec.ts +++ b/src/app/core/shared/search/search.service.spec.ts @@ -40,7 +40,7 @@ import anything = jasmine.anything; @Component({ template: '', standalone: true, - imports: [CommonModule], + imports: [], }) class DummyComponent { } diff --git a/src/app/curation-form/curation-form.component.html b/src/app/curation-form/curation-form.component.html index 93c89499f3..b312a75dd7 100644 --- a/src/app/curation-form/curation-form.component.html +++ b/src/app/curation-form/curation-form.component.html @@ -1,20 +1,24 @@
-
-
-
- - -
-
- - - {{'curation.form.handle.hint' |translate }} -
+
+
+
+ + +
+ @if (!hasHandleValue()) { +
+ + + {{'curation.form.handle.hint' |translate }}
- + }
+ +
diff --git a/src/app/curation-form/curation-form.component.ts b/src/app/curation-form/curation-form.component.ts index 8e1c1b26c8..3a69a09466 100644 --- a/src/app/curation-form/curation-form.component.ts +++ b/src/app/curation-form/curation-form.component.ts @@ -1,7 +1,4 @@ -import { - NgFor, - NgIf, -} from '@angular/common'; + import { ChangeDetectorRef, Component, @@ -53,7 +50,7 @@ export const CURATION_CFG = 'plugin.named.org.dspace.curate.CurationTask'; selector: 'ds-curation-form', templateUrl: './curation-form.component.html', standalone: true, - imports: [FormsModule, ReactiveFormsModule, NgFor, NgIf, TranslateModule], + imports: [FormsModule, ReactiveFormsModule, TranslateModule], }) export class CurationFormComponent implements OnDestroy, OnInit { diff --git a/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-field-values/dso-edit-metadata-field-values.component.html b/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-field-values/dso-edit-metadata-field-values.component.html index aee9fb980c..d1ec80376e 100644 --- a/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-field-values/dso-edit-metadata-field-values.component.html +++ b/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-field-values/dso-edit-metadata-field-values.component.html @@ -1,16 +1,18 @@
- - + @for (mdValue of form.fields[mdField]; track mdValue; let idx = $index) { + + + }
diff --git a/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-field-values/dso-edit-metadata-field-values.component.ts b/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-field-values/dso-edit-metadata-field-values.component.ts index a96b77be62..003ce13ad3 100644 --- a/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-field-values/dso-edit-metadata-field-values.component.ts +++ b/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-field-values/dso-edit-metadata-field-values.component.ts @@ -3,10 +3,7 @@ import { CdkDropList, moveItemInArray, } from '@angular/cdk/drag-drop'; -import { - AsyncPipe, - NgFor, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, EventEmitter, @@ -32,7 +29,7 @@ import { DsoEditMetadataValueHeadersComponent } from '../dso-edit-metadata-value styleUrls: ['./dso-edit-metadata-field-values.component.scss'], templateUrl: './dso-edit-metadata-field-values.component.html', standalone: true, - imports: [CdkDropList, DsoEditMetadataValueHeadersComponent, NgFor, DsoEditMetadataValueComponent, AsyncPipe], + imports: [CdkDropList, DsoEditMetadataValueHeadersComponent, DsoEditMetadataValueComponent, AsyncPipe], }) /** * Component displaying table rows for each value for a certain metadata field within a form diff --git a/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-value/dso-edit-metadata-value.component.html b/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-value/dso-edit-metadata-value.component.html index 3bddba534d..fb765583b5 100644 --- a/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-value/dso-edit-metadata-value.component.html +++ b/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-value/dso-edit-metadata-value.component.html @@ -1,107 +1,135 @@
+ cdkDrag (cdkDragStarted)="dragging.emit(true)" (cdkDragEnded)="dragging.emit(false)" + [ngClass]="{ 'ds-warning': mdValue.reordered || mdValue.change === DsoEditMetadataChangeTypeEnum.UPDATE, 'ds-danger': mdValue.change === DsoEditMetadataChangeTypeEnum.REMOVE, 'ds-success': mdValue.change === DsoEditMetadataChangeTypeEnum.ADD, 'h-100': isOnlyValue }">
-
{{ mdValue.newValue.value }}
- - - - - -
+ } + @if (mdValue.editing && !mdRepresentation && ((isAuthorityControlled() | async) !== true || (enabledFreeTextEditing && (isSuggesterVocabulary() | async) !== true))) { + + } + @if (mdValue.editing && (isScrollableVocabulary() | async) && !enabledFreeTextEditing) { + + + } + @if (mdValue.editing && (((isHierarchicalVocabulary() | async) && !enabledFreeTextEditing) || (isSuggesterVocabulary() | async))) { + + + } + @if (mdValue.editing && ((isScrollableVocabulary() | async) || (isHierarchicalVocabulary() | async))) { + -
- - - {{ dsoType + '.edit.metadata.authority.label' | translate }} {{ mdValue.newValue.authority }} - -
-
-
- - - - + + {{ (enabledFreeTextEditing ? dsoType + '.edit.metadata.edit.buttons.disable-free-text-editing' : dsoType + '.edit.metadata.edit.buttons.enable-free-text-editing') | translate }} + + } + @if (!isVirtual && !mdValue.editing && mdValue.newValue.authority && mdValue.newValue.confidence !== ConfidenceTypeEnum.CF_UNSET && mdValue.newValue.confidence !== ConfidenceTypeEnum.CF_NOVALUE) { +
+ + + {{ dsoType + '.edit.metadata.authority.label' | translate }} {{ mdValue.newValue.authority }} +
-
- + } + @if ( mdValue.editing && (isAuthorityControlled() | async) && (isSuggesterVocabulary() | async)) { +
+
+ + + @if (!editingAuthority) { + + } + @if (editingAuthority) { + + } +
+
+ } + @if (mdRepresentation) { + + }
-
{{ mdValue.newValue.language }}
- + @if (!mdValue.editing) { +
{{ mdValue.newValue.language }}
+ } + @if (mdValue.editing) { + + }
- - + @if (!mdValue.editing) { + + } + @if (mdValue.editing) { + + }
diff --git a/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-value/dso-edit-metadata-value.component.ts b/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-value/dso-edit-metadata-value.component.ts index 4b79ae303c..e718080eb6 100644 --- a/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-value/dso-edit-metadata-value.component.ts +++ b/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata-value/dso-edit-metadata-value.component.ts @@ -5,7 +5,6 @@ import { import { AsyncPipe, NgClass, - NgIf, } from '@angular/common'; import { ChangeDetectorRef, @@ -95,7 +94,7 @@ import { styleUrls: ['./dso-edit-metadata-value.component.scss', '../dso-edit-metadata-shared/dso-edit-metadata-cells.scss'], templateUrl: './dso-edit-metadata-value.component.html', standalone: true, - imports: [VarDirective, CdkDrag, NgClass, NgIf, FormsModule, DebounceDirective, RouterLink, ThemedTypeBadgeComponent, NgbTooltipModule, CdkDragHandle, AsyncPipe, TranslateModule, DsDynamicScrollableDropdownComponent, DsDynamicOneboxComponent, AuthorityConfidenceStateDirective, BtnDisabledDirective], + imports: [VarDirective, CdkDrag, NgClass, FormsModule, DebounceDirective, RouterLink, ThemedTypeBadgeComponent, NgbTooltipModule, CdkDragHandle, AsyncPipe, TranslateModule, DsDynamicScrollableDropdownComponent, DsDynamicOneboxComponent, AuthorityConfidenceStateDirective, BtnDisabledDirective], }) /** * Component displaying a single editable row for a metadata value diff --git a/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata.component.html b/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata.component.html index 53ebd02491..e8dfce3a7b 100644 --- a/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata.component.html +++ b/src/app/dso-shared/dso-edit-metadata/dso-edit-metadata.component.html @@ -1,102 +1,120 @@ - diff --git a/src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal-volume/journal-volume-search-result-list-element.component.ts b/src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal-volume/journal-volume-search-result-list-element.component.ts index 4aee64c4f5..f01c859fdd 100644 --- a/src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal-volume/journal-volume-search-result-list-element.component.ts +++ b/src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal-volume/journal-volume-search-result-list-element.component.ts @@ -1,8 +1,6 @@ import { AsyncPipe, NgClass, - NgFor, - NgIf, } from '@angular/common'; import { Component } from '@angular/core'; import { RouterLink } from '@angular/router'; @@ -21,7 +19,7 @@ import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbn styleUrls: ['./journal-volume-search-result-list-element.component.scss'], templateUrl: './journal-volume-search-result-list-element.component.html', standalone: true, - imports: [NgIf, RouterLink, ThemedThumbnailComponent, NgClass, ThemedBadgesComponent, TruncatableComponent, TruncatablePartComponent, NgFor, AsyncPipe], + imports: [RouterLink, ThemedThumbnailComponent, NgClass, ThemedBadgesComponent, TruncatableComponent, TruncatablePartComponent, AsyncPipe], }) /** * The component for displaying a list element for an item search result of the type Journal Volume diff --git a/src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal/journal-search-result-list-element.component.html b/src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal/journal-search-result-list-element.component.html index 8acdfed9b5..c74b01934a 100644 --- a/src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal/journal-search-result-list-element.component.html +++ b/src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal/journal-search-result-list-element.component.html @@ -1,34 +1,52 @@
-
- - - - - - - - -
+ @if (showThumbnails) { +
+ @if (linkType !== linkTypes.None) { + + + + + } + @if (linkType === linkTypes.None) { + + + + + } +
+ }
- + @if (showLabel) { + + } - - + @if (linkType !== linkTypes.None) { + + } + @if (linkType === linkTypes.None) { + + } - - - - ; - - - - - -
+ + @if (dso.allMetadata(['creativeworkseries.issn']).length > 0) { + + @for (value of allMetadataValues(['creativeworkseries.issn']); track value; let last = $last) { + + @if (!last) { + ; + } + + } + + } + + + +
diff --git a/src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal/journal-search-result-list-element.component.ts b/src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal/journal-search-result-list-element.component.ts index 8ef14120e0..f589e2ffc5 100644 --- a/src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal/journal-search-result-list-element.component.ts +++ b/src/app/entity-groups/journal-entities/item-list-elements/search-result-list-elements/journal/journal-search-result-list-element.component.ts @@ -1,8 +1,6 @@ import { AsyncPipe, NgClass, - NgFor, - NgIf, } from '@angular/common'; import { Component } from '@angular/core'; import { RouterLink } from '@angular/router'; @@ -21,7 +19,7 @@ import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbn styleUrls: ['./journal-search-result-list-element.component.scss'], templateUrl: './journal-search-result-list-element.component.html', standalone: true, - imports: [NgIf, RouterLink, ThemedThumbnailComponent, NgClass, ThemedBadgesComponent, TruncatableComponent, TruncatablePartComponent, NgFor, AsyncPipe], + imports: [RouterLink, ThemedThumbnailComponent, NgClass, ThemedBadgesComponent, TruncatableComponent, TruncatablePartComponent, AsyncPipe], }) /** * The component for displaying a list element for an item search result of the type Journal diff --git a/src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal-issue/journal-issue-sidebar-search-list-element.component.ts b/src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal-issue/journal-issue-sidebar-search-list-element.component.ts index c0400d97fa..919d712c32 100644 --- a/src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal-issue/journal-issue-sidebar-search-list-element.component.ts +++ b/src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal-issue/journal-issue-sidebar-search-list-element.component.ts @@ -1,7 +1,6 @@ import { AsyncPipe, NgClass, - NgIf, } from '@angular/common'; import { Component } from '@angular/core'; import { TranslateModule } from '@ngx-translate/core'; @@ -23,7 +22,7 @@ import { TruncatablePartComponent } from '../../../../../shared/truncatable/trun selector: 'ds-journal-issue-sidebar-search-list-element', templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html', standalone: true, - imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule], + imports: [TruncatablePartComponent, NgClass, AsyncPipe, TranslateModule], }) /** * Component displaying a list element for a {@link ItemSearchResult} of type "JournalIssue" within the context of diff --git a/src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal-volume/journal-volume-sidebar-search-list-element.component.ts b/src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal-volume/journal-volume-sidebar-search-list-element.component.ts index 2275c23a4d..d9ec174b16 100644 --- a/src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal-volume/journal-volume-sidebar-search-list-element.component.ts +++ b/src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal-volume/journal-volume-sidebar-search-list-element.component.ts @@ -1,7 +1,6 @@ import { AsyncPipe, NgClass, - NgIf, } from '@angular/common'; import { Component } from '@angular/core'; import { TranslateModule } from '@ngx-translate/core'; @@ -23,7 +22,7 @@ import { TruncatablePartComponent } from '../../../../../shared/truncatable/trun selector: 'ds-journal-volume-sidebar-search-list-element', templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html', standalone: true, - imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule], + imports: [TruncatablePartComponent, NgClass, AsyncPipe, TranslateModule], }) /** * Component displaying a list element for a {@link ItemSearchResult} of type "JournalVolume" within the context of diff --git a/src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal/journal-sidebar-search-list-element.component.ts b/src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal/journal-sidebar-search-list-element.component.ts index 077d2ee390..2c17494f87 100644 --- a/src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal/journal-sidebar-search-list-element.component.ts +++ b/src/app/entity-groups/journal-entities/item-list-elements/sidebar-search-list-elements/journal/journal-sidebar-search-list-element.component.ts @@ -1,7 +1,6 @@ import { AsyncPipe, NgClass, - NgIf, } from '@angular/common'; import { Component } from '@angular/core'; import { TranslateModule } from '@ngx-translate/core'; @@ -23,7 +22,7 @@ import { TruncatablePartComponent } from '../../../../../shared/truncatable/trun selector: 'ds-journal-sidebar-search-list-element', templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html', standalone: true, - imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule], + imports: [TruncatablePartComponent, NgClass, AsyncPipe, TranslateModule], }) /** * Component displaying a list element for a {@link ItemSearchResult} of type "Journal" within the context of diff --git a/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.html b/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.html index 9469dcc7b5..a693891ae6 100644 --- a/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.html +++ b/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.html @@ -1,4 +1,6 @@ - +@if (showBackButton$ | async) { + +}
diff --git a/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.ts b/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.ts index ca6bb56e79..ed52174054 100644 --- a/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.ts +++ b/src/app/entity-groups/journal-entities/item-pages/journal-issue/journal-issue.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component } from '@angular/core'; import { RouterLink } from '@angular/router'; import { TranslateModule } from '@ngx-translate/core'; @@ -23,7 +20,7 @@ import { ThemedThumbnailComponent } from '../../../../thumbnail/themed-thumbnail styleUrls: ['./journal-issue.component.scss'], templateUrl: './journal-issue.component.html', standalone: true, - imports: [NgIf, ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, AsyncPipe, TranslateModule], + imports: [ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, AsyncPipe, TranslateModule], }) /** * The component for displaying metadata and relations of an item of the type Journal Issue diff --git a/src/app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component.html b/src/app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component.html index ff8811b4a6..13c8e12939 100644 --- a/src/app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component.html +++ b/src/app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component.html @@ -1,4 +1,6 @@ - +@if (showBackButton$ | async) { + +}
diff --git a/src/app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component.ts b/src/app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component.ts index fab0e105be..81764dd3ee 100644 --- a/src/app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component.ts +++ b/src/app/entity-groups/journal-entities/item-pages/journal-volume/journal-volume.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component } from '@angular/core'; import { RouterLink } from '@angular/router'; import { TranslateModule } from '@ngx-translate/core'; @@ -23,7 +20,7 @@ import { ThemedThumbnailComponent } from '../../../../thumbnail/themed-thumbnail styleUrls: ['./journal-volume.component.scss'], templateUrl: './journal-volume.component.html', standalone: true, - imports: [NgIf, ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, AsyncPipe, TranslateModule], + imports: [ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, AsyncPipe, TranslateModule], }) /** * The component for displaying metadata and relations of an item of the type Journal Volume diff --git a/src/app/entity-groups/journal-entities/item-pages/journal/journal.component.html b/src/app/entity-groups/journal-entities/item-pages/journal/journal.component.html index b5a09a842f..ddd15b5573 100644 --- a/src/app/entity-groups/journal-entities/item-pages/journal/journal.component.html +++ b/src/app/entity-groups/journal-entities/item-pages/journal/journal.component.html @@ -1,4 +1,6 @@ - +@if (showBackButton$ | async) { + +}
diff --git a/src/app/entity-groups/journal-entities/item-pages/journal/journal.component.ts b/src/app/entity-groups/journal-entities/item-pages/journal/journal.component.ts index 179355d869..7e3dc40c1e 100644 --- a/src/app/entity-groups/journal-entities/item-pages/journal/journal.component.ts +++ b/src/app/entity-groups/journal-entities/item-pages/journal/journal.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component } from '@angular/core'; import { RouterLink } from '@angular/router'; import { TranslateModule } from '@ngx-translate/core'; @@ -24,7 +21,7 @@ import { ThemedThumbnailComponent } from '../../../../thumbnail/themed-thumbnail styleUrls: ['./journal.component.scss'], templateUrl: './journal.component.html', standalone: true, - imports: [NgIf, ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, TabbedRelatedEntitiesSearchComponent, AsyncPipe, TranslateModule], + imports: [ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, TabbedRelatedEntitiesSearchComponent, AsyncPipe, TranslateModule], }) /** * The component for displaying metadata and relations of an item of the type Journal diff --git a/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/org-unit/org-unit-search-result-grid-element.component.html b/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/org-unit/org-unit-search-result-grid-element.component.html index 95c3ae70f2..2836fbfbe1 100644 --- a/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/org-unit/org-unit-search-result-grid-element.component.html +++ b/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/org-unit/org-unit-search-result-grid-element.component.html @@ -3,48 +3,62 @@
- -
- - -
-
- -
- - -
-
+ @if (linkType !== linkTypes.None) { + +
+ + +
+
+ } + @if (linkType === linkTypes.None) { + +
+ + +
+
+ }
- + @if (showLabel) { + + }

-

- - - -

-

- - + + + +

+ } + @if (dso.hasMetadata('organization.address.addressCountry')) { +

+ + {{firstMetadataValue('organization.address.addressCountry')}} - - , - {{firstMetadataValue('organization.address.addressLocality')}} - - -

- + @if (dso.hasMetadata('organization.address.addressLocality')) { + + , + {{firstMetadataValue('organization.address.addressLocality')}} + + } + +

+ } + @if (linkType !== linkTypes.None) { + + }
diff --git a/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/org-unit/org-unit-search-result-grid-element.component.ts b/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/org-unit/org-unit-search-result-grid-element.component.ts index 6b4dd0e21d..ae681a3129 100644 --- a/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/org-unit/org-unit-search-result-grid-element.component.ts +++ b/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/org-unit/org-unit-search-result-grid-element.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component } from '@angular/core'; import { RouterLink } from '@angular/router'; import { TranslateModule } from '@ngx-translate/core'; @@ -22,7 +19,7 @@ import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbn templateUrl: './org-unit-search-result-grid-element.component.html', animations: [focusShadow], standalone: true, - imports: [TruncatableComponent, NgIf, RouterLink, ThemedThumbnailComponent, ThemedBadgesComponent, TruncatablePartComponent, AsyncPipe, TranslateModule], + imports: [TruncatableComponent, RouterLink, ThemedThumbnailComponent, ThemedBadgesComponent, TruncatablePartComponent, AsyncPipe, TranslateModule], }) /** * The component for displaying a grid element for an item search result of the type Organisation Unit diff --git a/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/person/person-search-result-grid-element.component.html b/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/person/person-search-result-grid-element.component.html index 7d8ea40f38..f3613a8637 100644 --- a/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/person/person-search-result-grid-element.component.html +++ b/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/person/person-search-result-grid-element.component.html @@ -3,41 +3,53 @@
- -
- - -
-
- -
- - -
-
+ @if (linkType !== linkTypes.None) { + +
+ + +
+
+ } + @if (linkType === linkTypes.None) { + +
+ + +
+
+ }
- + @if (showLabel) { + + }

- -

- - - -

- + @if (dso.hasMetadata('person.email')) { + + } + @if (dso.hasMetadata('person.jobTitle')) { +

+ + + +

+ } + @if (linkType !== linkTypes.None) { + + }
diff --git a/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/person/person-search-result-grid-element.component.ts b/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/person/person-search-result-grid-element.component.ts index dc9b1f8f47..aaa0434c02 100644 --- a/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/person/person-search-result-grid-element.component.ts +++ b/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/person/person-search-result-grid-element.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component } from '@angular/core'; import { RouterLink } from '@angular/router'; import { TranslateModule } from '@ngx-translate/core'; @@ -22,7 +19,7 @@ import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbn templateUrl: './person-search-result-grid-element.component.html', animations: [focusShadow], standalone: true, - imports: [TruncatableComponent, NgIf, RouterLink, ThemedThumbnailComponent, ThemedBadgesComponent, TruncatablePartComponent, AsyncPipe, TranslateModule], + imports: [TruncatableComponent, RouterLink, ThemedThumbnailComponent, ThemedBadgesComponent, TruncatablePartComponent, AsyncPipe, TranslateModule], }) /** * The component for displaying a grid element for an item search result of the type Person diff --git a/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/project/project-search-result-grid-element.component.html b/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/project/project-search-result-grid-element.component.html index cc9c7f6f35..0c266c09dc 100644 --- a/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/project/project-search-result-grid-element.component.html +++ b/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/project/project-search-result-grid-element.component.html @@ -3,36 +3,46 @@
- -
- - -
-
- -
- - -
-
+ @if (linkType !== linkTypes.None) { + +
+ + +
+
+ } + @if (linkType === linkTypes.None) { + +
+ + +
+
+ }
- + @if (showLabel) { + + }

-

- - - -

- + @if (dso.hasMetadata('dc.description')) { +

+ + + +

+ } + @if (linkType !== linkTypes.None) { + + }
diff --git a/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/project/project-search-result-grid-element.component.ts b/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/project/project-search-result-grid-element.component.ts index 0ba8ce6f75..77f67f5756 100644 --- a/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/project/project-search-result-grid-element.component.ts +++ b/src/app/entity-groups/research-entities/item-grid-elements/search-result-grid-elements/project/project-search-result-grid-element.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component } from '@angular/core'; import { RouterLink } from '@angular/router'; import { TranslateModule } from '@ngx-translate/core'; @@ -22,7 +19,7 @@ import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbn templateUrl: './project-search-result-grid-element.component.html', animations: [focusShadow], standalone: true, - imports: [TruncatableComponent, NgIf, RouterLink, ThemedThumbnailComponent, ThemedBadgesComponent, TruncatablePartComponent, AsyncPipe, TranslateModule], + imports: [TruncatableComponent, RouterLink, ThemedThumbnailComponent, ThemedBadgesComponent, TruncatablePartComponent, AsyncPipe, TranslateModule], }) /** * The component for displaying a grid element for an item search result of the type Project diff --git a/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/org-unit/org-unit-search-result-list-element.component.html b/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/org-unit/org-unit-search-result-list-element.component.html index 91b694c072..6c6218dc43 100644 --- a/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/org-unit/org-unit-search-result-list-element.component.html +++ b/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/org-unit/org-unit-search-result-list-element.component.html @@ -1,40 +1,54 @@
-
- - - + @if (showThumbnails) { +
+ @if (linkType !== linkTypes.None) { + + + - - - + } + @if (linkType === linkTypes.None) { + + + + }
-
- - - - - - + @if (showLabel) { + + } + + @if (linkType !== linkTypes.None) { + + } + @if (linkType === linkTypes.None) { + + } + + @if (dso.allMetadata(['dc.description']).length > 0) { + - - - - -
+ [innerHTML]="firstMetadataValue('dc.description')"> + + + } + + +
diff --git a/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/org-unit/org-unit-search-result-list-element.component.ts b/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/org-unit/org-unit-search-result-list-element.component.ts index 9fb88d0eac..47cbefd4f5 100644 --- a/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/org-unit/org-unit-search-result-list-element.component.ts +++ b/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/org-unit/org-unit-search-result-list-element.component.ts @@ -1,7 +1,6 @@ import { AsyncPipe, NgClass, - NgIf, } from '@angular/common'; import { Component } from '@angular/core'; import { RouterLink } from '@angular/router'; @@ -21,7 +20,7 @@ import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbn styleUrls: ['./org-unit-search-result-list-element.component.scss'], templateUrl: './org-unit-search-result-list-element.component.html', standalone: true, - imports: [NgIf, RouterLink, ThemedThumbnailComponent, NgClass, ThemedBadgesComponent, TruncatableComponent, TruncatablePartComponent, AsyncPipe, TranslateModule], + imports: [RouterLink, ThemedThumbnailComponent, NgClass, ThemedBadgesComponent, TruncatableComponent, TruncatablePartComponent, AsyncPipe, TranslateModule], }) /** * The component for displaying a list element for an item search result of the type Organisation Unit diff --git a/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/person/person-search-result-list-element.component.html b/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/person/person-search-result-list-element.component.html index cc7905e719..b625212240 100644 --- a/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/person/person-search-result-list-element.component.html +++ b/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/person/person-search-result-list-element.component.html @@ -1,42 +1,58 @@
-
- - - - - - - - -
+ @if (showThumbnails) { +
+ @if (linkType !== linkTypes.None) { + + + + + } + @if (linkType === linkTypes.None) { + + + + + } +
+ }
- + @if (showLabel) { + + } - - + @if (linkType !== linkTypes.None) { + + } + @if (linkType === linkTypes.None) { + + } - - - - - + + @if (dso.allMetadata(['person.jobTitle']).length > 0) { + + @for (value of allMetadataValues(['person.jobTitle']); track value; let last = $last) { + + + + } + } - +
diff --git a/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/person/person-search-result-list-element.component.ts b/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/person/person-search-result-list-element.component.ts index 86ead8b825..870d3222b5 100644 --- a/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/person/person-search-result-list-element.component.ts +++ b/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/person/person-search-result-list-element.component.ts @@ -1,8 +1,6 @@ import { AsyncPipe, NgClass, - NgFor, - NgIf, } from '@angular/common'; import { Component, @@ -32,7 +30,7 @@ import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbn styleUrls: ['./person-search-result-list-element.component.scss'], templateUrl: './person-search-result-list-element.component.html', standalone: true, - imports: [NgIf, RouterLink, ThemedThumbnailComponent, NgClass, ThemedBadgesComponent, TruncatableComponent, TruncatablePartComponent, NgFor, AsyncPipe, TranslateModule], + imports: [RouterLink, ThemedThumbnailComponent, NgClass, ThemedBadgesComponent, TruncatableComponent, TruncatablePartComponent, AsyncPipe, TranslateModule], }) /** * The component for displaying a list element for an item search result of the type Person diff --git a/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/project/project-search-result-list-element.component.html b/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/project/project-search-result-list-element.component.html index 65cf6fa1f8..294f3d909c 100644 --- a/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/project/project-search-result-list-element.component.html +++ b/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/project/project-search-result-list-element.component.html @@ -1,42 +1,54 @@
-
- - - - - - - - -
+ @if (showThumbnails) { +
+ @if (linkType !== linkTypes.None) { + + + + + } + @if (linkType === linkTypes.None) { + + + + + } +
+ }
- - - + @if (showLabel) { + + } + @if (linkType !== linkTypes.None) { + + } + @if (linkType === linkTypes.None) { + + } - - - - - -
+ + + + + +
diff --git a/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/project/project-search-result-list-element.component.ts b/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/project/project-search-result-list-element.component.ts index 825f7be387..dd8f6acb44 100644 --- a/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/project/project-search-result-list-element.component.ts +++ b/src/app/entity-groups/research-entities/item-list-elements/search-result-list-elements/project/project-search-result-list-element.component.ts @@ -1,7 +1,6 @@ import { AsyncPipe, NgClass, - NgIf, } from '@angular/common'; import { Component } from '@angular/core'; import { RouterLink } from '@angular/router'; @@ -19,7 +18,7 @@ import { ThemedThumbnailComponent } from '../../../../../thumbnail/themed-thumbn styleUrls: ['./project-search-result-list-element.component.scss'], templateUrl: './project-search-result-list-element.component.html', standalone: true, - imports: [NgIf, RouterLink, ThemedThumbnailComponent, NgClass, TruncatableComponent, ThemedBadgesComponent, AsyncPipe], + imports: [RouterLink, ThemedThumbnailComponent, NgClass, TruncatableComponent, ThemedBadgesComponent, AsyncPipe], }) /** * The component for displaying a list element for an item search result of the type Project diff --git a/src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/org-unit/org-unit-sidebar-search-list-element.component.ts b/src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/org-unit/org-unit-sidebar-search-list-element.component.ts index 54885c4b86..9d41175ecd 100644 --- a/src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/org-unit/org-unit-sidebar-search-list-element.component.ts +++ b/src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/org-unit/org-unit-sidebar-search-list-element.component.ts @@ -1,7 +1,6 @@ import { AsyncPipe, NgClass, - NgIf, } from '@angular/common'; import { Component } from '@angular/core'; import { TranslateModule } from '@ngx-translate/core'; @@ -22,7 +21,7 @@ import { TruncatablePartComponent } from '../../../../../shared/truncatable/trun selector: 'ds-org-unit-sidebar-search-list-element', templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html', standalone: true, - imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule], + imports: [TruncatablePartComponent, NgClass, AsyncPipe, TranslateModule], }) /** * Component displaying a list element for a {@link ItemSearchResult} of type "OrgUnit" within the context of diff --git a/src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/person/person-sidebar-search-list-element.component.ts b/src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/person/person-sidebar-search-list-element.component.ts index 81739063e8..5a115f74de 100644 --- a/src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/person/person-sidebar-search-list-element.component.ts +++ b/src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/person/person-sidebar-search-list-element.component.ts @@ -1,7 +1,6 @@ import { AsyncPipe, NgClass, - NgIf, } from '@angular/common'; import { Component } from '@angular/core'; import { @@ -29,7 +28,7 @@ import { TruncatablePartComponent } from '../../../../../shared/truncatable/trun selector: 'ds-person-sidebar-search-list-element', templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html', standalone: true, - imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule], + imports: [TruncatablePartComponent, NgClass, AsyncPipe, TranslateModule], }) /** * Component displaying a list element for a {@link ItemSearchResult} of type "Person" within the context of diff --git a/src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/project/project-sidebar-search-list-element.component.ts b/src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/project/project-sidebar-search-list-element.component.ts index f3e2881bed..3002f3b283 100644 --- a/src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/project/project-sidebar-search-list-element.component.ts +++ b/src/app/entity-groups/research-entities/item-list-elements/sidebar-search-list-elements/project/project-sidebar-search-list-element.component.ts @@ -1,7 +1,6 @@ import { AsyncPipe, NgClass, - NgIf, } from '@angular/common'; import { Component } from '@angular/core'; import { TranslateModule } from '@ngx-translate/core'; @@ -22,7 +21,7 @@ import { TruncatablePartComponent } from '../../../../../shared/truncatable/trun selector: 'ds-project-sidebar-search-list-element', templateUrl: '../../../../../shared/object-list/sidebar-search-list-element/sidebar-search-list-element.component.html', standalone: true, - imports: [TruncatablePartComponent, NgClass, NgIf, AsyncPipe, TranslateModule], + imports: [TruncatablePartComponent, NgClass, AsyncPipe, TranslateModule], }) /** * Component displaying a list element for a {@link ItemSearchResult} of type "Project" within the context of diff --git a/src/app/entity-groups/research-entities/item-pages/org-unit/org-unit.component.html b/src/app/entity-groups/research-entities/item-pages/org-unit/org-unit.component.html index 80cf2c11be..36ec0e48c0 100644 --- a/src/app/entity-groups/research-entities/item-pages/org-unit/org-unit.component.html +++ b/src/app/entity-groups/research-entities/item-pages/org-unit/org-unit.component.html @@ -1,4 +1,6 @@ - +@if (showBackButton$ | async) { + +}
@@ -8,10 +10,10 @@
+ [defaultImage]="'assets/images/orgunit-placeholder.svg'" + [alt]="'thumbnail.orgunit.alt'" + [placeholder]="'thumbnail.orgunit.placeholder'" + > + > +@if (showBackButton$ | async) { + +}
@@ -8,9 +10,9 @@
+ [defaultImage]="'assets/images/person-placeholder.svg'" + [alt]="'thumbnail.person.alt'" + [placeholder]="'thumbnail.person.placeholder'"> +@if (showBackButton$ | async) { + +}
@@ -15,56 +17,56 @@ - - - - - - - - - - - - - -
-
- - - - - - - - - - - + + + + + + + + + + + + + +
+ +
diff --git a/src/app/entity-groups/research-entities/item-pages/project/project.component.ts b/src/app/entity-groups/research-entities/item-pages/project/project.component.ts index b654f5e17c..d5d33919a9 100644 --- a/src/app/entity-groups/research-entities/item-pages/project/project.component.ts +++ b/src/app/entity-groups/research-entities/item-pages/project/project.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component } from '@angular/core'; import { RouterLink } from '@angular/router'; import { TranslateModule } from '@ngx-translate/core'; @@ -24,7 +21,7 @@ import { ThemedThumbnailComponent } from '../../../../thumbnail/themed-thumbnail styleUrls: ['./project.component.scss'], templateUrl: './project.component.html', standalone: true, - imports: [NgIf, ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, ThemedMetadataRepresentationListComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, AsyncPipe, TranslateModule], + imports: [ThemedResultsBackButtonComponent, ThemedItemPageTitleFieldComponent, DsoEditMenuComponent, MetadataFieldWrapperComponent, ThemedThumbnailComponent, ThemedMetadataRepresentationListComponent, GenericItemPageFieldComponent, RelatedItemsComponent, RouterLink, AsyncPipe, TranslateModule], }) /** * The component for displaying metadata and relations of an item of the type Project diff --git a/src/app/entity-groups/research-entities/metadata-representations/person/person-item-metadata-list-element.component.html b/src/app/entity-groups/research-entities/metadata-representations/person/person-item-metadata-list-element.component.html index cbc68ef7cf..edb3aa7834 100644 --- a/src/app/entity-groups/research-entities/metadata-representations/person/person-item-metadata-list-element.component.html +++ b/src/app/entity-groups/research-entities/metadata-representations/person/person-item-metadata-list-element.component.html @@ -1,20 +1,27 @@ - - - ; - - - + @if (mdRepresentation.allMetadata(['person.jobTitle']).length > 0) { + + @for (value of mdRepresentation.allMetadataValues(['person.jobTitle']); track value; let last = $last) { + + @if (!last) { + ; + } + + } + + } + - - + [innerHTML]="mdRepresentation.getValue()" + [ngbTooltip]="mdRepresentation.allMetadata(['person.jobTitle']).length > 0 ? descTemplate : null"> + @if (mdRepresentation.firstMetadata('person.identifier.orcid')) { + + + } diff --git a/src/app/entity-groups/research-entities/metadata-representations/person/person-item-metadata-list-element.component.ts b/src/app/entity-groups/research-entities/metadata-representations/person/person-item-metadata-list-element.component.ts index c7b9e1a333..82e5f54ebb 100644 --- a/src/app/entity-groups/research-entities/metadata-representations/person/person-item-metadata-list-element.component.ts +++ b/src/app/entity-groups/research-entities/metadata-representations/person/person-item-metadata-list-element.component.ts @@ -1,7 +1,4 @@ -import { - NgFor, - NgIf, -} from '@angular/common'; + import { Component } from '@angular/core'; import { RouterLink } from '@angular/router'; import { NgbTooltipModule } from '@ng-bootstrap/ng-bootstrap'; @@ -14,7 +11,7 @@ import { TruncatableComponent } from '../../../../shared/truncatable/truncatable selector: 'ds-person-item-metadata-list-element', templateUrl: './person-item-metadata-list-element.component.html', standalone: true, - imports: [NgIf, NgFor, TruncatableComponent, RouterLink, NgbTooltipModule, OrcidBadgeAndTooltipComponent], + imports: [TruncatableComponent, RouterLink, NgbTooltipModule, OrcidBadgeAndTooltipComponent], }) /** * The component for displaying an item of the type Person as a metadata field diff --git a/src/app/entity-groups/research-entities/submission/item-list-elements/external-source-entry/external-source-entry-list-submission-element.component.html b/src/app/entity-groups/research-entities/submission/item-list-elements/external-source-entry/external-source-entry-list-submission-element.component.html index 9d4a3566ad..78c86ae639 100644 --- a/src/app/entity-groups/research-entities/submission/item-list-elements/external-source-entry/external-source-entry-list-submission-element.component.html +++ b/src/app/entity-groups/research-entities/submission/item-list-elements/external-source-entry/external-source-entry-list-submission-element.component.html @@ -1,4 +1,6 @@
{{object.display}}
- + @if (uri) { + + }
diff --git a/src/app/entity-groups/research-entities/submission/item-list-elements/external-source-entry/external-source-entry-list-submission-element.component.ts b/src/app/entity-groups/research-entities/submission/item-list-elements/external-source-entry/external-source-entry-list-submission-element.component.ts index d7c5b8aafd..c9eea61118 100644 --- a/src/app/entity-groups/research-entities/submission/item-list-elements/external-source-entry/external-source-entry-list-submission-element.component.ts +++ b/src/app/entity-groups/research-entities/submission/item-list-elements/external-source-entry/external-source-entry-list-submission-element.component.ts @@ -1,4 +1,4 @@ -import { NgIf } from '@angular/common'; + import { Component, OnInit, @@ -19,7 +19,7 @@ import { AbstractListableElementComponent } from '../../../../../shared/object-c styleUrls: ['./external-source-entry-list-submission-element.component.scss'], templateUrl: './external-source-entry-list-submission-element.component.html', standalone: true, - imports: [NgIf], + imports: [], }) /** * The component for displaying a list element of an external source entry diff --git a/src/app/entity-groups/research-entities/submission/item-list-elements/org-unit/org-unit-search-result-list-submission-element.component.html b/src/app/entity-groups/research-entities/submission/item-list-elements/org-unit/org-unit-search-result-list-submission-element.component.html index 6b9a775391..90ec0261e2 100644 --- a/src/app/entity-groups/research-entities/submission/item-list-elements/org-unit/org-unit-search-result-list-submission-element.component.html +++ b/src/app/entity-groups/research-entities/submission/item-list-elements/org-unit/org-unit-search-result-list-submission-element.component.html @@ -1,22 +1,32 @@
- - + + -
- +
+ @if (useNameVariants) { + + } -
+ @if (!useNameVariants) { +
+ } - - - , - - - - - -
+ + @if (dso.allMetadata('organization.address.addressLocality').length > 0) { + + @if (dso.allMetadata('organization.address.addressCountry').length > 0) { + , + } + + } + @if (dso.allMetadata('organization.address.addressCountry').length > 0) { + + + + } + +
diff --git a/src/app/entity-groups/research-entities/submission/item-list-elements/org-unit/org-unit-search-result-list-submission-element.component.ts b/src/app/entity-groups/research-entities/submission/item-list-elements/org-unit/org-unit-search-result-list-submission-element.component.ts index cff764d744..e08f917fe9 100644 --- a/src/app/entity-groups/research-entities/submission/item-list-elements/org-unit/org-unit-search-result-list-submission-element.component.ts +++ b/src/app/entity-groups/research-entities/submission/item-list-elements/org-unit/org-unit-search-result-list-submission-element.component.ts @@ -1,4 +1,4 @@ -import { NgIf } from '@angular/common'; + import { Component, Inject, @@ -37,7 +37,7 @@ import { OrgUnitInputSuggestionsComponent } from './org-unit-suggestions/org-uni styleUrls: ['./org-unit-search-result-list-submission-element.component.scss'], templateUrl: './org-unit-search-result-list-submission-element.component.html', standalone: true, - imports: [NgIf, OrgUnitInputSuggestionsComponent, FormsModule], + imports: [OrgUnitInputSuggestionsComponent, FormsModule], }) /** diff --git a/src/app/entity-groups/research-entities/submission/item-list-elements/org-unit/org-unit-suggestions/org-unit-input-suggestions.component.html b/src/app/entity-groups/research-entities/submission/item-list-elements/org-unit/org-unit-suggestions/org-unit-input-suggestions.component.html index 58f39b8d0b..45a4dc9bb3 100644 --- a/src/app/entity-groups/research-entities/submission/item-list-elements/org-unit/org-unit-suggestions/org-unit-input-suggestions.component.html +++ b/src/app/entity-groups/research-entities/submission/item-list-elements/org-unit/org-unit-suggestions/org-unit-input-suggestions.component.html @@ -1,26 +1,28 @@
- - -