sul-dlss / sul-embed

An oEmbed Service for Stanford University Libraries
Other
19 stars 6 forks source link

Multi-object PDFs - show first PDF as selected #2182

Closed peetucket closed 3 months ago

peetucket commented 3 months ago

For an object with multiple PDF files, the PDF viewer now correctly highlights which PDF is being shown like this:

However, when you first open the PURL, it isn't highlighting the first PDF (it does work if you click a different one and then come back to the first though). I think it should auto highlight the first one when loading.

First load:

Screenshot 2024-06-26 at 9 58 09 AM

Click second PDF:

Screenshot 2024-06-26 at 9 58 14 AM

Click first PDF (how it should look on first load):

Screenshot 2024-06-26 at 9 59 07 AM