From c38cf38c973159af2d03c6956d7aede8aebb20d5 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 17 Mar 2014 09:34:03 -0400 Subject: [PATCH] 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 Signed-off-by: Katrin Fischer The non-Javascript fallback link now works correctly. Passes tests and QA script. Signed-off-by: Galen Charlton --- koha-tmpl/opac-tmpl/bootstrap/en/modules/svc/suggestion.tt | 1 + 1 file changed, 1 insertion(+) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/svc/suggestion.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/svc/suggestion.tt index 632c9851b0..b294cd6b48 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/svc/suggestion.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/svc/suggestion.tt @@ -2,6 +2,7 @@ [% USE Koha %] [% INCLUDE 'doc-head-open.inc' %]Search suggestions [% INCLUDE 'doc-head-close.inc' %] + [% BLOCK cssinclude %][% END %] [% INCLUDE 'masthead.inc' %] -- 2.39.5