https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=41608

--- Comment #67 from Arthur Suzuki <[email protected]> ---
Created attachment 207353
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=207353&action=edit
Bug 41608: (QA followup) Fix OPAC results JS error and lost facet limits

Two issues introduced by the previous patches:

1. opac-results.tt declared "const query_cgi" while opac-bottom.inc
   already declares "var query_cgi". The redeclaration raises a
   SyntaxError that kills the whole inline script (opacbookbag,
   OverDriveEnabled, etc. end up undefined). The constant is not used,
   remove it.

2. When a checked facet limit filters the result set so that another
   checked facet no longer appears on the page (e.g. au:Austen, Jane
   together with holdingbranch:CPL), the facets JS rebuilt the limit
   list from the facets displayed on the current page only, silently
   dropping the limit of the hidden facet on the next "Refine search".
   Keep the existing limits whose facet is not displayed on the current
   page so that they are not lost when the search is refined again.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to