From 4b83956596a97d923bf6b29eafdfae999fcab44f Mon Sep 17 00:00:00 2001 From: Laura_Escamilla Date: Mon, 22 Jul 2024 17:00:17 +0000 Subject: [PATCH] Bug 37144: Added variable and permission to moremember.tt --- .../prog/en/modules/members/moremember.tt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt index 4debd1abda..dad1fcaf51 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt @@ -127,11 +127,15 @@ [% IF ( patron.othernames ) %]
“[% patron.othernames | html %]”
[% END %] + [% IF CAN_user_borrowers_view_contact_information %]
+ [% END %] + + [% IF CAN_user_borrowers_view_contact_information %]
    @@ -272,6 +276,7 @@ [% END %]
[% # /div.rows %] + [% END %] [% # /div#patron-information %] [% IF Koha.Preference('HouseboundModule') %] @@ -571,13 +576,20 @@ Edit [% END %] + + [% IF CAN_user_borrowers_view_contact_information %] +
+ + [% END %] +
    + [% IF CAN_user_borrowers_view_contact_information %] [% IF ( patron.B_phone ) %]
  1. Phone: @@ -598,6 +610,7 @@ [% patron.contactnote |html %]
  2. [% END %] + [% END %]
[% ELSE %] @@ -620,6 +633,7 @@
    + [% IF CAN_user_borrowers_view_contact_information %] [% IF ( patron.altcontactsurname ) %]
  1. Surname: @@ -675,6 +689,7 @@ [% patron.altcontactphone | html %]
  2. [% END %] + [% END %]
[% # /div.rows %] [% ELSE %] @@ -751,6 +766,7 @@ var branchcode = "[% Branches.GetLoggedInBranchcode() | html %]"; var exports_enabled = "[% Koha.Preference('ExportCircHistory') | html %]"; var AllowCirculate = [% (CAN_user_circulate_circulate_remaining_permissions)? 1 : 0 | html %]; + var ViewContactInformation = [% (CAN_user_borrowers_view_contact_information)? 1 : 0 | html %]; var AllowRenewalLimitOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalLimitOverride') )? 1: 0 | html %]; var AllowRenewalOnHoldOverride = [% (CAN_user_circulate_override_renewals && Koha.Preference('AllowRenewalOnHoldOverride') )? 1: 0 | html %]; var script = "moremember"; -- 2.39.2