From 069fd025172bb123b5dca11c3a7621bb0a35d2be Mon Sep 17 00:00:00 2001 From: FrancescoMolinaro Date: Wed, 5 Feb 2025 18:33:54 +0100 Subject: [PATCH] [DURACOM-307] start migration and type fixing --- .../browse/bulk-access-browse.component.ts | 12 +- .../bulk-access-settings.component.ts | 7 +- .../epeople-registry.component.ts | 13 +- .../eperson-form/eperson-form.component.ts | 13 +- .../group-form/group-form.component.html | 88 +++-- .../group-form/group-form.component.ts | 10 +- .../members-list/members-list.component.html | 243 ++++++------ .../members-list/members-list.component.ts | 13 +- .../subgroups-list.component.html | 188 ++++----- .../subgroup-list/subgroups-list.component.ts | 12 +- .../groups-registry.component.ts | 16 +- .../batch-import-page.component.ts | 10 +- .../ldn-service-form.component.ts | 12 +- .../ldn-services-directory.component.ts | 13 +- .../admin-notify-dashboard.component.html | 10 +- .../admin-notify-dashboard.component.ts | 10 +- .../admin-notify-detail-modal.component.html | 8 +- .../admin-notify-detail-modal.component.ts | 11 +- .../admin-notify-logs-result.component.ts | 10 +- .../admin-notify-metrics.component.html | 16 +- .../admin-notify-metrics.component.ts | 7 +- .../admin-notify-search-result.component.html | 86 +++-- .../admin-notify-search-result.component.ts | 13 +- .../bitstream-formats.component.ts | 12 +- .../format-form/format-form.component.html | 8 +- .../format-form/format-form.component.ts | 7 +- .../metadata-registry.component.ts | 13 +- .../metadata-schema-form.component.html | 22 +- .../metadata-schema-form.component.ts | 10 +- .../metadata-field-form.component.html | 22 +- .../metadata-field-form.component.ts | 10 +- .../metadata-schema.component.ts | 13 +- .../filtered-collections.component.html | 124 +++--- .../filtered-collections.component.ts | 10 +- .../filtered-items/filtered-items-model.ts | 9 +- .../filtered-items.component.html | 364 ++++++++++-------- .../filtered-items.component.ts | 17 +- .../filtered-items/option-vo.model.ts | 1 + .../filtered-items/preset-query.model.ts | 1 + .../filters-section.component.ts | 7 +- ...admin-search-result-actions.component.html | 62 ++- ...m-admin-search-result-actions.component.ts | 7 +- .../admin-sidebar.component.html | 104 +++-- .../admin-sidebar/admin-sidebar.component.ts | 10 +- ...dable-admin-sidebar-section.component.html | 46 ++- ...andable-admin-sidebar-section.component.ts | 10 +- ...item-admin-workflow-actions.component.html | 14 +- ...w-item-admin-workflow-actions.component.ts | 7 +- ...ervision-order-group-selector.component.ts | 4 +- .../supervision-order-status.component.ts | 8 +- ...item-admin-workflow-actions.component.html | 24 +- ...e-item-admin-workflow-actions.component.ts | 7 +- ...t-admin-workflow-grid-element.component.ts | 4 +- ...t-admin-workflow-list-element.component.ts | 7 +- ...t-admin-workflow-list-element.component.ts | 7 +- .../edit-bitstream-page.component.html | 58 +-- .../edit-bitstream-page.component.ts | 10 +- .../breadcrumbs/breadcrumbs.component.html | 30 +- src/app/breadcrumbs/breadcrumbs.component.ts | 9 +- .../browse-by-metadata.component.html | 38 +- .../browse-by-metadata.component.ts | 11 +- .../browse-by-taxonomy.component.html | 34 +- .../browse-by-taxonomy.component.ts | 10 +- .../collection-item-mapper.component.html | 44 ++- .../collection-item-mapper.component.ts | 10 +- .../collection-page.component.ts | 10 +- .../create-collection-page.component.html | 24 +- .../create-collection-page.component.ts | 10 +- .../delete-collection-page.component.ts | 10 +- .../collection-access-control.component.html | 13 +- .../collection-access-control.component.ts | 10 +- .../collection-metadata.component.html | 40 +- .../collection-metadata.component.ts | 10 +- .../collection-roles.component.ts | 10 +- .../collection-source-controls.component.ts | 10 +- .../collection-source.component.ts | 11 +- .../edit-item-template-page.component.html | 12 +- .../edit-item-template-page.component.ts | 10 +- .../community-list.component.ts | 8 +- .../community-page.component.ts | 10 +- .../create-community-page.component.html | 31 +- .../create-community-page.component.ts | 10 +- .../delete-community-page.component.ts | 10 +- .../community-access-control.component.html | 13 +- .../community-access-control.component.ts | 10 +- .../community-roles.component.ts | 10 +- .../edit-community-page.component.ts | 13 +- ...ty-page-sub-collection-list.component.html | 28 +- ...nity-page-sub-collection-list.component.ts | 10 +- .../sub-com-col-section.component.html | 8 +- .../sub-com-col-section.component.ts | 10 +- ...ity-page-sub-community-list.component.html | 28 +- ...unity-page-sub-community-list.component.ts | 10 +- .../models/quality-assurance-event.model.ts | 9 + .../core/registry/registry.service.spec.ts | 2 +- .../core/shared/search/search.service.spec.ts | 2 +- .../curation-form/curation-form.component.ts | 7 +- ...-edit-metadata-field-values.component.html | 28 +- ...so-edit-metadata-field-values.component.ts | 7 +- .../dso-edit-metadata-value.component.ts | 8 +- .../dso-edit-metadata.component.ts | 8 +- .../metadata-field-selector.component.html | 48 ++- .../metadata-field-selector.component.ts | 9 +- ...-search-result-grid-element.component.html | 76 ++-- ...ue-search-result-grid-element.component.ts | 7 +- ...-search-result-grid-element.component.html | 76 ++-- ...me-search-result-grid-element.component.ts | 7 +- ...-search-result-grid-element.component.html | 86 +++-- ...al-search-result-grid-element.component.ts | 7 +- ...-search-result-list-element.component.html | 94 +++-- ...ue-search-result-list-element.component.ts | 9 +- ...-search-result-list-element.component.html | 94 +++-- ...me-search-result-list-element.component.ts | 9 +- ...-search-result-list-element.component.html | 76 ++-- ...al-search-result-list-element.component.ts | 9 +- .../journal-issue.component.html | 4 +- .../journal-issue/journal-issue.component.ts | 7 +- .../journal-volume.component.html | 4 +- .../journal-volume.component.ts | 7 +- .../item-pages/journal/journal.component.html | 4 +- .../item-pages/journal/journal.component.ts | 7 +- ...-search-result-grid-element.component.html | 88 +++-- ...it-search-result-grid-element.component.ts | 7 +- ...-search-result-grid-element.component.html | 74 ++-- ...on-search-result-grid-element.component.ts | 7 +- ...-search-result-grid-element.component.html | 62 +-- ...ct-search-result-grid-element.component.ts | 7 +- ...-search-result-list-element.component.html | 80 ++-- ...it-search-result-list-element.component.ts | 8 +- ...-search-result-list-element.component.html | 82 ++-- ...on-search-result-list-element.component.ts | 9 +- ...-search-result-list-element.component.html | 76 ++-- ...ct-search-result-list-element.component.ts | 8 +- .../org-unit/org-unit.component.html | 14 +- .../item-pages/org-unit/org-unit.component.ts | 7 +- .../item-pages/person/person.component.html | 10 +- .../item-pages/person/person.component.ts | 7 +- .../item-pages/project/project.component.html | 106 ++--- .../item-pages/project/project.component.ts | 7 +- ...-item-metadata-list-element.component.html | 35 +- ...on-item-metadata-list-element.component.ts | 7 +- ...try-list-submission-element.component.html | 4 +- ...entry-list-submission-element.component.ts | 4 +- ...esult-list-submission-element.component.ts | 4 +- .../org-unit-input-suggestions.component.html | 46 +-- .../org-unit-input-suggestions.component.ts | 8 +- ...ult-list-submission-element.component.html | 64 +-- ...esult-list-submission-element.component.ts | 9 +- .../person-input-suggestions.component.html | 48 +-- .../person-input-suggestions.component.ts | 8 +- src/app/footer/footer.component.ts | 8 +- .../forgot-password-form.component.ts | 10 +- .../context-help-toggle.component.html | 22 +- .../context-help-toggle.component.ts | 7 +- src/app/header/header.component.ts | 7 +- .../health-info-component.component.ts | 8 +- .../health-info/health-info.component.ts | 8 +- .../health-page/health-page.component.html | 54 +-- src/app/health-page/health-page.component.ts | 7 +- .../health-component.component.ts | 8 +- .../health-panel/health-panel.component.ts | 8 +- .../health-status/health-status.component.ts | 7 +- src/app/home-page/home-page.component.html | 36 +- src/app/home-page/home-page.component.ts | 9 +- .../recent-item-list.component.ts | 10 +- .../top-level-community-list.component.html | 34 +- .../top-level-community-list.component.ts | 7 +- .../feedback-form.component.html | 28 +- .../feedback-form/feedback-form.component.ts | 4 +- .../alerts/item-alerts.component.html | 30 +- .../item-page/alerts/item-alerts.component.ts | 10 +- ...bitstream-request-a-copy-page.component.ts | 11 +- .../upload/upload-bitstream.component.ts | 10 +- .../edit-item-page.component.ts | 13 +- .../item-access-control.component.html | 13 +- .../item-access-control.component.ts | 10 +- .../item-authorizations.component.html | 31 +- .../item-authorizations.component.ts | 12 +- .../item-bitstreams.component.ts | 13 +- .../item-collection-mapper.component.html | 42 +- .../item-collection-mapper.component.ts | 10 +- .../item-curate/item-curate.component.html | 5 +- .../item-curate/item-curate.component.ts | 10 +- .../item-delete/item-delete.component.ts | 12 +- .../item-move/item-move.component.ts | 10 +- .../item-operation.component.ts | 7 +- .../item-register-doi.component.ts | 12 +- ...t-relationship-list-wrapper.component.html | 58 +-- ...dit-relationship-list-wrapper.component.ts | 10 +- .../edit-relationship-list.component.ts | 13 +- .../edit-relationship.component.ts | 10 +- .../item-relationships.component.html | 78 ++-- .../item-relationships.component.ts | 13 +- .../item-status/item-status.component.ts | 13 +- .../item-version-history.component.html | 6 +- .../item-version-history.component.ts | 10 +- .../modify-item-overview.component.html | 26 +- .../modify-item-overview.component.ts | 7 +- .../virtual-metadata.component.ts | 11 +- .../collections/collections.component.html | 43 ++- .../collections/collections.component.ts | 12 +- .../metadata-uri-values.component.html | 10 +- .../metadata-uri-values.component.ts | 11 +- .../metadata-values.component.html | 30 +- .../metadata-values.component.ts | 9 +- .../full-file-section.component.html | 160 ++++---- .../full-file-section.component.ts | 12 +- .../full/full-item-page.component.ts | 14 +- .../media-viewer-video.component.html | 74 ++-- .../media-viewer-video.component.ts | 11 +- .../media-viewer/media-viewer.component.html | 71 ++-- .../media-viewer/media-viewer.component.ts | 10 +- .../mirador-viewer.component.html | 8 +- .../mirador-viewer.component.ts | 11 +- .../orcid-auth/orcid-auth.component.ts | 12 +- .../orcid-page/orcid-page.component.ts | 5 +- .../orcid-queue/orcid-queue.component.html | 97 ++--- .../orcid-sync-settings.component.ts | 7 +- .../item-page-cc-license-field.component.html | 50 +-- .../item-page-cc-license-field.component.ts | 8 +- .../item-page-title-field.component.html | 8 +- .../title/item-page-title-field.component.ts | 4 +- .../item-page/simple/item-page.component.html | 34 +- .../item-page/simple/item-page.component.ts | 11 +- .../publication/publication.component.html | 34 +- .../publication/publication.component.ts | 7 +- .../untyped-item/untyped-item.component.html | 34 +- .../untyped-item/untyped-item.component.ts | 10 +- .../metadata-representation-list.component.ts | 8 +- .../notify-requests-status.component.html | 8 +- .../notify-requests-status.component.ts | 13 +- .../request-status-alert-box.component.html | 10 +- .../request-status-alert-box.component.ts | 12 +- .../qa-event-notification.component.ts | 12 +- ...bed-related-entities-search.component.html | 54 +-- ...abbed-related-entities-search.component.ts | 8 +- .../related-items/related-items-component.ts | 10 +- ...-versions-row-element-version.component.ts | 11 +- .../item-versions-summary-modal.component.ts | 7 +- .../versions/item-versions.component.ts | 14 +- .../item-versions-notice.component.html | 12 +- .../notice/item-versions-notice.component.ts | 7 +- ...ce-new-external-dropdown.component.spec.ts | 2 +- ...-dspace-new-external-dropdown.component.ts | 10 +- ...-new-submission-dropdown.component.spec.ts | 2 +- ...space-new-submission-dropdown.component.ts | 10 +- .../my-dspace-new-submission.component.html | 12 +- .../my-dspace-new-submission.component.ts | 7 +- .../my-dspace-page.component.html | 14 +- .../my-dspace-page.component.ts | 10 +- ...space-qa-events-notifications.component.ts | 12 +- .../expandable-navbar-section.component.html | 64 +-- .../expandable-navbar-section.component.ts | 13 +- src/app/navbar/navbar.component.ts | 10 +- .../ePerson-data/ePerson-data.component.html | 20 +- .../ePerson-data/ePerson-data.component.ts | 12 +- ...quality-assurance-events.component.spec.ts | 2 +- .../quality-assurance-events.component.ts | 8 +- .../project-entry-import-modal.component.html | 66 ++-- ...oject-entry-import-modal.component.spec.ts | 2 +- .../project-entry-import-modal.component.ts | 7 +- ...quality-assurance-source.component.spec.ts | 2 +- .../quality-assurance-source.component.ts | 9 +- ...quality-assurance-topics.component.spec.ts | 2 +- .../quality-assurance-topics.component.ts | 9 +- .../suggestion-actions.component.ts | 7 +- .../suggestion-evidences.component.html | 40 +- .../suggestion-evidences.component.ts | 11 +- .../suggestion-list-element.component.html | 42 +- .../suggestion-list-element.component.ts | 7 +- .../publication-claim.component.html | 91 +++-- .../publication-claim.component.ts | 12 +- .../suggestions-notification.component.html | 22 +- .../suggestions-notification.component.ts | 12 +- .../suggestions-popup.component.ts | 12 +- .../detail/process-detail.component.ts | 10 +- .../form/process-form.component.ts | 7 +- .../parameter-select.component.ts | 7 +- .../date-value-input.component.html | 14 +- .../date-value-input.component.ts | 4 +- .../file-value-input.component.ts | 4 +- .../parameter-value-input.component.html | 24 +- .../parameter-value-input.component.ts | 7 +- .../string-value-input.component.html | 14 +- .../string-value-input.component.ts | 4 +- .../process-parameters.component.ts | 7 +- .../script-help/script-help.component.html | 34 +- .../form/script-help/script-help.component.ts | 9 +- .../scripts-select.component.ts | 8 +- .../new/new-process.component.html | 11 +- .../process-page/new/new-process.component.ts | 7 +- .../overview/process-overview.component.ts | 10 +- .../table/process-overview-table.component.ts | 14 +- .../profile-claim-item-modal.component.ts | 10 +- .../profile-page-metadata-form.component.html | 16 +- .../profile-page-metadata-form.component.ts | 7 +- .../profile-page-researcher-form.component.ts | 10 +- .../profile-page-security-form.component.html | 24 +- .../profile-page-security-form.component.ts | 7 +- .../profile-page/profile-page.component.ts | 13 +- .../register-email-form.component.ts | 7 +- .../create-profile.component.ts | 12 +- .../deny-request-copy.component.html | 15 +- .../deny-request-copy.component.ts | 7 +- .../email-request-copy.component.ts | 8 +- .../grant-deny-request-copy.component.html | 58 +-- .../grant-deny-request-copy.component.ts | 7 +- .../grant-request-copy.component.html | 31 +- .../grant-request-copy.component.ts | 7 +- src/app/root/root.component.html | 16 +- src/app/root/root.component.ts | 11 +- .../access-control-array-form.component.ts | 7 +- ...s-control-form-container.component.spec.ts | 5 +- ...access-control-form-container.component.ts | 7 +- ...ntrol-select-bitstreams-modal.component.ts | 7 +- src/app/shared/alert/alert.component.spec.ts | 2 +- src/app/shared/alert/alert.component.ts | 4 +- .../auth-nav-menu/auth-nav-menu.component.ts | 8 +- .../user-menu/user-menu.component.html | 58 +-- .../user-menu/user-menu.component.ts | 8 +- .../shared/browse-by/browse-by.component.html | 58 +-- .../shared/browse-by/browse-by.component.ts | 9 +- .../collection-dropdown.component.ts | 8 +- .../comcol-form/comcol-form.component.ts | 11 +- .../comcol-role/comcol-role.component.html | 66 ++-- .../comcol-role/comcol-role.component.ts | 10 +- .../comcol-page-browse-by.component.ts | 12 +- .../comcol-page-content.component.html | 18 +- .../comcol-page-content.component.ts | 7 +- .../comcol-page-handle.component.html | 12 +- .../comcol-page-handle.component.ts | 7 +- .../comcol-page-header.component.html | 2 +- .../comcol-page-header.component.ts | 6 +- .../comcol-page-logo.component.html | 6 +- .../comcol-page-logo.component.ts | 4 +- .../confirmation-modal.component.html | 8 +- .../confirmation-modal.component.ts | 4 +- .../context-help-wrapper.component.html | 39 +- .../context-help-wrapper.component.ts | 16 +- ...tem-withdrawn-reinstate-modal.component.ts | 10 +- .../shared/ds-select/ds-select.component.ts | 4 +- ...-edit-menu-expandable-section.component.ts | 9 +- .../dso-edit-menu-section.component.html | 36 +- .../dso-edit-menu-section.component.ts | 4 +- .../dso-edit-menu/dso-edit-menu.component.ts | 8 +- .../dso-selector/dso-selector.component.ts | 9 +- ...te-collection-parent-selector.component.ts | 4 +- ...create-item-parent-selector.component.html | 10 +- .../create-item-parent-selector.component.ts | 4 +- .../dso-selector-modal-wrapper.component.html | 4 +- .../edit-item-selector.component.html | 4 +- .../edit-item-selector.component.ts | 4 +- .../entity-dropdown.component.ts | 8 +- .../eperson-group-list.component.html | 72 ++-- .../eperson-group-list.component.ts | 8 +- .../file-download-link.component.ts | 9 +- ...ynamic-form-control-container.component.ts | 14 +- .../ds-dynamic-form.component.html | 30 +- .../ds-dynamic-form.component.ts | 7 +- ...xisting-metadata-list-element.component.ts | 10 +- ...xisting-relation-list-element.component.ts | 10 +- .../dynamic-form-array.component.ts | 11 +- .../dynamic-date-picker-inline.component.ts | 10 +- .../dynamic-form-group.component.html | 46 +-- .../dynamic-form-group.component.ts | 10 +- .../models/list/dynamic-list.component.ts | 13 +- .../models/lookup/dynamic-lookup.component.ts | 13 +- .../models/onebox/dynamic-onebox.component.ts | 13 +- .../dynamic-relation-group.component.spec.ts | 11 +- .../dynamic-relation-group.components.ts | 11 +- ...dynamic-scrollable-dropdown.component.html | 106 ++--- .../dynamic-scrollable-dropdown.component.ts | 12 +- .../models/tag/dynamic-tag.component.ts | 7 +- ...dynamic-lookup-relation-modal.component.ts | 12 +- ...elation-external-source-tab.component.html | 46 ++- ...-relation-external-source-tab.component.ts | 10 +- ...nal-source-entry-import-modal.component.ts | 10 +- ...ic-lookup-relation-search-tab.component.ts | 10 +- ...okup-relation-selection-tab.component.html | 46 ++- ...lookup-relation-selection-tab.component.ts | 10 +- .../shared/form/chips/chips.component.spec.ts | 2 +- src/app/shared/form/chips/chips.component.ts | 13 +- src/app/shared/form/form.component.spec.ts | 4 +- src/app/shared/form/form.component.ts | 10 +- .../vocabulary-treeview.component.ts | 10 +- .../impersonate-navbar.component.html | 16 +- .../impersonate-navbar.component.ts | 7 +- .../dso-input-suggestions.component.html | 42 +- .../dso-input-suggestions.component.ts | 8 +- .../filter-input-suggestions.component.ts | 10 +- .../input-suggestions.component.html | 42 +- .../input-suggestions.component.ts | 8 +- .../validation-suggestions.component.html | 32 +- .../validation-suggestions.component.ts | 8 +- .../lang-switch/lang-switch.component.html | 46 ++- .../lang-switch/lang-switch.component.ts | 7 +- .../live-region/live-region.component.html | 4 +- .../live-region/live-region.component.ts | 8 +- src/app/shared/loading/loading.component.ts | 4 +- src/app/shared/log-in/log-in.component.html | 20 +- src/app/shared/log-in/log-in.component.ts | 8 +- .../password/log-in-password.component.ts | 7 +- src/app/shared/log-out/log-out.component.html | 4 +- src/app/shared/log-out/log-out.component.ts | 7 +- .../onclick-menu-item.component.html | 26 +- .../menu-item/onclick-menu-item.component.ts | 4 +- .../metadata-field-wrapper.component.html | 4 +- .../metadata-field-wrapper.component.ts | 4 +- ...laimed-task-actions-approve.component.html | 16 +- .../claimed-task-actions-approve.component.ts | 7 +- .../claimed-task-actions.component.html | 16 +- .../claimed-task-actions.component.ts | 7 +- ...d-task-actions-decline-task.component.html | 24 +- ...med-task-actions-decline-task.component.ts | 7 +- ...-task-actions-edit-metadata.component.html | 16 +- ...ed-task-actions-edit-metadata.component.ts | 7 +- .../claimed-task-actions-reject.component.ts | 7 +- ...task-actions-return-to-pool.component.html | 16 +- ...d-task-actions-return-to-pool.component.ts | 7 +- .../pool-task-actions.component.html | 12 +- .../pool-task/pool-task-actions.component.ts | 7 +- .../workspaceitem-actions.component.html | 42 +- .../workspaceitem-actions.component.ts | 7 +- .../notification-box.component.html | 24 +- .../notification-box.component.ts | 10 +- .../notification/notification.component.ts | 10 +- .../notifications-board.component.html | 17 +- .../notifications-board.component.ts | 7 +- .../object-collection.component.html | 152 ++++---- .../object-collection.component.ts | 9 +- .../access-status-badge.component.ts | 7 +- .../shared/badges/badges.component.ts | 4 +- .../status-badge/status-badge.component.ts | 4 +- .../badges/type-badge/type-badge.component.ts | 4 +- .../item-collection.component.ts | 7 +- .../item-submitter.component.ts | 7 +- .../selectable-list-item-control.component.ts | 7 +- ...earch-result-detail-element.component.html | 17 +- ...-search-result-detail-element.component.ts | 7 +- .../item-detail-preview-field.component.html | 18 +- .../item-detail-preview-field.component.ts | 11 +- .../item-detail-preview.component.html | 120 +++--- .../item-detail-preview.component.ts | 8 +- ...earch-result-detail-element.component.html | 17 +- ...-search-result-detail-element.component.ts | 7 +- .../object-detail.component.html | 30 +- .../object-detail/object-detail.component.ts | 7 +- .../collection-grid-element.component.html | 32 +- .../collection-grid-element.component.ts | 7 +- .../community-grid-element.component.html | 32 +- .../community-grid-element.component.ts | 7 +- .../object-grid/object-grid.component.html | 32 +- .../object-grid/object-grid.component.ts | 10 +- ...-search-result-grid-element.component.html | 36 +- ...on-search-result-grid-element.component.ts | 7 +- ...-search-result-grid-element.component.html | 42 +- ...ty-search-result-grid-element.component.ts | 7 +- ...em-search-result-grid-element.component.ts | 8 +- .../browse-entry-list-element.component.ts | 7 +- .../collection-list-element.component.ts | 4 +- .../community-list-element.component.ts | 4 +- .../identifier-data.component.html | 8 +- .../identifier-data.component.ts | 10 +- ...-link-metadata-list-element.component.html | 14 +- ...se-link-metadata-list-element.component.ts | 4 +- ...-text-metadata-list-element.component.html | 36 +- ...in-text-metadata-list-element.component.ts | 4 +- ...-search-result-list-element.component.html | 12 +- ...ed-search-result-list-element.component.ts | 7 +- ...-search-result-list-element.component.html | 12 +- ...ed-search-result-list-element.component.ts | 7 +- ...-search-result-list-element.component.html | 14 +- ...sk-search-result-list-element.component.ts | 7 +- ...-search-result-list-element.component.html | 32 +- ...ed-search-result-list-element.component.ts | 8 +- .../item-list-preview.component.html | 73 ++-- .../item-list-preview.component.ts | 13 +- ...-search-result-list-element.component.html | 36 +- ...ol-search-result-list-element.component.ts | 8 +- ...em-search-result-list-element.component.ts | 8 +- ...em-search-result-list-element.component.ts | 8 +- .../object-list/object-list.component.html | 70 ++-- .../object-list/object-list.component.ts | 8 +- ...on-search-result-list-element.component.ts | 7 +- ...ty-search-result-list-element.component.ts | 7 +- ...-search-result-list-element.component.html | 106 +++-- ...em-search-result-list-element.component.ts | 9 +- .../sidebar-search-list-element.component.ts | 8 +- .../collection-select.component.ts | 9 +- .../item-select/item-select.component.ts | 9 +- .../object-table/object-table.component.html | 28 +- .../object-table/object-table.component.ts | 7 +- .../orcid-badge-and-tooltip.component.ts | 10 +- .../page-size-selector.component.html | 22 +- .../page-size-selector.component.ts | 7 +- .../pagination/pagination.component.spec.ts | 5 +- .../shared/pagination/pagination.component.ts | 9 +- .../resource-policy-entry.component.html | 24 +- .../entry/resource-policy-entry.component.ts | 5 +- .../resource-policy-form.component.spec.ts | 4 +- .../form/resource-policy-form.component.ts | 12 +- .../resource-policies.component.html | 96 ++--- .../resource-policies.component.spec.ts | 4 +- .../resource-policies.component.ts | 12 +- src/app/shared/rss-feed/rss.component.ts | 7 +- .../search-form/search-form.component.ts | 7 +- .../advanced-search.component.html | 38 +- .../advanced-search.component.ts | 11 +- .../search-export-csv.component.html | 14 +- .../search-export-csv.component.ts | 7 +- .../search-authority-filter.component.ts | 8 +- .../search-boolean-filter.component.ts | 8 +- .../search-facet-option.component.ts | 7 +- .../search-facet-range-option.component.ts | 7 +- .../search-filter.component.html | 56 +-- .../search-filter/search-filter.component.ts | 9 +- .../search-hierarchy-filter.component.ts | 9 +- .../search-range-filter.component.ts | 9 +- .../search-text-filter.component.ts | 8 +- .../search-label-range.component.ts | 10 +- .../search-labels.component.html | 10 +- .../search-labels/search-labels.component.ts | 8 +- .../search-results-skeleton.component.ts | 10 +- .../search-results.component.html | 75 ++-- .../search-settings.component.html | 30 +- .../search-settings.component.ts | 7 +- .../search-sidebar.component.ts | 7 +- .../search-switch-configuration.component.ts | 7 +- src/app/shared/search/search.component.ts | 12 +- .../sidebar/page-with-sidebar.component.ts | 11 +- .../date/starts-with-date.component.ts | 4 +- .../subscription-modal.component.ts | 9 +- .../subscription-view.component.html | 36 +- .../subscription-view.component.ts | 7 +- .../truncatable-part.component.ts | 4 +- .../view-mode-switch.component.html | 70 ++-- .../view-mode-switch.component.ts | 4 +- .../statistics-page.component.html | 34 +- .../statistics-table.component.html | 71 ++-- .../statistics-table.component.ts | 8 +- ...submission-form-section-add.component.html | 48 +-- .../submission-upload-files.component.html | 18 +- .../submission-upload-files.component.ts | 7 +- ...-import-external-collection.component.html | 10 +- ...on-import-external-collection.component.ts | 10 +- ...ssion-import-external-preview.component.ts | 7 +- .../submission-import-external.component.html | 78 ++-- .../submission-import-external.component.ts | 10 +- .../accesses/section-accesses.component.html | 16 +- .../accesses/section-accesses.component.ts | 7 +- ...ubmission-section-cc-licenses.component.ts | 12 +- .../container/section-container.component.ts | 14 +- .../section-duplicates.component.html | 30 +- .../section-duplicates.component.spec.ts | 6 +- .../section-duplicates.component.ts | 12 +- .../sections/form/section-form.component.html | 26 +- .../form/section-form.component.spec.ts | 2 +- .../sections/form/section-form.component.ts | 7 +- .../section-identifiers.component.html | 26 +- .../section-identifiers.component.spec.ts | 4 +- .../section-identifiers.component.ts | 12 +- .../license/section-license.component.html | 16 +- .../license/section-license.component.spec.ts | 5 +- .../license/section-license.component.ts | 10 +- .../section-coar-notify.component.ts | 13 +- .../content-accordion.component.ts | 12 +- .../metadata-information.component.ts | 10 +- .../publication-information.component.ts | 11 +- .../publisher-policy.component.ts | 12 +- .../section-sherpa-policies.component.ts | 12 +- ...tion-upload-access-conditions.component.ts | 10 +- .../section-upload-file-edit.component.html | 20 +- ...section-upload-file-edit.component.spec.ts | 5 +- .../section-upload-file-edit.component.ts | 7 +- .../section-upload-file.component.spec.ts | 4 +- .../file/section-upload-file.component.ts | 10 +- .../section-upload-file-view.component.html | 58 +-- .../section-upload-file-view.component.ts | 11 +- .../upload/section-upload.component.html | 66 ++-- .../upload/section-upload.component.spec.ts | 3 +- .../upload/section-upload.component.ts | 12 +- .../subscriptions-page.component.html | 68 ++-- .../subscriptions-page.component.ts | 8 +- .../suggestions-page.component.html | 76 ++-- .../suggestions-page.component.ts | 12 +- .../system-wide-alert-banner.component.ts | 8 +- .../system-wide-alert-form.component.ts | 7 +- src/app/thumbnail/thumbnail.component.html | 30 +- ...vanced-workflow-action-rating.component.ts | 11 +- ...flow-action-select-reviewer.component.html | 42 +- ...rkflow-action-select-reviewer.component.ts | 5 +- .../workflow-item-action-page.component.html | 10 +- .../workflow-item-delete.component.ts | 5 +- .../workspaceitems-delete-page.component.html | 8 +- .../workspaceitems-delete-page.component.ts | 5 +- .../header-navbar-wrapper.component.html | 12 +- .../dspace/app/header/header.component.ts | 7 +- .../dspace/app/navbar/navbar.component.html | 10 +- 598 files changed, 5674 insertions(+), 6015 deletions(-) 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..9649277cdf 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,15 +55,13 @@ import { BrowserOnlyPipe } from '../../../shared/utils/browser-only.pipe'; AsyncPipe, NgbAccordionModule, TranslateModule, - NgIf, NgbNavModule, ThemedSearchComponent, BrowserOnlyPipe, - NgForOf, NgxPaginationModule, SelectableListItemControlComponent, - ListableObjectComponentLoaderComponent, - ], + ListableObjectComponentLoaderComponent +], standalone: true, }) export class BulkAccessBrowseComponent implements OnInit, OnDestroy { 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..12d501c7d6 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,9 +16,8 @@ import { AccessControlFormContainerComponent } from '../../../shared/access-cont imports: [ NgbAccordionModule, TranslateModule, - NgIf, - AccessControlFormContainerComponent, - ], + AccessControlFormContainerComponent +], standalone: true, }) export class BulkAccessSettingsComponent { 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..80aeab3417 100644 --- a/src/app/access-control/epeople-registry/epeople-registry.component.ts +++ b/src/app/access-control/epeople-registry/epeople-registry.component.ts @@ -1,9 +1,4 @@ -import { - AsyncPipe, - NgClass, - NgForOf, - NgIf, -} from '@angular/common'; +import { AsyncPipe, NgClass } from '@angular/common'; import { Component, OnDestroy, @@ -72,14 +67,12 @@ import { EPersonFormComponent } from './eperson-form/eperson-form.component'; TranslateModule, RouterModule, AsyncPipe, - NgIf, EPersonFormComponent, ReactiveFormsModule, ThemedLoadingComponent, PaginationComponent, - NgClass, - NgForOf, - ], + NgClass +], standalone: true, }) /** 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..586339a4d6 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,9 +1,4 @@ -import { - AsyncPipe, - NgClass, - NgFor, - NgIf, -} from '@angular/common'; +import { AsyncPipe, NgClass } from '@angular/common'; import { ChangeDetectorRef, Component, @@ -84,8 +79,6 @@ import { ValidateEmailNotTaken } from './validators/email-taken.validator'; templateUrl: './eperson-form.component.html', imports: [ FormComponent, - NgIf, - NgFor, AsyncPipe, TranslateModule, NgClass, @@ -93,8 +86,8 @@ import { ValidateEmailNotTaken } from './validators/email-taken.validator'; PaginationComponent, RouterLink, HasNoValuePipe, - BtnDisabledDirective, - ], + BtnDisabledDirective +], standalone: true, }) /** 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..ca83c0af7e 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,13 +89,12 @@ import { ValidateGroupExists } from './validators/group-exists.validator'; imports: [ FormComponent, AlertComponent, - NgIf, AsyncPipe, TranslateModule, ContextHelpDirective, MembersListComponent, - SubgroupsListComponent, - ], + SubgroupsListComponent +], standalone: true, }) /** 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..84782ad0eb 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,9 +1,4 @@ -import { - AsyncPipe, - NgClass, - NgForOf, - NgIf, -} from '@angular/common'; +import { AsyncPipe, NgClass } from '@angular/common'; import { Component, Input, @@ -109,13 +104,11 @@ export interface EPersonListActionConfig { ContextHelpDirective, ReactiveFormsModule, PaginationComponent, - NgIf, AsyncPipe, RouterLink, NgClass, - NgForOf, - BtnDisabledDirective, - ], + 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) { + + } + } - + @if (!reports) { - + } - - - -
- {{ 'statistics.page.no-data' | translate }} -
-
+ @if (reports) { + @for (report of reports; track report) { + + + } + @if ((hasData$ | async) !== true) { +
+ {{ 'statistics.page.no-data' | translate }} +
+ } + }
diff --git a/src/app/statistics-page/statistics-table/statistics-table.component.html b/src/app/statistics-page/statistics-table/statistics-table.component.html index efa9ce43d9..4a0f87076c 100644 --- a/src/app/statistics-page/statistics-table/statistics-table.component.html +++ b/src/app/statistics-page/statistics-table/statistics-table.component.html @@ -1,36 +1,35 @@ -
- -

- {{ 'statistics.table.title.' + report.reportType | translate }} -

- - - - - - - - - - - - - - - - - -
- {{ header }} -
- {{ getLabel(point) | async }} - - {{ point.values[header] }} -
- -
+@if (hasData) { +
+

+ {{ 'statistics.table.title.' + report.reportType | translate }} +

+ + + + + @for (header of headers; track header) { + + } + + @for (point of report.points; track point) { + + + @for (header of headers; track header) { + + } + + } + +
+ {{ header }} +
+ {{ getLabel(point) | async }} + + {{ point.values[header] }} +
+
+} diff --git a/src/app/statistics-page/statistics-table/statistics-table.component.ts b/src/app/statistics-page/statistics-table/statistics-table.component.ts index cd71730568..9f59e33fa8 100644 --- a/src/app/statistics-page/statistics-table/statistics-table.component.ts +++ b/src/app/statistics-page/statistics-table/statistics-table.component.ts @@ -1,8 +1,4 @@ -import { - AsyncPipe, - NgFor, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, Input, @@ -38,7 +34,7 @@ import { isEmpty } from '../../shared/empty.util'; templateUrl: './statistics-table.component.html', styleUrls: ['./statistics-table.component.scss'], standalone: true, - imports: [NgIf, NgFor, AsyncPipe, TranslateModule], + imports: [AsyncPipe, TranslateModule], }) export class StatisticsTableComponent implements OnInit { diff --git a/src/app/submission/form/section-add/submission-form-section-add.component.html b/src/app/submission/form/section-add/submission-form-section-add.component.html index 563044d270..5f2a26b8a1 100644 --- a/src/app/submission/form/section-add/submission-form-section-add.component.html +++ b/src/app/submission/form/section-add/submission-form-section-add.component.html @@ -1,26 +1,30 @@
- - - + #sectionAdd="ngbDropdown" + placement="bottom-right" + class="d-inline-block" + [ngClass]="{'w-100': windowService.isXs()}"> + @if (hasSections$ | async) { + + }
- - + class="sections-dropdown-menu" + aria-labelledby="sectionControls" + [ngClass]="{'w-100': (windowService.isXs() | async)}"> + @if ((hasSections$ | async) !== true) { + + } + @for (listItem of (sectionList$ | async); track listItem) { + + }
diff --git a/src/app/submission/form/submission-upload-files/submission-upload-files.component.html b/src/app/submission/form/submission-upload-files/submission-upload-files.component.html index dfad8c422e..a8c8b9ca48 100644 --- a/src/app/submission/form/submission-upload-files/submission-upload-files.component.html +++ b/src/app/submission/form/submission-upload-files/submission-upload-files.component.html @@ -1,8 +1,10 @@ - +@if (uploadFilesOptions.url) { + +} diff --git a/src/app/submission/form/submission-upload-files/submission-upload-files.component.ts b/src/app/submission/form/submission-upload-files/submission-upload-files.component.ts index 3632ec6760..218e56de92 100644 --- a/src/app/submission/form/submission-upload-files/submission-upload-files.component.ts +++ b/src/app/submission/form/submission-upload-files/submission-upload-files.component.ts @@ -1,4 +1,4 @@ -import { NgIf } from '@angular/common'; + import { Component, Input, @@ -39,9 +39,8 @@ import parseSectionErrors from '../../utils/parseSectionErrors'; selector: 'ds-base-submission-upload-files', templateUrl: './submission-upload-files.component.html', imports: [ - UploaderComponent, - NgIf, - ], + UploaderComponent +], standalone: true, }) export class SubmissionUploadFilesComponent implements OnChanges, OnDestroy { diff --git a/src/app/submission/import-external/import-external-collection/submission-import-external-collection.component.html b/src/app/submission/import-external/import-external-collection/submission-import-external-collection.component.html index 234fbe9233..c1de983b38 100644 --- a/src/app/submission/import-external/import-external-collection/submission-import-external-collection.component.html +++ b/src/app/submission/import-external/import-external-collection/submission-import-external-collection.component.html @@ -4,11 +4,13 @@ diff --git a/src/app/submission/import-external/import-external-collection/submission-import-external-collection.component.ts b/src/app/submission/import-external/import-external-collection/submission-import-external-collection.component.ts index 03bd10cfc2..b5651c8f3f 100644 --- a/src/app/submission/import-external/import-external-collection/submission-import-external-collection.component.ts +++ b/src/app/submission/import-external/import-external-collection/submission-import-external-collection.component.ts @@ -1,7 +1,4 @@ -import { - NgClass, - NgIf, -} from '@angular/common'; +import { NgClass } from '@angular/common'; import { Component, EventEmitter, @@ -25,9 +22,8 @@ import { ThemedLoadingComponent } from '../../../shared/loading/themed-loading.c ThemedLoadingComponent, ThemedCollectionDropdownComponent, TranslateModule, - NgClass, - NgIf, - ], + NgClass +], standalone: true, }) export class SubmissionImportExternalCollectionComponent { diff --git a/src/app/submission/import-external/import-external-preview/submission-import-external-preview.component.ts b/src/app/submission/import-external/import-external-preview/submission-import-external-preview.component.ts index c7f434b23c..353a298a6e 100644 --- a/src/app/submission/import-external/import-external-preview/submission-import-external-preview.component.ts +++ b/src/app/submission/import-external/import-external-preview/submission-import-external-preview.component.ts @@ -1,4 +1,4 @@ -import { NgFor } from '@angular/common'; + import { Component, Input, @@ -30,9 +30,8 @@ import { SubmissionImportExternalCollectionComponent } from '../import-external- styleUrls: ['./submission-import-external-preview.component.scss'], templateUrl: './submission-import-external-preview.component.html', imports: [ - NgFor, - TranslateModule, - ], + TranslateModule +], standalone: true, }) export class SubmissionImportExternalPreviewComponent implements OnInit { diff --git a/src/app/submission/import-external/submission-import-external.component.html b/src/app/submission/import-external/submission-import-external.component.html index 21783f9a2e..3d0580f37e 100644 --- a/src/app/submission/import-external/submission-import-external.component.html +++ b/src/app/submission/import-external/submission-import-external.component.html @@ -8,43 +8,59 @@ -
-
- -

{{ 'submission.sections.describe.relationship-lookup.selection-tab.title' | translate}}

- - - -
- {{ 'search.results.empty' | translate }} + @if (reload$.value.entity) { +
+ @if (reload$.value.sourceId !== '') { +
+ + @if (entriesRD && entriesRD?.payload?.page?.length !== 0) { +

{{ 'submission.sections.describe.relationship-lookup.selection-tab.title' | translate}}

+ } + @if (entriesRD?.hasSucceeded && (isLoading$ | async) !== true && entriesRD?.payload?.page?.length > 0) { + + + } + @if ((isLoading$ | async)) { + + } + @if ((isLoading$ | async) !== true && entriesRD?.payload?.page?.length === 0) { +
+ {{ 'search.results.empty' | translate }} +
+ } + @if ((isLoading$ | async) !== true && entriesRD.statusCode === 500) { +
+ {{ 'search.results.response.500' | translate }} +
+ } +
-
- {{ 'search.results.response.500' | translate }} + } + @if (reload$.value.sourceId === '') { +
+ +

{{'submission.import-external.page.hint' | translate}}

+
- + }
-
- -

{{'submission.import-external.page.hint' | translate}}

-
-
-
+ }
-
diff --git a/src/app/submission/import-external/submission-import-external.component.ts b/src/app/submission/import-external/submission-import-external.component.ts index 47b5c09d66..b78f398830 100644 --- a/src/app/submission/import-external/submission-import-external.component.ts +++ b/src/app/submission/import-external/submission-import-external.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, OnDestroy, @@ -72,13 +69,12 @@ import { ObjectCollectionComponent, ThemedLoadingComponent, AlertComponent, - NgIf, AsyncPipe, SubmissionImportExternalSearchbarComponent, TranslateModule, VarDirective, - RouterLink, - ], + RouterLink +], standalone: true, }) export class SubmissionImportExternalComponent implements OnInit, OnDestroy { diff --git a/src/app/submission/sections/accesses/section-accesses.component.html b/src/app/submission/sections/accesses/section-accesses.component.html index 1ba2d4fe6d..009a0ca675 100644 --- a/src/app/submission/sections/accesses/section-accesses.component.html +++ b/src/app/submission/sections/accesses/section-accesses.component.html @@ -1,7 +1,9 @@ - +@if (!!formModel) { + +} diff --git a/src/app/submission/sections/accesses/section-accesses.component.ts b/src/app/submission/sections/accesses/section-accesses.component.ts index b47f1cf8ff..8f98f68660 100644 --- a/src/app/submission/sections/accesses/section-accesses.component.ts +++ b/src/app/submission/sections/accesses/section-accesses.component.ts @@ -1,4 +1,4 @@ -import { NgIf } from '@angular/common'; + import { Component, Inject, @@ -78,9 +78,8 @@ import { SectionAccessesService } from './section-accesses.service'; templateUrl: './section-accesses.component.html', styleUrls: ['./section-accesses.component.scss'], imports: [ - FormComponent, - NgIf, - ], + FormComponent +], standalone: true, }) export class SubmissionSectionAccessesComponent extends SectionModelComponent { diff --git a/src/app/submission/sections/cc-license/submission-section-cc-licenses.component.ts b/src/app/submission/sections/cc-license/submission-section-cc-licenses.component.ts index a633e640ab..21a1885f92 100644 --- a/src/app/submission/sections/cc-license/submission-section-cc-licenses.component.ts +++ b/src/app/submission/sections/cc-license/submission-section-cc-licenses.component.ts @@ -1,8 +1,4 @@ -import { - AsyncPipe, - NgForOf, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { ChangeDetectorRef, Component, @@ -65,17 +61,15 @@ import { SectionsType } from '../sections-type'; styleUrls: ['./submission-section-cc-licenses.component.scss'], imports: [ TranslateModule, - NgIf, ThemedLoadingComponent, AsyncPipe, VarDirective, - NgForOf, DsSelectComponent, NgbDropdownModule, FormsModule, InfiniteScrollModule, - BtnDisabledDirective, - ], + BtnDisabledDirective +], standalone: true, }) export class SubmissionSectionCcLicensesComponent extends SectionModelComponent { diff --git a/src/app/submission/sections/container/section-container.component.ts b/src/app/submission/sections/container/section-container.component.ts index 6f4126a173..02a6d4e557 100644 --- a/src/app/submission/sections/container/section-container.component.ts +++ b/src/app/submission/sections/container/section-container.component.ts @@ -1,10 +1,4 @@ -import { - AsyncPipe, - NgClass, - NgComponentOutlet, - NgForOf, - NgIf, -} from '@angular/common'; +import { AsyncPipe, NgClass, NgComponentOutlet } from '@angular/common'; import { Component, Injector, @@ -30,15 +24,13 @@ import { rendersSectionType } from '../sections-decorator'; styleUrls: ['./section-container.component.scss'], imports: [ AlertComponent, - NgForOf, NgbAccordionModule, NgComponentOutlet, TranslateModule, NgClass, - NgIf, AsyncPipe, - SectionsDirective, - ], + SectionsDirective +], standalone: true, }) export class SubmissionSectionContainerComponent implements OnInit { diff --git a/src/app/submission/sections/duplicates/section-duplicates.component.html b/src/app/submission/sections/duplicates/section-duplicates.component.html index d9e33a70f7..d8c9467efe 100644 --- a/src/app/submission/sections/duplicates/section-duplicates.component.html +++ b/src/app/submission/sections/duplicates/section-duplicates.component.html @@ -3,18 +3,26 @@ Template for the detect duplicates submission section component @author Kim Shepherd -->
- + @if (data?.potentialDuplicates.length === 0) {
{{ 'submission.sections.duplicates.none' | translate }}
-
- -
{{ 'submission.sections.duplicates.detected' | translate }}
-
+ } + @if (data?.potentialDuplicates.length > 0) { +
{{ 'submission.sections.duplicates.detected' | translate }}
+ @for (dupe of data?.potentialDuplicates; track dupe) { +
{{dupe.title}} -
- {{('item.preview.' + metadatum.key) | translate}} {{metadatum.value}} -
-

{{ 'submission.sections.duplicates.in-workspace' | translate }}

-

{{ 'submission.sections.duplicates.in-workflow' | translate }}

+ @for (metadatum of Metadata.toViewModelList(dupe.metadata); track metadatum) { +
+ {{('item.preview.' + metadatum.key) | translate}} {{metadatum.value}} +
+ } + @if (dupe.workspaceItemId) { +

{{ 'submission.sections.duplicates.in-workspace' | translate }}

+ } + @if (dupe.workflowItemId) { +

{{ 'submission.sections.duplicates.in-workflow' | translate }}

+ }
- + } + }
diff --git a/src/app/submission/sections/duplicates/section-duplicates.component.spec.ts b/src/app/submission/sections/duplicates/section-duplicates.component.spec.ts index 501a60e3b8..a86d44ab17 100644 --- a/src/app/submission/sections/duplicates/section-duplicates.component.spec.ts +++ b/src/app/submission/sections/duplicates/section-duplicates.component.spec.ts @@ -255,11 +255,7 @@ describe('SubmissionSectionDuplicatesComponent test suite', () => { selector: 'ds-test-cmp', template: ``, standalone: true, - imports: [BrowserModule, - CommonModule, - FormsModule, - ReactiveFormsModule, - NgxPaginationModule], + imports: [BrowserModule, FormsModule, ReactiveFormsModule, NgxPaginationModule], }) class TestComponent { diff --git a/src/app/submission/sections/duplicates/section-duplicates.component.ts b/src/app/submission/sections/duplicates/section-duplicates.component.ts index 885511ca52..5471dbc78c 100644 --- a/src/app/submission/sections/duplicates/section-duplicates.component.ts +++ b/src/app/submission/sections/duplicates/section-duplicates.component.ts @@ -1,8 +1,4 @@ -import { - AsyncPipe, - NgForOf, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { ChangeDetectionStrategy, Component, @@ -41,11 +37,9 @@ import { SectionsService } from '../sections.service'; changeDetection: ChangeDetectionStrategy.Default, imports: [ VarDirective, - NgIf, AsyncPipe, - TranslateModule, - NgForOf, - ], + TranslateModule +], standalone: true, }) diff --git a/src/app/submission/sections/form/section-form.component.html b/src/app/submission/sections/form/section-form.component.html index cd7b45bb00..58032131af 100644 --- a/src/app/submission/sections/form/section-form.component.html +++ b/src/app/submission/sections/form/section-form.component.html @@ -1,11 +1,15 @@ - - +@if (isLoading) { + +} +@if (!isLoading && formModel) { + +} diff --git a/src/app/submission/sections/form/section-form.component.spec.ts b/src/app/submission/sections/form/section-form.component.spec.ts index efd410713f..4cce0daa7b 100644 --- a/src/app/submission/sections/form/section-form.component.spec.ts +++ b/src/app/submission/sections/form/section-form.component.spec.ts @@ -659,6 +659,6 @@ describe('SubmissionSectionFormComponent test suite', () => { selector: 'ds-test-cmp', template: ``, standalone: true, - imports: [CommonModule, FormsModule, ReactiveFormsModule], + imports: [FormsModule, ReactiveFormsModule], }) class TestComponent {} diff --git a/src/app/submission/sections/form/section-form.component.ts b/src/app/submission/sections/form/section-form.component.ts index 26285320b0..553bcf2d5c 100644 --- a/src/app/submission/sections/form/section-form.component.ts +++ b/src/app/submission/sections/form/section-form.component.ts @@ -1,4 +1,4 @@ -import { NgIf } from '@angular/common'; + import { ChangeDetectorRef, Component, @@ -77,9 +77,8 @@ import { SectionFormOperationsService } from './section-form-operations.service' templateUrl: './section-form.component.html', imports: [ FormComponent, - ThemedLoadingComponent, - NgIf, - ], + ThemedLoadingComponent +], standalone: true, }) export class SubmissionSectionFormComponent extends SectionModelComponent { diff --git a/src/app/submission/sections/identifiers/section-identifiers.component.html b/src/app/submission/sections/identifiers/section-identifiers.component.html index dd0b5d2930..e86742caf1 100644 --- a/src/app/submission/sections/identifiers/section-identifiers.component.html +++ b/src/app/submission/sections/identifiers/section-identifiers.component.html @@ -4,17 +4,17 @@ Template for the identifiers submission section component --> - -
- {{'submission.sections.identifiers.info' | translate}} -
    - - -
  • {{'submission.sections.identifiers.' + identifier.identifierType + '_label' | translate}} - {{identifier.value}}
  • -
    -
    -
-
-
+ @if (identifierData && identifierData.identifiers) { +
+ {{'submission.sections.identifiers.info' | translate}} +
    + @for (identifier of identifierData.identifiers; track identifier) { + @if (identifierData.displayTypes.includes(identifier.identifierType) && identifier.value) { +
  • {{'submission.sections.identifiers.' + identifier.identifierType + '_label' | translate}} + {{identifier.value}}
  • + } + } +
+
+ }
diff --git a/src/app/submission/sections/identifiers/section-identifiers.component.spec.ts b/src/app/submission/sections/identifiers/section-identifiers.component.spec.ts index 8aa760bb3e..42aeb8719f 100644 --- a/src/app/submission/sections/identifiers/section-identifiers.component.spec.ts +++ b/src/app/submission/sections/identifiers/section-identifiers.component.spec.ts @@ -276,10 +276,10 @@ describe('SubmissionSectionIdentifiersComponent test suite', () => { template: ``, standalone: true, imports: [ - CommonModule, FormsModule, ReactiveFormsModule, - NgxPaginationModule], + NgxPaginationModule +], }) class TestComponent { diff --git a/src/app/submission/sections/identifiers/section-identifiers.component.ts b/src/app/submission/sections/identifiers/section-identifiers.component.ts index e297c795df..cc42066534 100644 --- a/src/app/submission/sections/identifiers/section-identifiers.component.ts +++ b/src/app/submission/sections/identifiers/section-identifiers.component.ts @@ -1,8 +1,4 @@ -import { - AsyncPipe, - NgForOf, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { ChangeDetectionStrategy, Component, @@ -40,11 +36,9 @@ import { SectionsService } from '../sections.service'; changeDetection: ChangeDetectionStrategy.Default, imports: [ TranslateModule, - NgForOf, - NgIf, AsyncPipe, - VarDirective, - ], + VarDirective +], standalone: true, }) diff --git a/src/app/submission/sections/license/section-license.component.html b/src/app/submission/sections/license/section-license.component.html index ed10203596..4918a3e32a 100644 --- a/src/app/submission/sections/license/section-license.component.html +++ b/src/app/submission/sections/license/section-license.component.html @@ -1,9 +1,11 @@

