Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUGFIX] Fix displaying pages for images in grid view #1140

Closed
wants to merge 1 commit into from

Conversation

beatrycze-volk
Copy link
Collaborator

Previously instead of page numbers were displayed ' - '.
page

@beatrycze-volk beatrycze-volk changed the title Fix displaying pages for images in grid view [BUGFIX] Fix displaying pages for images in grid view Jan 18, 2024
@sebastian-meyer
Copy link
Member

sebastian-meyer commented Jan 26, 2024

I think that's not a bug, but a feature. There is a difference between page and pagination:

page is the image number, always an unique integer starting with 1 and continuously counted. In METS it's the value of the @ORDER attribute.

pagination is the page number as it is printed on the book. This can be any integer, string or even missing. It also isn't necessarily unique. In METS it's the value of the @ORDERLABEL attribute.

So my guess is, that the grid view is supposed to show the page numbers and displays "-" for pages which don't have one. Your change will now show the image number instead (which is fine for me, but I am not sure if this is intended).

@sebastian-meyer sebastian-meyer added the 🐛 bug A non-security related bug. label Jan 26, 2024
Copy link
Member

@sebastian-meyer sebastian-meyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From a technical point of view this is fine! But please verify that this change really is intentional (see above).

@csidirop
Copy link
Contributor

Can we both selectable in the backend? I think there is a lot of scope here for how you would like something like this to be displayed.

@beatrycze-volk
Copy link
Collaborator Author

I think that's not a bug, but a feature. There is a difference between page and pagination:

page is the image number, always an unique integer starting with 1 and continuously counted. In METS it's the value of the @ORDER attribute.

pagination is the page number as it is printed on the book. This can be any integer, string or even missing. It also isn't necessarily unique. In METS it's the value of the @ORDERLABEL attribute.

Oh, then shouldn't be this somehow passed to the people which are working on those systems? I have got error report about not working pages (https://www.digas.sachsen.de/werkansicht?tx_dlf%5Bdouble%5D=0&tx_dlf%5Bid%5D=7391&tx_dlf%5Bpage%5D=1&tx_dlf%5Bpagegrid%5D=1&cHash=8c785d23d941f7d0ea8f7bb872f4ff26, https://www.digas.sachsen.de/digas/LfULG_EB02521-00053306/LfULG_EB02521-00053306_mets.xml). Indeed order labels are used:

<mets:div ID="PHYS_0001" ORDER="1" ORDERLABEL=" - " TYPE="page">
  <mets:fptr FILEID="FILE_0001_FULLTEXT"/>
   ..
  <mets:fptr FILEID="FILE_0001_ORIGINAL"/>
</mets:div>

So my guess is, that the grid view is supposed to show the page numbers and displays "-" for pages which don't have one. Your change will now show the image number instead (which is fine for me, but I am not sure if this is intended).

After your explanation I'm also not sure if it is intended.

@sebastian-meyer sebastian-meyer added ⁉ question A non-code issue or question. and removed 🐛 bug A non-security related bug. labels Jan 30, 2024
@beatrycze-volk beatrycze-volk marked this pull request as draft January 30, 2024 10:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
⁉ question A non-code issue or question.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants