From 6b0887f76e2f561187f6eae78f932987520a9cb6 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 10 Jun 2020 13:57:42 +0100 Subject: [PATCH] Bug 22807: Ensure only one maincontent on searcresults Prior to this patch, if you entered a search that returned zero results, you would end up with two 'maincontent' classes on the page Signed-off-by: Hayley Mapley Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- .../opac-tmpl/bootstrap/en/modules/opac-results.tt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index b0fc79008d..72819a0c3e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -95,7 +95,19 @@ [% END %] - [% IF ( opacfacets && total ) %]
[% ELSE %]
[% END %] + [% IF ( total ) %] + [% IF ( opacfacets ) %] +
+ [% ELSE %] +
+ [% END %] + [% ELSE %] + [% IF ( opacfacets ) %] +
+ [% ELSE %] +
+ [% END %] + [% END %] [% IF ( searchdesc ) %] [% IF ( total ) %] -- 2.39.5