Open BartChris opened 2 years ago
The paginated value is also not showing in the dialog. It is "6 : " but should be "6 : 6".
Maybe these are related
I tried to find the root cause of this critical bug which makes Kitodo not really usable in a production environment. Unfortunately i do not understand the logic here enough, but i am quite certain, that this here is wrong:
The second selectFirstPageSelectedItem
has to be selectLastPageSelectedItem
otherwise the assignments make no sense to me. This does however not fix the bug.
On a side note: the logic in
is also different from
the one in the StructurePanel
class
This really is a killer bug, tbh. Makes the metadata editor basically unusable at this moment. After adding several structure elements pagination was a total mess with randomly added "uncounted" pages.
Unfortunately I could not reproduce this problem with the current master version. Can you please give us more details on the steps you took to cause this behavior?
Hi Ikram, thanks for this. Here's how I did it:
(I 'zoomed' in on the pagination form and structure tree, so the video looks a bit cut off)
Version is 3.4.4-Snapshot. Pagination was done for a range of pages. Another "uncounted" page was added at the position of the last page of the previously paginated range, which is not visible in the video.
After investigating i found out that this is not a bug in Kitodo but a configuration problem inside the ruleset on our side. Sorry for the confusion.
As outlined in https://github.com/kitodo/kitodo-production/issues/4921 , we want to hide all metadata elements for pages because they tend to confuse the editors. So i ended up excluding the order label:
<setting key="ORDERLABEL" excluded="true" editable="false"/>
This leads to the described pagination bug. I do not yet understand how exactly the ruleset setting effeccts the processing logic and why the behaviour exists. It probably underlines the importance of documentation on how to configure the page element correctly. (See https://github.com/kitodo/kitodo-production/issues/4921)
I'm impressed by your investigation - I can confirm the success of this tiny change !
Excluded metadata is removed from the metadata internally and kept aside, when saving it is added back before saving. Maybe this doesn’t work correctly for domain="mets:div"
because they are “fake” metadata which isn’t in the metadata section, but in the METS <div>
element, which always need to be handled separately.
New issue description:
Describe the bug
When setting the
ORDERLABEL
-key to excluded in the ruleseta lot of pagination bugs occur in the metadata editor. See below. The only way to fix that is to not exclude the
ORDERLABEL
.Expected behavior It should be possible to exclude the
ORDERLABEL
and still have a working pagination. A possible cause of this error is described below:https://github.com/kitodo/kitodo-production/issues/5220#issuecomment-1208031116
Old description:
When a object is already paginated in the editor
and you want to add a new logical element to one or multiple pages
The pagination of one or multiple pages is reset to "uncounted" and has to be redone. Example with one page.
If you associate a logical element to multiple pages the pagination is distorted as well: