From 6095d3cb830698f096a1939b9efc895d3a5c0182 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 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 Signed-off-by: Jared Camins-Esakov Tested with opacuserlogin set to both "Allow" and "Don't allow." With opacuserlogin set to "Allow," the links showed up, and with opacuserlogin set to "Don't allow," the links did not. Signed-off-by: Paul Poulain Signed-off-by: Jared Camins-Esakov --- koha-tmpl/opac-tmpl/prog/en/includes/masthead.inc | 2 +- koha-tmpl/opac-tmpl/prog/en/modules/opac-basket.tt | 2 +- koha-tmpl/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 eb36f6fd54..30c9cd2a7d 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 a229521ccf..fff80cd069 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 ( verbose ) %]Brief Display[% ELSE %]More Details[% END %]
  • -
  • Send
  • + [% IF ( opacuserlogin ) %]
  • Send
  • [% END %]
  • Download
  • Print
  • Empty and Close
  • diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt index 391037f6dd..aca2c1462a 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-shelves.tt @@ -205,7 +205,7 @@ $(function() { Download List -Send List +[% IF ( opacuserlogin ) %]Send List[% END %] Print List @@ -352,7 +352,7 @@ $(function() {
[% 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 %] @@ -410,11 +410,13 @@ $(function() { [% UNLESS ( shelves ) %]

Lists