simonw / sfms-history

The sfms-history project
https://sfms-history.vercel.app
6 stars 1 forks source link

Pages with no OCRd text return an error #20

Closed simonw closed 2 years ago

simonw commented 2 years ago

Bug exhibits itself here: https://sfms-history.vercel.app/folders/INTAKE/Bancroft+Library+-+May+2%2C+2022

image

Clicking the first or third page goes to one of these links, which currently return an error:

Originally I thought this was OK, but now I realize that there might be visually interesting content on a page - a diagram for example - which means it's worth having a working URL for that page even though there's no indexed OCR text for it.

simonw commented 2 years ago

For this example document, once you navigate to the document itself you only get thumbnails for pages that were successfully OCRd:

https://sfms-history.vercel.app/docs/8e0175dd

image
simonw commented 2 years ago

Fixed: https://sfms-history.vercel.app/docs/8e0175dd/1 now looks like this:

image