Open matthias-ronge opened 7 months ago
The error is caused in class DivXmlElementAccess
, line 252: The expression .map(physicalDivisionIDs::get)
doesn’t work as expected and returns null
, even though the physical division is contained in the map Map<PhysicalDivision, String> physicalDivisionIDs
. Seems to be some sort of look-up problem …
The problem occurs because our ruleset uses <key id="LABEL" domain="mets:div">
, <setting key="LABEL" alwaysShowing="true"/>
. This causes the label field of the physical division to show in the metadata editor, when you click on a thumbnail. That sets the LABEL
attribute from null
to ""
, making it impossible to look up its permanent UUID on save, because the LABEL
is included in the comparison.
The behaviour can be fixed by preventing the LABEL
to be entered on the page
division in the ruleset, like:
<correlation>
<restriction division="page" unspecified="forbidden"/>
</correlation>
To Reproduce
Media count in the headline is still correct: 11 media.
In the
<mets:structLink>
section, the affected<mets:smLink>
entries miss thexlink:to
attribute:Expected behavior All
<mets:smLink>
entries must have anxlink:to
attribute. Images must not disappear from the metadata editor.Release: 3.6.0 Server: Ubuntu 20.04.6, Tomcat 9, OpenJDK 11.0.21 Desktop: Windows 10, Firefox 121.0.1