diff --git a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-template-dialog/add-edit-clone-dossier-template-dialog.component.html b/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-template-dialog/add-edit-clone-dossier-template-dialog.component.html
index 19512f435..0e87b5ac5 100644
--- a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-template-dialog/add-edit-clone-dossier-template-dialog.component.html
+++ b/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-template-dialog/add-edit-clone-dossier-template-dialog.component.html
@@ -68,7 +68,7 @@
-
{{ 'download-includes' | translate }}
+ {{ 'download-includes' | translate }}
+
+ {{ 'documents-hidden-text-option.heading' | translate }}
+
diff --git a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-template-dialog/add-edit-clone-dossier-template-dialog.component.scss b/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-template-dialog/add-edit-clone-dossier-template-dialog.component.scss
index 397fc2fb3..ef0294250 100644
--- a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-template-dialog/add-edit-clone-dossier-template-dialog.component.scss
+++ b/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-template-dialog/add-edit-clone-dossier-template-dialog.component.scss
@@ -30,3 +30,21 @@ redaction-select {
margin: 16px 0 10px;
font-weight: 500;
}
+
+.hidden-elements {
+ display: flex;
+ gap: 40px;
+
+ .iqser-input-group {
+ margin-top: 0;
+ flex: 1;
+
+ mat-checkbox {
+ font-weight: 500;
+ }
+
+ .info {
+ margin-left: 24px;
+ }
+ }
+}
diff --git a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-template-dialog/add-edit-clone-dossier-template-dialog.component.ts b/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-template-dialog/add-edit-clone-dossier-template-dialog.component.ts
index 934a2d978..449d83f18 100644
--- a/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-template-dialog/add-edit-clone-dossier-template-dialog.component.ts
+++ b/apps/red-ui/src/app/modules/admin/dialogs/add-edit-dossier-template-dialog/add-edit-clone-dossier-template-dialog.component.ts
@@ -126,6 +126,8 @@ export class AddEditCloneDossierTemplateDialogComponent extends BaseDialogCompon
this._requiredIfValidator(() => this.hasValidTo),
],
downloadFileTypes: [this.dossierTemplate?.downloadFileTypes || ['PREVIEW', 'REDACTED']],
+ keepHiddenText: [this.dossierTemplate?.keepHiddenText],
+ keepImageMetadata: [this.dossierTemplate?.keepImageMetadata],
});
}
diff --git a/apps/red-ui/src/assets/i18n/redact/de.json b/apps/red-ui/src/assets/i18n/redact/de.json
index 5fb62a42b..8f149cc1a 100644
--- a/apps/red-ui/src/assets/i18n/redact/de.json
+++ b/apps/red-ui/src/assets/i18n/redact/de.json
@@ -45,6 +45,14 @@
"form": {
"description": "Beschreibung",
"description-placeholder": "Beschreibung eingeben",
+ "hidden-text": {
+ "description": "",
+ "title": ""
+ },
+ "image-metadata": {
+ "description": "",
+ "title": ""
+ },
"name": "Name der Dossier-Vorlage",
"name-placeholder": "Namen eingeben",
"valid-from": "Gültig ab",
diff --git a/apps/red-ui/src/assets/i18n/redact/en.json b/apps/red-ui/src/assets/i18n/redact/en.json
index ec2fa30a3..05d327b20 100644
--- a/apps/red-ui/src/assets/i18n/redact/en.json
+++ b/apps/red-ui/src/assets/i18n/redact/en.json
@@ -45,6 +45,14 @@
"form": {
"description": "Description",
"description-placeholder": "Enter Description",
+ "hidden-text": {
+ "description": "Hidden text is invisible to human readers but can be detected and read by software and machines. For example, the OCR output of scanned documents is stored as hidden text.",
+ "title": "Keep hidden text in redacted documents"
+ },
+ "image-metadata": {
+ "description": "Images in documents might contain additional information as metadata. This could include the creator, the date or the location of the image.",
+ "title": "Keep image metadata"
+ },
"name": "Dossier Template Name",
"name-placeholder": "Enter Name",
"valid-from": "Valid from",
diff --git a/apps/red-ui/src/assets/i18n/scm/de.json b/apps/red-ui/src/assets/i18n/scm/de.json
index 25b49dc1d..266b0d706 100644
--- a/apps/red-ui/src/assets/i18n/scm/de.json
+++ b/apps/red-ui/src/assets/i18n/scm/de.json
@@ -45,6 +45,14 @@
"form": {
"description": "Beschreibung",
"description-placeholder": "Beschreibung eingeben",
+ "hidden-text": {
+ "description": "",
+ "title": ""
+ },
+ "image-metadata": {
+ "description": "",
+ "title": ""
+ },
"name": "Name der Dossier-Vorlage",
"name-placeholder": "Namen eingeben",
"valid-from": "Gültig ab",
diff --git a/apps/red-ui/src/assets/i18n/scm/en.json b/apps/red-ui/src/assets/i18n/scm/en.json
index d4812c129..f7de72e56 100644
--- a/apps/red-ui/src/assets/i18n/scm/en.json
+++ b/apps/red-ui/src/assets/i18n/scm/en.json
@@ -45,6 +45,14 @@
"form": {
"description": "Description",
"description-placeholder": "Enter Description",
+ "hidden-text": {
+ "description": "Hidden text is invisible to human readers but can be detected and read by software and machines. For example, the OCR output of scanned documents is stored as hidden text.",
+ "title": "Keep hidden text in redacted documents"
+ },
+ "image-metadata": {
+ "description": "Images in documents might contain additional information as metadata. This could include the creator, the date or the location of the image.",
+ "title": "Keep image metadata"
+ },
"name": "Dossier Template Name",
"name-placeholder": "Enter Name",
"valid-from": "Valid from",
diff --git a/libs/red-domain/src/lib/dossier-templates/dossier-template.model.ts b/libs/red-domain/src/lib/dossier-templates/dossier-template.model.ts
index a651c491e..7988160cd 100644
--- a/libs/red-domain/src/lib/dossier-templates/dossier-template.model.ts
+++ b/libs/red-domain/src/lib/dossier-templates/dossier-template.model.ts
@@ -17,6 +17,7 @@ export class DossierTemplate implements IDossierTemplate, IListable {
readonly validTo?: string;
readonly dossierTemplateStatus: DossierTemplateStatus;
readonly keepHiddenText: boolean;
+ readonly keepImageMetadata: boolean;
constructor(dossierTemplate: IDossierTemplate) {
this.createdBy = dossierTemplate.createdBy;
@@ -32,6 +33,7 @@ export class DossierTemplate implements IDossierTemplate, IListable {
this.validTo = dossierTemplate.validTo;
this.dossierTemplateStatus = dossierTemplate.dossierTemplateStatus;
this.keepHiddenText = dossierTemplate.keepHiddenText;
+ this.keepImageMetadata = dossierTemplate.keepImageMetadata;
}
get isActive(): boolean {
diff --git a/libs/red-domain/src/lib/dossier-templates/dossier-template.ts b/libs/red-domain/src/lib/dossier-templates/dossier-template.ts
index 79ca93781..f74a1b312 100644
--- a/libs/red-domain/src/lib/dossier-templates/dossier-template.ts
+++ b/libs/red-domain/src/lib/dossier-templates/dossier-template.ts
@@ -52,4 +52,8 @@ export interface IDossierTemplate {
* Hidden text is invisible to human readers but can be detected and read by software and machines
*/
readonly keepHiddenText: boolean;
+ /**
+ * Images in documents might contain additional information as metadata
+ */
+ readonly keepImageMetadata: boolean;
}