scientist-softserv / atla-hyku

Other
0 stars 0 forks source link

PDF.js like PALS #162

Open ckarpinski opened 1 year ago

ckarpinski commented 1 year ago

Summary

PDF options in Atla Hyku should be exactly like PALs/Hykucommons:

  1. There is a feature flipper that lets you choose which viewer you want to use

Image

  1. on each work edit page there are 2 checkboxes, one for "show PDF.js viewer" and one for "show download PDF button" (by choose to use PDF.js and then unchecking that box you can use neither viewer and have a thumbnail and download button only)

Image

  1. The PDF in PDF.js is searchable (but not ocr'd)

Non PDF works still use the UV

Atla Hyku would like to Implement pdf.js viewer: https://mozilla.github.io/pdf.js/ and have the feature PALs recently implemented in which there is a feature flipper to switch from UV to PDF.js viewer and a check box on the work form, in which left unchecked, does not use either viewer and only have the download.

Helpful tickets:

Acceptance Criteria

Testing Instructions

jillpe commented 10 months ago

SoftServ QA: ✅ Pass!

jillpe commented 10 months ago

To Do:

Create a spin off ticket to stop pdf splitting

ShanaLMoore commented 10 months ago

Slack Convo: https://assaydepot.slack.com/archives/C031E2NF43T/p1701189832424439

jillpe commented 10 months ago

Acceptance Criteria confirmed by client 11/28/2023:

jeremyf commented 10 months ago

There is a particular case where QA might appear to fail:

  1. Set the Tenant to use UV
  2. Create a work with a PDF (this will split the page)
  3. Go to the work's page, you'll see the UV
  4. Set the Tenant to use PDF.js
  5. 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):

  1. Set the Tenant to use UV
  2. Create a work with a PDF
  3. Go to the Dashboard
  4. Click the work's URL
  5. You should see a UV for the PDF
  6. Close the work's page
  7. Change the tenant to use PDF.js
  8. Go to the Dashboard
  9. Click the work's URL