Skip to content

Commit

Permalink
Do not reset the ORDERLABEL if division is a page
Browse files Browse the repository at this point in the history
  • Loading branch information
BartChris committed Oct 1, 2024
1 parent c4ddc1b commit d155ee6
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
import org.kitodo.api.dataeditor.rulesetmanagement.SimpleMetadataViewInterface;
import org.kitodo.api.dataeditor.rulesetmanagement.StructuralElementViewInterface;
import org.kitodo.api.dataformat.Division;
import org.kitodo.api.dataformat.PhysicalDivision;
import org.kitodo.exceptions.InvalidMetadataValueException;
import org.kitodo.exceptions.NoSuchMetadataFieldException;
import org.kitodo.production.services.dataeditor.DataEditorService;
Expand Down Expand Up @@ -672,7 +673,9 @@ public void preserve() throws InvalidMetadataValueException, NoSuchMetadataField
try {
if (Objects.nonNull(division)) {
division.getContentIds().clear();
division.setOrderlabel(null);
if (!division.getType().equals(PhysicalDivision.TYPE_PAGE)) {
division.setOrderlabel(null);
}
division.setLabel(null);
}
metadata.clear();
Expand Down

0 comments on commit d155ee6

Please sign in to comment.