Skip to content

Commit 1f0d82a

Browse files
committed
Do not show metadata in UI layer for untyped divisions
1 parent 4f64566 commit 1f0d82a

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Kitodo/src/main/java/org/kitodo/production/forms/dataeditor/MetadataPanel.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ public ProcessFieldedMetadata getPhysicalMetadataTable() {
147147
}
148148

149149
void showLogical(Optional<LogicalDivision> optionalStructure) {
150-
if (optionalStructure.isPresent() && Objects.isNull(optionalStructure.get().getLink())) {
150+
if (optionalStructure.isPresent() && Objects.isNull(optionalStructure.get().getLink())
151+
&& Objects.nonNull(optionalStructure.get().getType())
152+
&& !optionalStructure.get().getType().isBlank()) {
151153
logicalMetadataTable = createProcessFieldedMetadata(optionalStructure.get());
152154
dataEditorForm.getAddMetadataDialog().prepareAddableMetadataForStructure(
153155
getLogicalMetadataRows().getChildren());

0 commit comments

Comments
 (0)