From 07d489b6f9f3e84a457f25733cf3d5069447fc68 Mon Sep 17 00:00:00 2001
From: DanGastardelli <55243638+DanGastardelli@users.noreply.github.com>
Date: Fri, 4 Oct 2024 12:06:28 -0300
Subject: [PATCH 01/10] Allow input of alternative text for collection and
community logos/thumbnails
---
.../collection-form/collection-form.models.ts | 5 ++++
.../collection-page.component.html | 11 ++++++---
.../community-form.component.ts | 5 ++++
.../community-page.component.html | 7 ++++--
src/app/core/shared/collection.model.ts | 8 +++++++
src/app/core/shared/community.model.ts | 8 +++++++
src/app/thumbnail/thumbnail.component.html | 4 +++-
src/app/thumbnail/thumbnail.component.ts | 24 ++++++++++++++++++-
src/assets/i18n/en.json5 | 4 ++++
src/assets/i18n/es.json5 | 5 ++++
src/assets/i18n/pt-BR.json5 | 6 +++++
src/assets/i18n/pt-PT.json5 | 6 +++++
12 files changed, 86 insertions(+), 7 deletions(-)
diff --git a/src/app/collection-page/collection-form/collection-form.models.ts b/src/app/collection-page/collection-form/collection-form.models.ts
index 22998af674e..20d829b3f8c 100644
--- a/src/app/collection-page/collection-form/collection-form.models.ts
+++ b/src/app/collection-page/collection-form/collection-form.models.ts
@@ -54,4 +54,9 @@ export const collectionFormModels: DynamicFormControlModel[] = [
name: 'dc.rights.license',
spellCheck: environment.form.spellCheck,
}),
+ new DynamicTextAreaModel({
+ id: 'thumbnail',
+ name: 'dspace.thumbnail.description',
+ spellCheck: environment.form.spellCheck,
+ }),
];
diff --git a/src/app/collection-page/collection-page.component.html b/src/app/collection-page/collection-page.component.html
index 4a3e28c6aad..da6d8165118 100644
--- a/src/app/collection-page/collection-page.component.html
+++ b/src/app/collection-page/collection-page.component.html
@@ -10,10 +10,15 @@
-
-
+
+ [alternateText]="collection.descriptionThumbnail">
+
+
+
diff --git a/src/app/community-page/community-form/community-form.component.ts b/src/app/community-page/community-form/community-form.component.ts
index d32d9e408f2..4b6a22aa873 100644
--- a/src/app/community-page/community-form/community-form.component.ts
+++ b/src/app/community-page/community-form/community-form.component.ts
@@ -101,6 +101,11 @@ export class CommunityFormComponent extends ComColFormComponent imple
name: 'dc.description.tableofcontents',
spellCheck: environment.form.spellCheck,
}),
+ new DynamicTextAreaModel({
+ id: 'thumbnail',
+ name: 'dspace.thumbnail.description',
+ spellCheck: environment.form.spellCheck,
+ }),
];
public constructor(protected formService: DynamicFormService,
diff --git a/src/app/community-page/community-page.component.html b/src/app/community-page/community-page.component.html
index a695e2019a3..2262e6ae5e3 100644
--- a/src/app/community-page/community-page.component.html
+++ b/src/app/community-page/community-page.component.html
@@ -6,8 +6,11 @@