From 3b515b60e71ef8548970f2ab1cd95c10196d2925 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 1 Mar 2012 15:06:25 -0500 Subject: [PATCH] Bug 7636 - error when trying to email cart when opacuserlogin set to don't allow Content-Type: text/plain; charset="utf-8" This patch hides the "send cart" link if the opacuserlogin preference is set to disallow. Other similar changes included: - hide the "send list" link - hide the "your lists" tab - hide the "log in to create your own lists" link - hide the "recent comments" link --- koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt | 2 +- .../opac-tmpl/prog/en/modules/opac-shelves.tt | 10 ++++++---- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc index eb36f6f..30c9cd2 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc @@ -112,7 +112,7 @@ Advanced Search [% IF ( OpacBrowser ) %] | Browse by Hierarchy[% END %] [% IF ( OpacAuthorities ) %] | Browse by author or subject[% END %] -[% IF ( OpacShowRecentComments ) %] | Recent Comments[% END %] +[% IF ( opacuserlogin && reviewson && OpacShowRecentComments ) %] | Recent Comments[% END %] [% IF ( TagsEnabled ) %] | Tag Cloud[% END %] [% IF ( OpacCloud ) %] | Subject Cloud[% END %] [% IF ( OpacTopissue ) %] | Most Popular[% END %] diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt index a229521..fff80cd 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt @@ -124,7 +124,7 @@ function tagAdded() {
[% IF ( pagination_bar ) %]
[% pagination_bar %]
[% END %] [% ELSE %] -
This List is empty. You can add to your lists from the results of any search!
+
This List is empty. [% IF ( opacuserlogin ) %]You can add to your lists from the results of any search![% END %]
[% END %] [% END %] @@ -409,11 +409,13 @@ $(function() { [% UNLESS ( shelves ) %]

Lists