]> git.koha-community.org Git - koha.git/commit
Bug 11951: fix OPAC search suggestions template error
authorOwen Leonard <oleonard@myacpl.org>
Mon, 17 Mar 2014 13:34:03 +0000 (09:34 -0400)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 6 Aug 2014 07:48:27 +0000 (09:48 +0200)
commit38caaaf836594fc1f1c12abf2439fdf73be2772c
tree0796f08676ebc806f505732bbe0dd4d851aa7274
parent4bcb5a0d885a308ef9e0992706c5db2db720df7a
Bug 11951: fix OPAC search suggestions template error

If you have search suggestions enabled in the OPAC and click the "Check
for suggestions" link before it is replaced with the JS-rendered output
you will get a template error. This patch corrects it.

To test you must have the bootstrap theme enabled and at least one
OPAC plugin enabled in Administration -> Did you mean?

- Perform a search in the OPAC.
- Look for a box which says "Not what you expected? Check for
  suggestions"
- Click the "Check for suggestions" link before it disappears. If
  necessary disable JavaScript in your browser so that the link doesn't
  disappear.
- The search suggestions page should render without errors.

Signed-off-by: A. Sassmannshausen <alex.sassmannshausen@ptfs-europe.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
The non-Javascript fallback link now works correctly.
Passes tests and QA script.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit c38cf38c973159af2d03c6956d7aede8aebb20d5)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/svc/suggestion.tt