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 <hayleymapley@catalyst.net.nz>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 6b0887f76e)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
Martin Renvoize 2020-06-10 13:57:42 +01:00 committed by Lucas Gass
parent c8da2d3278
commit 38bdbb4d55
1 changed files with 13 additions and 1 deletions

View File

@ -95,7 +95,19 @@
</div>
[% END %]
[% IF ( opacfacets && total ) %]<div class="span10 maincontent">[% ELSE %]<div class="span12 maincontent">[% END %]
[% IF ( total ) %]
[% IF ( opacfacets ) %]
<div class="span10 maincontent">
[% ELSE %]
<div class="span12 maincontent">
[% END %]
[% ELSE %]
[% IF ( opacfacets ) %]
<div class="span10">
[% ELSE %]
<div class="span12">
[% END %]
[% END %]
[% IF ( searchdesc ) %]
[% IF ( total ) %]