- +@if (formModel) { + +} diff --git a/src/app/submission/sections/license/section-license.component.spec.ts b/src/app/submission/sections/license/section-license.component.spec.ts index 95b2e7f50a..14d7cb51ad 100644 --- a/src/app/submission/sections/license/section-license.component.spec.ts +++ b/src/app/submission/sections/license/section-license.component.spec.ts @@ -377,11 +377,10 @@ describe('SubmissionSectionLicenseComponent test suite', () => { standalone: true, imports: [ SubmissionSectionLicenseComponent, - CommonModule, FormsModule, FormComponent, - ReactiveFormsModule, - ], + ReactiveFormsModule +], }) class TestComponent { diff --git a/src/app/submission/sections/license/section-license.component.ts b/src/app/submission/sections/license/section-license.component.ts index 86a0455c30..88f36875f6 100644 --- a/src/app/submission/sections/license/section-license.component.ts +++ b/src/app/submission/sections/license/section-license.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { AfterViewChecked, ChangeDetectorRef, @@ -67,9 +64,8 @@ import { providers: [], imports: [ FormComponent, - NgIf, - AsyncPipe, - ], + AsyncPipe +], standalone: true, }) export class SubmissionSectionLicenseComponent extends SectionModelComponent implements AfterViewChecked { diff --git a/src/app/submission/sections/section-coar-notify/section-coar-notify.component.ts b/src/app/submission/sections/section-coar-notify/section-coar-notify.component.ts index c47e4c644d..842108a1b0 100644 --- a/src/app/submission/sections/section-coar-notify/section-coar-notify.component.ts +++ b/src/app/submission/sections/section-coar-notify/section-coar-notify.component.ts @@ -1,9 +1,4 @@ -import { - AsyncPipe, - NgClass, - NgForOf, - NgIf, -} from '@angular/common'; +import { AsyncPipe, NgClass } from '@angular/common'; import { ChangeDetectorRef, Component, @@ -59,14 +54,12 @@ import { LdnPattern } from './submission-coar-notify.config'; styleUrls: ['./section-coar-notify.component.scss'], standalone: true, imports: [ - NgIf, - NgForOf, AsyncPipe, TranslateModule, NgbDropdownModule, NgClass, - InfiniteScrollModule, - ], + InfiniteScrollModule +], providers: [NgbDropdown], }) export class SubmissionSectionCoarNotifyComponent extends SectionModelComponent { diff --git a/src/app/submission/sections/sherpa-policies/content-accordion/content-accordion.component.ts b/src/app/submission/sections/sherpa-policies/content-accordion/content-accordion.component.ts index 2fde4f37cd..5c10a0b259 100644 --- a/src/app/submission/sections/sherpa-policies/content-accordion/content-accordion.component.ts +++ b/src/app/submission/sections/sherpa-policies/content-accordion/content-accordion.component.ts @@ -1,8 +1,4 @@ -import { - NgForOf, - NgIf, - TitleCasePipe, -} from '@angular/common'; +import { TitleCasePipe } from '@angular/common'; import { Component, Input, @@ -20,12 +16,10 @@ import { PermittedVersions } from '../../../../core/submission/models/sherpa-pol templateUrl: './content-accordion.component.html', styleUrls: ['./content-accordion.component.scss'], imports: [ - NgForOf, TranslateModule, - NgIf, NgbCollapseModule, - TitleCasePipe, - ], + TitleCasePipe +], standalone: true, }) export class ContentAccordionComponent { diff --git a/src/app/submission/sections/sherpa-policies/metadata-information/metadata-information.component.ts b/src/app/submission/sections/sherpa-policies/metadata-information/metadata-information.component.ts index 4eb9567abb..e7f8e22aa1 100644 --- a/src/app/submission/sections/sherpa-policies/metadata-information/metadata-information.component.ts +++ b/src/app/submission/sections/sherpa-policies/metadata-information/metadata-information.component.ts @@ -1,7 +1,4 @@ -import { - DatePipe, - NgIf, -} from '@angular/common'; +import { DatePipe } from '@angular/common'; import { Component, Input, @@ -18,10 +15,9 @@ import { Metadata } from '../../../../core/submission/models/sherpa-policies-det templateUrl: './metadata-information.component.html', styleUrls: ['./metadata-information.component.scss'], imports: [ - NgIf, TranslateModule, - DatePipe, - ], + DatePipe +], standalone: true, }) export class MetadataInformationComponent { diff --git a/src/app/submission/sections/sherpa-policies/publication-information/publication-information.component.ts b/src/app/submission/sections/sherpa-policies/publication-information/publication-information.component.ts index 8f256700a0..df7daf75e9 100644 --- a/src/app/submission/sections/sherpa-policies/publication-information/publication-information.component.ts +++ b/src/app/submission/sections/sherpa-policies/publication-information/publication-information.component.ts @@ -1,7 +1,4 @@ -import { - NgForOf, - NgIf, -} from '@angular/common'; + import { Component, Input, @@ -18,10 +15,8 @@ import { Journal } from '../../../../core/submission/models/sherpa-policies-deta templateUrl: './publication-information.component.html', styleUrls: ['./publication-information.component.scss'], imports: [ - NgIf, - TranslateModule, - NgForOf, - ], + TranslateModule +], standalone: true, }) export class PublicationInformationComponent { diff --git a/src/app/submission/sections/sherpa-policies/publisher-policy/publisher-policy.component.ts b/src/app/submission/sections/sherpa-policies/publisher-policy/publisher-policy.component.ts index 8cbe2f6904..c827555a2b 100644 --- a/src/app/submission/sections/sherpa-policies/publisher-policy/publisher-policy.component.ts +++ b/src/app/submission/sections/sherpa-policies/publisher-policy/publisher-policy.component.ts @@ -1,8 +1,4 @@ -import { - KeyValuePipe, - NgForOf, - NgIf, -} from '@angular/common'; +import { KeyValuePipe } from '@angular/common'; import { Component, Input, @@ -23,10 +19,8 @@ import { ContentAccordionComponent } from '../content-accordion/content-accordio imports: [ ContentAccordionComponent, TranslateModule, - KeyValuePipe, - NgForOf, - NgIf, - ], + KeyValuePipe +], standalone: true, }) export class PublisherPolicyComponent { diff --git a/src/app/submission/sections/sherpa-policies/section-sherpa-policies.component.ts b/src/app/submission/sections/sherpa-policies/section-sherpa-policies.component.ts index 86d55ce8d0..950fe1b4dc 100644 --- a/src/app/submission/sections/sherpa-policies/section-sherpa-policies.component.ts +++ b/src/app/submission/sections/sherpa-policies/section-sherpa-policies.component.ts @@ -1,8 +1,4 @@ -import { - AsyncPipe, - NgForOf, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, Inject, @@ -47,12 +43,10 @@ import { PublisherPolicyComponent } from './publisher-policy/publisher-policy.co AlertComponent, TranslateModule, PublisherPolicyComponent, - NgIf, PublicationInformationComponent, AsyncPipe, - VarDirective, - NgForOf, - ], + VarDirective +], standalone: true, }) export class SubmissionSectionSherpaPoliciesComponent extends SectionModelComponent { diff --git a/src/app/submission/sections/upload/accessConditions/submission-section-upload-access-conditions.component.ts b/src/app/submission/sections/upload/accessConditions/submission-section-upload-access-conditions.component.ts index 84eff58f72..eb167f5501 100644 --- a/src/app/submission/sections/upload/accessConditions/submission-section-upload-access-conditions.component.ts +++ b/src/app/submission/sections/upload/accessConditions/submission-section-upload-access-conditions.component.ts @@ -1,7 +1,4 @@ -import { - NgForOf, - NgIf, -} from '@angular/common'; + import { Component, Input, @@ -22,10 +19,7 @@ import { isEmpty } from '../../../../shared/empty.util'; @Component({ selector: 'ds-submission-section-upload-access-conditions', templateUrl: './submission-section-upload-access-conditions.component.html', - imports: [ - NgForOf, - NgIf, - ], + imports: [], standalone: true, }) export class SubmissionSectionUploadAccessConditionsComponent implements OnInit { diff --git a/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.html b/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.html index 761ac9537e..9187915dcf 100644 --- a/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.html +++ b/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.html @@ -5,15 +5,17 @@
diff --git a/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.spec.ts b/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.spec.ts index 015ccd4ae4..7082e38d7b 100644 --- a/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.spec.ts +++ b/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.spec.ts @@ -403,11 +403,10 @@ describe('SubmissionSectionUploadFileEditComponent test suite', () => { standalone: true, imports: [ SubmissionSectionUploadFileEditComponent, - CommonModule, FormsModule, FormComponent, - ReactiveFormsModule, - ], + ReactiveFormsModule +], }) class TestComponent { } diff --git a/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.ts b/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.ts index 79b3d3a565..cf577bf6f5 100644 --- a/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.ts +++ b/src/app/submission/sections/upload/file/edit/section-upload-file-edit.component.ts @@ -1,4 +1,4 @@ -import { NgIf } from '@angular/common'; + import { ChangeDetectorRef, Component, @@ -79,10 +79,9 @@ import { templateUrl: './section-upload-file-edit.component.html', imports: [ FormComponent, - NgIf, TranslateModule, - BtnDisabledDirective, - ], + BtnDisabledDirective +], standalone: true, }) export class SubmissionSectionUploadFileEditComponent diff --git a/src/app/submission/sections/upload/file/section-upload-file.component.spec.ts b/src/app/submission/sections/upload/file/section-upload-file.component.spec.ts index c1487b0559..a1edfefb65 100644 --- a/src/app/submission/sections/upload/file/section-upload-file.component.spec.ts +++ b/src/app/submission/sections/upload/file/section-upload-file.component.spec.ts @@ -286,9 +286,9 @@ describe('SubmissionSectionUploadFileComponent test suite', () => { standalone: true, imports: [ ThemedSubmissionSectionUploadFileComponent, - CommonModule, AsyncPipe, - NgbModule], + NgbModule +], }) class TestComponent { diff --git a/src/app/submission/sections/upload/file/section-upload-file.component.ts b/src/app/submission/sections/upload/file/section-upload-file.component.ts index 09ea3cb112..eccdf9b949 100644 --- a/src/app/submission/sections/upload/file/section-upload-file.component.ts +++ b/src/app/submission/sections/upload/file/section-upload-file.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, Input, @@ -51,12 +48,11 @@ import { SubmissionSectionUploadFileViewComponent } from './view/section-upload- imports: [ TranslateModule, SubmissionSectionUploadFileViewComponent, - NgIf, AsyncPipe, ThemedFileDownloadLinkComponent, FileSizePipe, - BtnDisabledDirective, - ], + BtnDisabledDirective +], standalone: true, }) export class SubmissionSectionUploadFileComponent implements OnChanges, OnInit, OnDestroy { diff --git a/src/app/submission/sections/upload/file/view/section-upload-file-view.component.html b/src/app/submission/sections/upload/file/view/section-upload-file-view.component.html index dc72fbdad0..73e18afeb5 100644 --- a/src/app/submission/sections/upload/file/view/section-upload-file-view.component.html +++ b/src/app/submission/sections/upload/file/view/section-upload-file-view.component.html @@ -1,38 +1,46 @@
- - - + @if (metadata) { + @for (entry of getAllMetadataValue(fileTitleKey); track entry) { + @if (entry.value !== '') {

{{entry.value}} ({{fileData?.sizeBytes | dsFileSize}})

-
- -
- {{'submission.sections.upload.no-entry' | translate}} {{fileTitleKey}} -
-
+ } + @if (entry.value === '') { + @if (metadata[fileTitleKey].indexOf(entry) === 0) { +
+ {{'submission.sections.upload.no-entry' | translate}} {{fileTitleKey}} +
+ } + } -
- - + } + @for (entry of getAllMetadataValue(fileDescrKey); track entry) { + @if (entry.value !== '') { {{entry.value | dsTruncate:['150']}} - - - {{'submission.sections.upload.no-entry' | translate}} {{fileDescrKey}} - + } + @if (entry.value === '') { + @if (metadata[fileDescrKey].indexOf(entry) === 0) { + {{'submission.sections.upload.no-entry' | translate}} {{fileDescrKey}} + } + } - -
+ } + } -
- {{'admin.registries.bitstream-formats.edit.head' | translate:{format: fileFormat} }} -
-
- Checksum {{fileCheckSum.checkSumAlgorithm}}: {{fileCheckSum.value}} -
+ @if (fileFormat) { +
+ {{'admin.registries.bitstream-formats.edit.head' | translate:{format: fileFormat} }} +
+ } + @if (fileCheckSum) { +
+ Checksum {{fileCheckSum.checkSumAlgorithm}}: {{fileCheckSum.value}} +
+ }
diff --git a/src/app/submission/sections/upload/file/view/section-upload-file-view.component.ts b/src/app/submission/sections/upload/file/view/section-upload-file-view.component.ts index f065fc9e19..0a7871fa35 100644 --- a/src/app/submission/sections/upload/file/view/section-upload-file-view.component.ts +++ b/src/app/submission/sections/upload/file/view/section-upload-file-view.component.ts @@ -1,7 +1,4 @@ -import { - NgForOf, - NgIf, -} from '@angular/common'; + import { Component, Input, @@ -30,10 +27,8 @@ import { SubmissionSectionUploadAccessConditionsComponent } from '../../accessCo SubmissionSectionUploadAccessConditionsComponent, TranslateModule, TruncatePipe, - NgIf, - NgForOf, - FileSizePipe, - ], + FileSizePipe +], standalone: true, }) export class SubmissionSectionUploadFileViewComponent implements OnInit { diff --git a/src/app/submission/sections/upload/section-upload.component.html b/src/app/submission/sections/upload/section-upload.component.html index 9d916a4f98..a9fd762f89 100644 --- a/src/app/submission/sections/upload/section-upload.component.html +++ b/src/app/submission/sections/upload/section-upload.component.html @@ -1,23 +1,24 @@ + [dismissible]="true" +[type]="AlertTypeEnum.Info"> - - -
-
- - - {{ 'submission.sections.upload.header.policy.default.nolist' | translate:{ "collectionName": collectionName } }} - - - {{ 'submission.sections.upload.header.policy.default.withlist' | translate:{ "collectionName": collectionName } }} - - - - +@if (fileList.length > 0) { + @if (collectionDefaultAccessConditions.length > 0) { +
+
+ + @if (collectionPolicyType === 1) { + {{ 'submission.sections.upload.header.policy.default.nolist' | translate:{ "collectionName": collectionName } }} + } + @if (collectionPolicyType === 2) { + {{ 'submission.sections.upload.header.policy.default.withlist' | translate:{ "collectionName": collectionName } }} + } + + + +
-
+ }
{{ 'bitstream.edit.form.primaryBitstream.label' | translate }} @@ -28,30 +29,29 @@
- + @for (fileEntry of fileList; track fileEntry; let i = $index) { + [isPrimary]="primaryBitstreamUUID ? primaryBitstreamUUID === fileEntry.uuid : null" + [availableAccessConditionOptions]="availableAccessConditionOptions" + [collectionId]="collectionId" + [collectionPolicyType]="collectionPolicyType" + [configMetadataForm]="(configMetadataForm$ | async)" + [fileId]="fileEntry.uuid" + [fileIndex]="i" + [fileName]="fileNames[i]" + [sectionId]="sectionData.id" + [submissionId]="submissionId">

-
- - - + } +} @else {
{{'submission.sections.upload.no-file-uploaded' | translate}}
-
+} + diff --git a/src/app/submission/sections/upload/section-upload.component.spec.ts b/src/app/submission/sections/upload/section-upload.component.spec.ts index 61db6c6885..36f1bd4a4d 100644 --- a/src/app/submission/sections/upload/section-upload.component.spec.ts +++ b/src/app/submission/sections/upload/section-upload.component.spec.ts @@ -382,8 +382,7 @@ describe('SubmissionSectionUploadComponent test suite', () => { selector: 'ds-test-cmp', template: ``, standalone: true, - imports: [ - CommonModule], + imports: [], }) class TestComponent { diff --git a/src/app/submission/sections/upload/section-upload.component.ts b/src/app/submission/sections/upload/section-upload.component.ts index 58008c9dfb..11a0ca4077 100644 --- a/src/app/submission/sections/upload/section-upload.component.ts +++ b/src/app/submission/sections/upload/section-upload.component.ts @@ -1,8 +1,4 @@ -import { - AsyncPipe, - NgForOf, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { ChangeDetectorRef, Component, @@ -74,12 +70,10 @@ export interface AccessConditionGroupsMapEntry { imports: [ ThemedSubmissionSectionUploadFileComponent, SubmissionSectionUploadAccessConditionsComponent, - NgIf, AlertComponent, TranslateModule, - NgForOf, - AsyncPipe, - ], + AsyncPipe +], standalone: true, }) export class SubmissionSectionUploadComponent extends SectionModelComponent { diff --git a/src/app/subscriptions-page/subscriptions-page.component.html b/src/app/subscriptions-page/subscriptions-page.component.html index e8dfc8fc6a..b3489ce66c 100644 --- a/src/app/subscriptions-page/subscriptions-page.component.html +++ b/src/app/subscriptions-page/subscriptions-page.component.html @@ -4,39 +4,47 @@

{{'subscriptions.title' | translate}}

- + @if (loading$ | async) { + + } - -
- - - - - - - - - - - - - -
{{'subscriptions.table.dso' | translate}}{{'subscriptions.table.subscription_type' | translate}}{{'subscriptions.table.subscription_frequency' | translate}}{{'subscriptions.table.action' | translate}}
-
-
+ @if (subscriptions?.pageInfo?.totalElements > 0 && (loading$ | async) !== true) { + +
+ + + + + + + + + + + @for (subscription of subscriptions?.page; track subscription) { + + + } + +
{{'subscriptions.table.dso' | translate}}{{'subscriptions.table.subscription_type' | translate}}{{'subscriptions.table.subscription_frequency' | translate}}{{'subscriptions.table.action' | translate}}
+
+
+ } - - {{ 'subscriptions.table.empty.message' | translate }} - + @if (subscriptions?.pageInfo?.totalElements === 0 && (loading$ | async) !== true) { + + {{ 'subscriptions.table.empty.message' | translate }} + + }
diff --git a/src/app/subscriptions-page/subscriptions-page.component.ts b/src/app/subscriptions-page/subscriptions-page.component.ts index 5d0b4b258d..1d967d3332 100644 --- a/src/app/subscriptions-page/subscriptions-page.component.ts +++ b/src/app/subscriptions-page/subscriptions-page.component.ts @@ -1,8 +1,4 @@ -import { - AsyncPipe, - NgFor, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, OnDestroy, @@ -49,7 +45,7 @@ import { VarDirective } from '../shared/utils/var.directive'; templateUrl: './subscriptions-page.component.html', styleUrls: ['./subscriptions-page.component.scss'], standalone: true, - imports: [NgIf, ThemedLoadingComponent, VarDirective, PaginationComponent, NgFor, SubscriptionViewComponent, AlertComponent, AsyncPipe, TranslateModule], + imports: [ThemedLoadingComponent, VarDirective, PaginationComponent, SubscriptionViewComponent, AlertComponent, AsyncPipe, TranslateModule], }) /** * List and allow to manage all the active subscription for the current user diff --git a/src/app/suggestions-page/suggestions-page.component.html b/src/app/suggestions-page/suggestions-page.component.html index 1fe3ffb4ce..452f47f9b6 100644 --- a/src/app/suggestions-page/suggestions-page.component.html +++ b/src/app/suggestions-page/suggestions-page.component.html @@ -1,50 +1,62 @@
- - -
- + + @if ((processing$ | async)) { + + } + @if ((processing$ | async) !== true && suggestionsRD?.pageInfo?.totalElements > 0) { +

{{'suggestion.suggestionFor' | translate}} {{researcherName}} {{'suggestion.from.source' | translate}} {{ translateSuggestionSource() | translate }}

-
({{ getSelectedSuggestionsCount() }}) - - + @if (getSelectedSuggestionsCount() > 0) { + + } + @if (isBulkOperationPending) { + + }
- -
    -
  • - -
  • -
-
+ @if ((processing$ | async) !== true) { + +
    + @for (object of suggestionsRD?.page; track object; let i = $index; let last = $last) { +
  • + +
  • + } +
+
+ }
- + } + @if ((processing$ | async) !== true && (suggestionsRD?.pageInfo?.totalElements === 0 || !suggestionsRD)) { + {{'suggestion.count.missing' | translate}} -
+ } +
diff --git a/src/app/suggestions-page/suggestions-page.component.ts b/src/app/suggestions-page/suggestions-page.component.ts index 0fc790a125..9e411e8336 100644 --- a/src/app/suggestions-page/suggestions-page.component.ts +++ b/src/app/suggestions-page/suggestions-page.component.ts @@ -1,8 +1,4 @@ -import { - AsyncPipe, - NgForOf, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, OnInit, @@ -70,16 +66,14 @@ import { getWorkspaceItemEditRoute } from '../workflowitems-edit-page/workflowit imports: [ AsyncPipe, VarDirective, - NgIf, RouterLink, TranslateModule, SuggestionActionsComponent, ThemedLoadingComponent, PaginationComponent, SuggestionListElementComponent, - NgForOf, - AlertComponent, - ], + AlertComponent +], standalone: true, }) diff --git a/src/app/system-wide-alert/alert-banner/system-wide-alert-banner.component.ts b/src/app/system-wide-alert/alert-banner/system-wide-alert-banner.component.ts index 79ecf2117a..364d721aa1 100644 --- a/src/app/system-wide-alert/alert-banner/system-wide-alert-banner.component.ts +++ b/src/app/system-wide-alert/alert-banner/system-wide-alert-banner.component.ts @@ -1,8 +1,4 @@ -import { - AsyncPipe, - isPlatformBrowser, - NgIf, -} from '@angular/common'; +import { AsyncPipe, isPlatformBrowser } from '@angular/common'; import { Component, Inject, @@ -42,7 +38,7 @@ import { SystemWideAlert } from '../system-wide-alert.model'; styleUrls: ['./system-wide-alert-banner.component.scss'], templateUrl: './system-wide-alert-banner.component.html', standalone: true, - imports: [NgIf, AsyncPipe, TranslateModule], + imports: [AsyncPipe, TranslateModule], }) export class SystemWideAlertBannerComponent implements OnInit, OnDestroy { diff --git a/src/app/system-wide-alert/alert-form/system-wide-alert-form.component.ts b/src/app/system-wide-alert/alert-form/system-wide-alert-form.component.ts index 73517e5b0d..bc8e8fa49d 100644 --- a/src/app/system-wide-alert/alert-form/system-wide-alert-form.component.ts +++ b/src/app/system-wide-alert/alert-form/system-wide-alert-form.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, OnInit, @@ -60,7 +57,7 @@ import { SystemWideAlert } from '../system-wide-alert.model'; styleUrls: ['./system-wide-alert-form.component.scss'], templateUrl: './system-wide-alert-form.component.html', standalone: true, - imports: [FormsModule, ReactiveFormsModule, UiSwitchModule, NgIf, NgbDatepickerModule, NgbTimepickerModule, AsyncPipe, TranslateModule, BtnDisabledDirective], + imports: [FormsModule, ReactiveFormsModule, UiSwitchModule, NgbDatepickerModule, NgbTimepickerModule, AsyncPipe, TranslateModule, BtnDisabledDirective], }) export class SystemWideAlertFormComponent implements OnInit { diff --git a/src/app/thumbnail/thumbnail.component.html b/src/app/thumbnail/thumbnail.component.html index e151684a01..de569270e0 100644 --- a/src/app/thumbnail/thumbnail.component.html +++ b/src/app/thumbnail/thumbnail.component.html @@ -1,19 +1,25 @@
-
-
-
- + @if (isLoading) { +
+
+
+ +
-
+ } - -
-
-
- {{ placeholder | translate }} + @if (src !== null) { + + } + @if (src === null && !isLoading) { +
+
+
+ {{ placeholder | translate }} +
-
+ }
diff --git a/src/app/workflowitems-edit-page/advanced-workflow-action/advanced-workflow-action-rating/advanced-workflow-action-rating.component.ts b/src/app/workflowitems-edit-page/advanced-workflow-action/advanced-workflow-action-rating/advanced-workflow-action-rating.component.ts index b8620e7d89..6ee9c8d500 100644 --- a/src/app/workflowitems-edit-page/advanced-workflow-action/advanced-workflow-action-rating/advanced-workflow-action-rating.component.ts +++ b/src/app/workflowitems-edit-page/advanced-workflow-action/advanced-workflow-action-rating/advanced-workflow-action-rating.component.ts @@ -1,8 +1,4 @@ -import { - AsyncPipe, - NgClass, - NgIf, -} from '@angular/common'; +import { AsyncPipe, NgClass } from '@angular/common'; import { Component, OnInit, @@ -35,14 +31,13 @@ export const ADVANCED_WORKFLOW_ACTION_RATING = 'scorereviewaction'; preserveWhitespaces: false, imports: [ ModifyItemOverviewComponent, - NgIf, AsyncPipe, TranslateModule, NgbRatingModule, NgClass, ReactiveFormsModule, - VarDirective, - ], + VarDirective +], standalone: true, }) export class AdvancedWorkflowActionRatingComponent extends AdvancedWorkflowActionComponent implements OnInit { diff --git a/src/app/workflowitems-edit-page/advanced-workflow-action/advanced-workflow-action-select-reviewer/advanced-workflow-action-select-reviewer.component.html b/src/app/workflowitems-edit-page/advanced-workflow-action/advanced-workflow-action-select-reviewer/advanced-workflow-action-select-reviewer.component.html index d4ac620811..2d7a7ff8cd 100644 --- a/src/app/workflowitems-edit-page/advanced-workflow-action/advanced-workflow-action-select-reviewer/advanced-workflow-action-select-reviewer.component.html +++ b/src/app/workflowitems-edit-page/advanced-workflow-action/advanced-workflow-action-select-reviewer/advanced-workflow-action-select-reviewer.component.html @@ -1,22 +1,32 @@
-

{{ 'advanced-workflow-action.select-reviewer.description-multiple' | translate }}

-

{{ 'advanced-workflow-action.select-reviewer.description-single' | translate }}

+ @if (multipleReviewers) { +

{{ 'advanced-workflow-action.select-reviewer.description-multiple' | translate }}

+ } + @if (!multipleReviewers) { +

{{ 'advanced-workflow-action.select-reviewer.description-single' | translate }}

+ } - - - {{ 'advanced-workflow-action.select-reviewer.no-reviewer-selected.error' | translate }} - + @if (groupId !== undefined) { + + } + @if (displayError) { + + {{ 'advanced-workflow-action.select-reviewer.no-reviewer-selected.error' | translate }} + + } - - + @if (item$ | async) { + + + }
- +

{{'workflow-item.' + type + '.header' | translate}}

+ @if (item) { + + } + +
diff --git a/src/app/workflowitems-edit-page/workflow-item-delete/workflow-item-delete.component.ts b/src/app/workflowitems-edit-page/workflow-item-delete/workflow-item-delete.component.ts index 0352eba098..9fdb123566 100644 --- a/src/app/workflowitems-edit-page/workflow-item-delete/workflow-item-delete.component.ts +++ b/src/app/workflowitems-edit-page/workflow-item-delete/workflow-item-delete.component.ts @@ -1,7 +1,4 @@ -import { - CommonModule, - Location, -} from '@angular/common'; +import { CommonModule, Location } from '@angular/common'; import { Component } from '@angular/core'; import { ActivatedRoute, diff --git a/src/app/workspaceitems-edit-page/workspaceitems-delete-page/workspaceitems-delete-page.component.html b/src/app/workspaceitems-edit-page/workspaceitems-delete-page/workspaceitems-delete-page.component.html index 059d3b7e3b..8b8dda97b7 100644 --- a/src/app/workspaceitems-edit-page/workspaceitems-delete-page/workspaceitems-delete-page.component.html +++ b/src/app/workspaceitems-edit-page/workspaceitems-delete-page/workspaceitems-delete-page.component.html @@ -1,6 +1,8 @@

{{ 'workspace-item.delete.header' | translate }}

- + @if ((dso$ | async)) { + + }
@@ -16,8 +18,8 @@
diff --git a/src/app/workspaceitems-edit-page/workspaceitems-delete-page/workspaceitems-delete-page.component.ts b/src/app/workspaceitems-edit-page/workspaceitems-delete-page/workspaceitems-delete-page.component.ts index 00ab6e969c..2f9ac81308 100644 --- a/src/app/workspaceitems-edit-page/workspaceitems-delete-page/workspaceitems-delete-page.component.ts +++ b/src/app/workspaceitems-edit-page/workspaceitems-delete-page/workspaceitems-delete-page.component.ts @@ -1,7 +1,4 @@ -import { - CommonModule, - Location, -} from '@angular/common'; +import { CommonModule, Location } from '@angular/common'; import { Component, OnInit, diff --git a/src/themes/dspace/app/header-nav-wrapper/header-navbar-wrapper.component.html b/src/themes/dspace/app/header-nav-wrapper/header-navbar-wrapper.component.html index d2b977ff84..4fa423d1ef 100644 --- a/src/themes/dspace/app/header-nav-wrapper/header-navbar-wrapper.component.html +++ b/src/themes/dspace/app/header-nav-wrapper/header-navbar-wrapper.component.html @@ -1,9 +1,11 @@
-
- -
+ @if ((isMobile$ | async)) { +
+ +
+ }
diff --git a/src/themes/dspace/app/header/header.component.ts b/src/themes/dspace/app/header/header.component.ts index 1931838923..791959dd9c 100644 --- a/src/themes/dspace/app/header/header.component.ts +++ b/src/themes/dspace/app/header/header.component.ts @@ -1,7 +1,4 @@ -import { - AsyncPipe, - NgIf, -} from '@angular/common'; +import { AsyncPipe } from '@angular/common'; import { Component, OnInit, @@ -27,7 +24,7 @@ import { ImpersonateNavbarComponent } from '../../../../app/shared/impersonate-n styleUrls: ['header.component.scss'], templateUrl: 'header.component.html', standalone: true, - imports: [NgbDropdownModule, ThemedLangSwitchComponent, RouterLink, ThemedSearchNavbarComponent, ContextHelpToggleComponent, ThemedAuthNavMenuComponent, ImpersonateNavbarComponent, ThemedNavbarComponent, TranslateModule, AsyncPipe, NgIf], + imports: [NgbDropdownModule, ThemedLangSwitchComponent, RouterLink, ThemedSearchNavbarComponent, ContextHelpToggleComponent, ThemedAuthNavMenuComponent, ImpersonateNavbarComponent, ThemedNavbarComponent, TranslateModule, AsyncPipe], }) export class HeaderComponent extends BaseComponent implements OnInit { public isNavBarCollapsed$: Observable; diff --git a/src/themes/dspace/app/navbar/navbar.component.html b/src/themes/dspace/app/navbar/navbar.component.html index d828206e7a..8ecb8c5667 100644 --- a/src/themes/dspace/app/navbar/navbar.component.html +++ b/src/themes/dspace/app/navbar/navbar.component.html @@ -1,9 +1,9 @@ - +@if ((isMobile$ | async) && (isAuthenticated$ | async)) { - +}