From 169be56d099883253f091ece2dd7e14793bd88cb Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 9 Oct 2014 09:40:26 -0400 Subject: [PATCH] Bug 13052 - OPAC Cart JavaScript is included twice in the footer Content-Type: text/plain; charset="utf-8" The external JavaScript file which powers the OPAC Cart should not be included twice. The correct instance is the one which comes after the definition of MSG strings. To test you must have the opacbookbag system preference turned on. In Bootstrap OPAC, test adding some items to the Cart and confirm that Cart operations work correctly. --- .../bootstrap/en/includes/opac-bottom.inc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc index 4128061..596341a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc +++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/opac-bottom.inc @@ -103,11 +103,6 @@ $.widget.bridge('uitooltip', $.ui.tooltip); [% END %] -[% IF Koha.Preference( 'opacbookbag' ) == 1 %] - + [% IF Koha.Preference( 'opacbookbag' ) == 1 %] [% ELSIF ( Koha.Preference( 'virtualshelves' ) == 1 ) %] @@ -160,6 +156,7 @@ $.widget.bridge('uitooltip', $.ui.tooltip); [% ELSE %] [% END %] + [% IF Koha.Preference( 'opacuserlogin' ) == 1 %][% IF Koha.Preference( 'TagsEnabled' ) == 1 %][% END %][% ELSE %][% END %] [% IF ( GoogleJackets ) %] -- 1.7.9.5