From d67da331641481d82b47cfa1aecc026d3fe5d3e7 Mon Sep 17 00:00:00 2001 From: Ikram Maalej Date: Mon, 31 Jan 2022 11:56:45 +0100 Subject: [PATCH] Make mandatory metadata required --- .../webapp/WEB-INF/templates/includes/metadataTreeTable.xhtml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Kitodo/src/main/webapp/WEB-INF/templates/includes/metadataTreeTable.xhtml b/Kitodo/src/main/webapp/WEB-INF/templates/includes/metadataTreeTable.xhtml index 4e0e4be84bc..5c59a7ca28d 100644 --- a/Kitodo/src/main/webapp/WEB-INF/templates/includes/metadataTreeTable.xhtml +++ b/Kitodo/src/main/webapp/WEB-INF/templates/includes/metadataTreeTable.xhtml @@ -97,6 +97,7 @@ readonly="#{not item.editable}" styleClass="#{not item.editable or readOnly ? 'read-only disabled' : ''}" disabled="#{not item.editable or readOnly}" + required="#{item.required and (not empty param['editForm:save'] or not empty param['editForm:saveContinue'])}" showCheckbox="true"> @@ -111,6 +112,7 @@ readonly="#{not item.editable}" autoWidth="false" disabled="#{not item.editable or readOnly}" + required="#{item.required and (not empty param['editForm:save'] or not empty param['editForm:saveContinue'])}" styleClass="#{readOnly ? 'read-only' : ''}">