From 36b9a1bf1bc29b6e7c5e76c34f4bdd1dc5e8fecf 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 (cherry picked from commit 6b0887f76e2f561187f6eae78f932987520a9cb6) Signed-off-by: Lucas Gass (cherry picked from commit 38bdbb4d5528c68e2ca2d69dfc922a790f09a991) Signed-off-by: Aleisha Amohia --- .../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 af2588231a..b1ef173fd3 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