From 594565cdafd4adc8fa7f7e501885f68547acdc1a 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 --- 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 cfcf977849..ef94cd1f79 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 bf44771357..1f20687757 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 @@ -350,7 +350,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 %] @@ -408,11 +408,13 @@ $(function() { [% UNLESS ( shelves ) %]

Lists