gu-gridh / queerlit-gui

Web frontend for Queerlit search
MIT License
0 stars 0 forks source link

Sometimes when selecting suggested term from Freetext input, actual search uses freetext, not term #146

Closed arildm closed 1 year ago

arildm commented 1 year ago

Steps to reproduce

  1. Go to queerlit.dh.gu.se
  2. Enter "les" in freetext input
  3. When suggestions appear, select the "Lesbiska" QLIT term
  4. The "Lesbiska" term is added to the term input
  5. Expected: Around 90 hits
  6. Actual: No hits – but only sometimes

When I check the network log, this is the request to Libris: https://libris.kb.se/find?q=les&%40reverse.itemOf.heldBy.%40id=https%3A%2F%2Flibris.kb.se%2Flibrary%2FQLIT&_sort=-meta.modified&_offset=0&_limit=20 i.e. like a freetext search. I suppose the search call is performed before the query object has been updated.