Bugzilla – Attachment 183606 Details for
Bug 40251
Icon for self-check user permission
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 40251: Add icons to patron details for selfcheck users
Bug-40251-Add-icons-to-patron-details-for-selfchec.patch (text/plain), 1.96 KB, created by
Andrew Fuerste-Henry
on 2025-06-27 14:08:53 UTC
(
hide
)
Description:
Bug 40251: Add icons to patron details for selfcheck users
Filename:
MIME Type:
Creator:
Andrew Fuerste-Henry
Created:
2025-06-27 14:08:53 UTC
Size:
1.96 KB
patch
obsolete
>From 19fa0902a1a105bf54dcb62df22be94aed535c51 Mon Sep 17 00:00:00 2001 >From: Andrew Fuerste Henry <andrew@bywatersolutions.com> >Date: Fri, 27 Jun 2025 14:03:20 +0000 >Subject: [PATCH] Bug 40251: Add icons to patron details for selfcheck users > >To test: >1: have patrons with self_check, self_checkin_module, and self_checkout_module permissions >2: observe that these patrons don't get icons by their names in the patroninfo sidebar >3: apply patch, restart_all >4: reload your patrons, see they now have icons for self checkout and/or self check-in >--- > koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >index 9eb64327123..edb3b8bbfbc 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >@@ -3,6 +3,8 @@ > [% PROCESS 'member-display-address-style.inc' %] > [% IF ( patron.borrowernumber ) %] > [% SET patron_is_staff = patron.has_permission({ 'catalogue' => 1 }) %] >+ [% SET patron_is_sco = patron.has_permission({ 'self_check' => 'self_checkout_module'}) %] >+ [% SET patron_is_sci = patron.has_permission({ 'self_check' => 'self_checkin_module'}) %] > [% SET patron_is_superlibrarian = patron.is_superlibrarian %] > [% SET patron_type_class = 'is-not-staff' %] > [% IF ( patron_is_superlibrarian ) %] >@@ -22,6 +24,12 @@ > [% IF ( patron.protected ) %] > <i class="fa fa-lock fa-fw" title="Protected patron"></i> > [% END %] >+ [% IF ( patron_is_sco ) %] >+ <i class="fa-solid fa-upload fa-fw" title="Self checkout patron"></i> >+ [% END %] >+ [% IF ( patron_is_sci ) %] >+ <i class="fa-solid fa-download fa-fw" title="Self check-in patron"></i> >+ [% END %] > [% INCLUDE 'patron-title.inc' %] > </h5> > >-- >2.39.5
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 40251
: 183606