From cad527e95ed4bfe980e02147bd078460a12cbb1b 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 --- .../bootstrap/en/modules/opac-results.tt | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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 17564fad73..8a0176bd30 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -83,7 +83,7 @@ [% END # / UNLESS searchdesc %] -
+
[% IF ( opacfacets && total ) %]
@@ -95,7 +95,19 @@
[% END %] - [% IF ( opacfacets && total ) %]
[% ELSE %]
[% END %] + [% IF ( total ) %] + [% IF ( opacfacets ) %] +
+ [% ELSE %] +
+ [% END %] + [% ELSE %] + [% IF ( opacfacets ) %] +
+ [% ELSE %] +
+ [% END %] + [% END %] [% IF ( searchdesc ) %]

-- 2.20.1