universalviewer icon indicating copy to clipboard operation
universalviewer copied to clipboard

Cannot navigate search results after clicking Next Result multiple times

Open adrian-libnova opened this issue 3 years ago β€’ 1 comments

UV version:

 [email protected]

I'm submitting a:

  • [x] bug report
  • [ ] feature request => please use the user stories repo
  • [ ] support request => Please do not submit support requests here, use stackoverflow

Current behavior: After searching for a word, the "Next Result" button doesn't work after multiple clicks

Expected behavior: User is able to navigate through the search results using the Next/Previous Result buttons

Steps to reproduce:

  1. Go to https://universalviewer.io/examples/#?c=&m=&s=&cv=&manifest=http%3A%2F%2Fwellcomelibrary.org%2Fiiif%2Fb18035723%2Fmanifest&xywh=1367%2C2636%2C817%2C614
  2. Search for something with multiple results (best with "mΓΌnchen", as the issue appears after less clicks. "wird" will also work, but after a lot more clicks)
  3. Click the Next Result button a few times. The button will become unresponisve and the console will output the following:
Uncaught TypeError: Cannot read property 'externalResource' of undefined
    at uv.js:12
    at Array.forEach (<anonymous>)
    at t.e.getExternalResources (uv.js:12)
    at t.openMedia (uv.js:18)
    at uv.js:17
    at Function.e.waitFor (uv.js:8)
    at t.e.whenResized (uv.js:10)
    at e.<anonymous> (uv.js:17)
    at uv.js:20
    at Array.forEach (<anonymous>)

Related code:

// none

Other information:

adrian-libnova avatar May 04 '21 18:05 adrian-libnova

This appears to be fixed in v4: https://uv-v4.netlify.app/#?c=&m=&cv=32&manifest=https%3A%2F%2Fwellcomelibrary.org%2Fiiif%2Fb18035723%2Fmanifest

edsilv avatar May 19 '21 08:05 edsilv

All issues will be triaged for further investigation or closure by the 28 September 2023. If your issue is still relevant and would like for it be investigated further please comment by 14 September 2023.

LlGC-szw avatar Aug 25 '23 11:08 LlGC-szw