Bugzilla – Attachment 169330 Details for
Bug 37144
Add a subpermission for hiding patron contact information
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 37144: Added variable and permission to moremember.tt
Bug-37144-Added-variable-and-permission-to-moremem.patch (text/plain), 4.99 KB, created by
Laura Escamilla
on 2024-07-22 17:13:37 UTC
(
hide
)
Description:
Bug 37144: Added variable and permission to moremember.tt
Filename:
MIME Type:
Creator:
Laura Escamilla
Created:
2024-07-22 17:13:37 UTC
Size:
4.99 KB
patch
obsolete
>From 4b83956596a97d923bf6b29eafdfae999fcab44f Mon Sep 17 00:00:00 2001 >From: Laura_Escamilla <laura.escamilla@bywatersolutions.com> >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 ) %]<div>“[% patron.othernames | html %]”</div>[% END %] > >+ [% IF CAN_user_borrowers_view_contact_information %] > <div class="address"> > <ul> > [% PROCESS 'display-address-style' %] > </ul> > </div> >+ [% END %] >+ >+ [% IF CAN_user_borrowers_view_contact_information %] > > <div class="rows"> > <ol> >@@ -272,6 +276,7 @@ > [% END %] > </ol> > </div> [% # /div.rows %] >+ [% END %] > </div> [% # /div#patron-information %] > > [% IF Koha.Preference('HouseboundModule') %] >@@ -571,13 +576,20 @@ > <a class="btn btn-default btn-xs" href="memberentry.pl?op=edit_form&borrowernumber=[% patron.borrowernumber | html %]&step=6"><i class="fa-solid fa-pencil" aria-hidden="true"></i> Edit</a> > [% END %] > </div> >+ >+ [% IF CAN_user_borrowers_view_contact_information %] >+ > <div class="address"> > <ul> > [% PROCESS 'display-alt-address-style' %] > </ul> > </div> >+ >+ [% END %] >+ > <div class="rows"> > <ol> >+ [% IF CAN_user_borrowers_view_contact_information %] > [% IF ( patron.B_phone ) %] > <li id="patron-bphone"> > <span class="label">Phone: </span> >@@ -598,6 +610,7 @@ > [% patron.contactnote |html %] > </li> > [% END %] >+ [% END %] > </ol> > </div> > [% ELSE %] >@@ -620,6 +633,7 @@ > </div> > <div class="rows"> > <ol> >+ [% IF CAN_user_borrowers_view_contact_information %] > [% IF ( patron.altcontactsurname ) %] > <li id="patron-altcontactsurname"> > <span class="label">Surname: </span> >@@ -675,6 +689,7 @@ > <a href="tel:[% patron.altcontactphone | url %]">[% patron.altcontactphone | html %]</a> > </li> > [% END %] >+ [% END %] > </ol> > </div> [% # /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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 37144
:
168282
|
168283
|
168284
|
168387
|
168388
|
168389
|
168390
|
168391
|
168392
|
168393
|
168394
|
168460
|
168463
|
169320
|
169321
|
169322
|
169323
|
169324
|
169325
|
169326
|
169327
|
169328
|
169329
| 169330 |
169331
|
169332
|
169333
|
169334