diff --git a/src/app/features/registry/components/archiving-message/archiving-message.component.html b/src/app/features/registry/components/archiving-message/archiving-message.component.html
index bc60b1b78..db5c8edbf 100644
--- a/src/app/features/registry/components/archiving-message/archiving-message.component.html
+++ b/src/app/features/registry/components/archiving-message/archiving-message.component.html
@@ -5,17 +5,16 @@
{{ 'registry.archiving.title' | translate }}
- {{ 'registry.archiving.pleaseNote' | translate }}
-
+
{{ 'registry.archiving.description' | translate }}
- {{ supportEmail }}
+ {{ supportEmail }}
{{ 'registry.archiving.descriptionEnd' | translate }}
-
+
diff --git a/src/app/features/registry/components/archiving-message/archiving-message.component.ts b/src/app/features/registry/components/archiving-message/archiving-message.component.ts
index bf66ce905..e4eacef72 100644
--- a/src/app/features/registry/components/archiving-message/archiving-message.component.ts
+++ b/src/app/features/registry/components/archiving-message/archiving-message.component.ts
@@ -21,7 +21,7 @@ import { ShortRegistrationInfoComponent } from '../short-registration-info/short
export class ArchivingMessageComponent {
private readonly environment = inject(ENVIRONMENT);
- registration = input.required();
+ readonly registration = input.required();
readonly supportEmail = this.environment.supportEmail;
}
diff --git a/src/app/features/registry/components/short-registration-info/short-registration-info.component.html b/src/app/features/registry/components/short-registration-info/short-registration-info.component.html
index fd5a6738b..b14ea1d4a 100644
--- a/src/app/features/registry/components/short-registration-info/short-registration-info.component.html
+++ b/src/app/features/registry/components/short-registration-info/short-registration-info.component.html
@@ -32,8 +32,10 @@ {{ 'common.labels.dateCreated' | translate }}
{{ registration().dateCreated | date }}
-
+ @if (showAssociatedProject()) {
+
+ }
diff --git a/src/app/features/registry/components/short-registration-info/short-registration-info.component.spec.ts b/src/app/features/registry/components/short-registration-info/short-registration-info.component.spec.ts
index 085736306..fc1d184b5 100644
--- a/src/app/features/registry/components/short-registration-info/short-registration-info.component.spec.ts
+++ b/src/app/features/registry/components/short-registration-info/short-registration-info.component.spec.ts
@@ -48,6 +48,25 @@ describe('ShortRegistrationInfoComponent', () => {
expect(fixture.componentInstance.associatedProjectUrl()).toBe(expectedUrl);
});
+ it('should show associated project by default', () => {
+ const fixture = TestBed.createComponent(ShortRegistrationInfoComponent);
+ fixture.componentRef.setInput('registration', MOCK_REGISTRATION_OVERVIEW_MODEL);
+ fixture.detectChanges();
+
+ expect(
+ fixture.nativeElement.querySelector('[data-test-short-registration-info-associated-project]')
+ ).not.toBeNull();
+ });
+
+ it('should hide associated project when showAssociatedProject is false', () => {
+ const fixture = TestBed.createComponent(ShortRegistrationInfoComponent);
+ fixture.componentRef.setInput('registration', MOCK_REGISTRATION_OVERVIEW_MODEL);
+ fixture.componentRef.setInput('showAssociatedProject', false);
+ fixture.detectChanges();
+
+ expect(fixture.nativeElement.querySelector('[data-test-short-registration-info-associated-project]')).toBeNull();
+ });
+
it('should dispatch LoadMoreBibliographicContributors', () => {
const fixture = TestBed.createComponent(ShortRegistrationInfoComponent);
fixture.componentRef.setInput('registration', MOCK_REGISTRATION_OVERVIEW_MODEL);
diff --git a/src/app/features/registry/components/short-registration-info/short-registration-info.component.ts b/src/app/features/registry/components/short-registration-info/short-registration-info.component.ts
index 1b20c04f9..01b7ce294 100644
--- a/src/app/features/registry/components/short-registration-info/short-registration-info.component.ts
+++ b/src/app/features/registry/components/short-registration-info/short-registration-info.component.ts
@@ -23,17 +23,20 @@ import { RegistrationOverviewModel } from '../../models';
export class ShortRegistrationInfoComponent {
private readonly environment = inject(ENVIRONMENT);
- registration = input.required();
+ readonly registration = input.required();
+ readonly showAssociatedProject = input(true);
- bibliographicContributors = select(ContributorsSelectors.getBibliographicContributors);
- isBibliographicContributorsLoading = select(ContributorsSelectors.isBibliographicContributorsLoading);
- hasMoreBibliographicContributors = select(ContributorsSelectors.hasMoreBibliographicContributors);
+ readonly bibliographicContributors = select(ContributorsSelectors.getBibliographicContributors);
+ readonly isBibliographicContributorsLoading = select(ContributorsSelectors.isBibliographicContributorsLoading);
+ readonly hasMoreBibliographicContributors = select(ContributorsSelectors.hasMoreBibliographicContributors);
private readonly actions = createDispatchMap({
loadMoreBibliographicContributors: LoadMoreBibliographicContributors,
});
- associatedProjectUrl = computed(() => `${this.environment.webUrl}/${this.registration().associatedProjectId}`);
+ readonly associatedProjectUrl = computed(
+ () => `${this.environment.webUrl}/${this.registration().associatedProjectId}`
+ );
handleLoadMoreContributors(): void {
this.actions.loadMoreBibliographicContributors(this.registration()?.id, ResourceType.Registration);
diff --git a/src/assets/i18n/en.json b/src/assets/i18n/en.json
index 7f80fe1ea..41e535d3b 100644
--- a/src/assets/i18n/en.json
+++ b/src/assets/i18n/en.json
@@ -2266,10 +2266,9 @@
},
"registry": {
"archiving": {
- "description": "Changes to any files (1) in the projects or components being registered, (2) uploaded or selected as prompt responses, including those connected through add-ons during archiving will result in archiving failure and loss of your registration timestamp. Please do not modify your files until after you have received email confirmation of archiving completion. If this registration has been archiving for more than 72 hours, please email ",
- "descriptionEnd": " for assistance.",
- "pleaseNote": "Please note",
- "title": "This registration is currently archiving, and no changes can be made at this time."
+ "description": "If this registration has been archiving for more than 72 hours, email ",
+ "descriptionEnd": " for help.",
+ "title": "This registration is currently archiving. No changes can be made at this time."
},
"components": {
"noComponentsFound": "No components found"