From 475f73d7d9407aeb2fbbb55fe6f4eac67f009d00 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 --- .../opac-tmpl/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 ea2aa07..52f1f2a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -189,20 +189,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 %] -- 1.9.1