]> 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)
committerGalen Charlton <gmc@esilibrary.com>
Wed, 9 Apr 2014 22:50:53 +0000 (22:50 +0000)
commitc38cf38c973159af2d03c6956d7aede8aebb20d5
treeeb9ce478307af6046806585be955f106c08d68e8
parent3334f03d779dc41bac3fe6e25a0d08733fc030ca
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>
koha-tmpl/opac-tmpl/bootstrap/en/modules/svc/suggestion.tt