This is a preliminary commit to add conditional logic for either
rendering PDF.js or IIIF viewer for split pages.
There is a particular case where QA might appear to fail:
Set the Tenant to use UV
Create a work with a PDF (this will split the page)
Go to the work's page, you'll see the UV
Set the Tenant to use PDF.js
Refresh the work page, and you should see PDF.js but instead will see
the UV.
To work around this (and realistically how most people will experience this):
Set the Tenant to use UV
Create a work with a PDF
Go to the Dashboard
Click the work's URL
You should see a UV for the PDF
Close the work's page
Change the tenant to use PDF.js
Go to the Dashboard
Click the work's URL
The conjecture is that there's some iframe and/or turbolinks caching.
Given that this is an edge case regarding toggling on and off a tenant
feature, we think the work around is adequate.
This is a preliminary commit to add conditional logic for either rendering PDF.js or IIIF viewer for split pages.
There is a particular case where QA might appear to fail:
To work around this (and realistically how most people will experience this):
The conjecture is that there's some iframe and/or turbolinks caching. Given that this is an edge case regarding toggling on and off a tenant feature, we think the work around is adequate.
Related to:
Co-authored-by: Shana Moore shana@scientist.com Co-authored-by: Kirk Wang kirk.wang@scientist.com