RED-6397 - Options for hidden text and image metadata in dossier template settings
This commit is contained in:
parent
3e5d8d2292
commit
45bc7fc2ff
@ -68,7 +68,7 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<p class="download-includes">{{ 'download-includes' | translate }}</p>
|
||||
<p class="heading download-includes">{{ 'download-includes' | translate }}</p>
|
||||
<div class="flex">
|
||||
<redaction-select
|
||||
[label]="
|
||||
@ -82,6 +82,22 @@
|
||||
formControlName="downloadFileTypes"
|
||||
></redaction-select>
|
||||
</div>
|
||||
|
||||
<p class="heading download-includes">{{ 'documents-hidden-text-option.heading' | translate }}</p>
|
||||
<div class="hidden-elements">
|
||||
<div class="iqser-input-group">
|
||||
<mat-checkbox color="primary" formControlName="keepHiddenText">
|
||||
{{ 'add-edit-clone-dossier-template.form.hidden-text.title' | translate }}
|
||||
</mat-checkbox>
|
||||
<div class="info mt-4">{{ 'add-edit-clone-dossier-template.form.hidden-text.description' | translate }}</div>
|
||||
</div>
|
||||
<div class="iqser-input-group">
|
||||
<mat-checkbox color="primary" formControlName="keepImageMetadata">
|
||||
{{ 'add-edit-clone-dossier-template.form.image-metadata.title' | translate }}
|
||||
</mat-checkbox>
|
||||
<div class="info mt-4">{{ 'add-edit-clone-dossier-template.form.image-metadata.description' | translate }}</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="dialog-actions">
|
||||
|
||||
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -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],
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user