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

Fix pageorder #31

Merged
merged 6 commits into from
Oct 26, 2023
Merged

Fix pageorder #31

merged 6 commits into from
Oct 26, 2023

Conversation

hadro
Copy link
Collaborator

@hadro hadro commented Oct 11, 2023

This fixes #9, but should be merged in after #22

@hadro hadro temporarily deployed to development October 11, 2023 15:02 — with GitHub Actions Inactive
@glenrobson
Copy link
Collaborator

It looks like the tests are failing. Is this due to a fix required in #22 before you can get the /iiif/3/rbmsbk_ap2-v4_2001_V55N4/manifest.json manifest?

@glenrobson
Copy link
Collaborator

Although its working in the public version:

https://iiif.archive.org//iiif/3/rbmsbk_ap2-v4_2001_V55N4/manifest.json

@hadro
Copy link
Collaborator Author

hadro commented Oct 19, 2023

That's the wrong test, it's the next one that is throwing the error (test_page_behavior_r_to_l, not test_page_behavior), and that manifest currently throws an error on the live site:
https://iiif.archive.org/iiif/nybc314063/manifest.json

And yes, that is one of the bugs that will be fixed by #22, it's the issue described in #14

So once #22 is ready to go, this can go ahead assuming you think it's all fine


# Setting logic for paging behavior and starting canvases
# Start with paged (default) or individual behaviors
try:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe add comment saying that it won't be set if the book reader brOptions has something other than mode/1up

except:
manifest.behavior = "paged"

# Then set left-to-right or right-to-left if present
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add test to see if pageProgression key exists in brOptions or try catch Key not found error.

@hadro hadro merged commit 7b92a69 into main Oct 26, 2023
3 checks passed
@hadro hadro deleted the fix-pageorder branch October 26, 2023 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate paging direction, when known
3 participants