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

PDF.js not rendering when it should #880

Open
ShanaLMoore opened this issue Nov 8, 2024 · 1 comment
Open

PDF.js not rendering when it should #880

ShanaLMoore opened this issue Nov 8, 2024 · 1 comment
Assignees

Comments

@ShanaLMoore
Copy link
Contributor

ShanaLMoore commented Nov 8, 2024

Summary

example:
https://adl.b2.adventistdigitallibrary.org/concern/published_works/20218025_ellen_white_and_her_work

Image

Acceptance Criteria

  • [ ]

Screenshots or Video

Testing Instructions

To be filled out by dev

Notes

laritakr added a commit that referenced this issue Nov 13, 2024
# Story

Refs:
- #880 
- #881 

In the case of a split work, :pdf? needs to be included in the methods
checked on a presenter.
In the case of a work that isn't split, Valkyrie has changed the term we
use to check for a `.pdf` suffix. It appears that we do not fill in the
label term. If characterization fails and we fall back to looking for a
pdf, we needed to look in the right location.

# Expected Behavior Before Changes

When PDF.js is selected via flipper and a work has been split, it
sometimes just shows a thumbnail.
When PDF.js is selected via flipper and work is not split, it sometimes
just shows a thumbnail.

# Expected Behavior After Changes

In new (valkyrie) resources, resources converted from Fedora, and works
still in Fedora:

- When PDF.js is selected via flipper and a work has been split, it
shows the UV
- When PDF.js is selected via flipper and a work is not split, it shows
the PDF in PDF.js

# Screenshots / Video

<details>
<summary>Both of these originally showed thumbnails only</summary>

![Screenshot 2024-11-13 at 2 51
37 PM](https://github.com/user-attachments/assets/0dbc51c1-a365-4b1a-a79d-3ce33d9d718d)


![Screenshot 2024-11-13 at 2 47
01 PM](https://github.com/user-attachments/assets/43050ab0-1783-4136-bd53-321cff20efc9)

</details>

# Notes
@jillpe jillpe moved this to SoftServ QA in Adventist Knapsack Nov 14, 2024
@KatharineV
Copy link
Collaborator

I'm seeing some unsplit works (uploaded before the cutover) are failing to show the PDF in the PDF.js viewer, but the thumbnail is displaying in the UV. So weird!

Example 1: https://adl.b2.adventistdigitallibrary.org/concern/published_works/20122816_the_laws_of_life_november_0_1863

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: SoftServ QA
Development

No branches or pull requests

3 participants