From d92a65848fd0ee564c6f36a28422fbff80822184 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Mon, 24 Aug 2015 13:57:47 +0200 Subject: [PATCH] Bug 10858: Show checkbox if OpacBrowseResult is set Signed-off-by: Nicolas Legrand Signed-off-by: Josef Moravec --- .../bootstrap/en/modules/opac-results.tt | 20 +++++++------------ 1 file changed, 7 insertions(+), 13 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 4bc95ccdd6..3d906919f7 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -215,20 +215,14 @@ [% # Cell 1: Checkbox %] - [% IF Koha.Preference( 'opacbookbag' ) == 1 %] + [% IF + ( Koha.Preference('opacbookbag') == 1 ) + || ( Koha.Preference('virtualshelves') == 1 ) + || ( Koha.Preference('OpacBrowseResults') == 1 ) + || ( Koha.Preference('RequestOnOpac') == 1 && (not SEARCH_RESULT.norequests) && Koha.Preference('opacuserlogin') ) + %] - [% ELSE %] - [% IF Koha.Preference( 'virtualshelves' ) == 1 %] - - [% ELSE %] - [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %] - [% UNLESS ( SEARCH_RESULT.norequests ) %] - [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] - [% END %] - [% END %] - [% END # IF RequestOnOpac %] - [% END # IF virtualshelves %] - [% END # IF opacbookbag%] + [% END %] [% # Cell 2: Show result number if OpacHiddenItems is empty %] -- 2.20.1