Bugzilla – Attachment 182544 Details for
Bug 39923
Add classes to email and phone in overdue report to allow for customization
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39923: Add classes to email and phone in overdue report to allow for customization
Bug-39923-Add-classes-to-email-and-phone-in-overdu.patch (text/plain), 3.28 KB, created by
Owen Leonard
on 2025-05-16 15:47:42 UTC
(
hide
)
Description:
Bug 39923: Add classes to email and phone in overdue report to allow for customization
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2025-05-16 15:47:42 UTC
Size:
3.28 KB
patch
obsolete
>From a98b60d3049ca823f8ab43b3615237667d148163 Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 16 May 2025 15:35:38 +0000 >Subject: [PATCH] Bug 39923: Add classes to email and phone in overdue report > to allow for customization > >This patch adds <span>s with classes around the patron's email and phone >information in the results of the overdues report. This will allow for >greater flexibility in styling or hiding the information. > >To test, apply the patch and go to Administration -> Sytem preferences >-> IntranetUserCSS. > >- Add this to the preference: > .overdue_email { color: red; } > .overdue_phone { color: blue; } >- Go to Circulation -> Overdues and confirm that you can see the custom > colors in the results. > >Sponsored-by: Athens County Public Libraries >--- > .../intranet-tmpl/prog/en/modules/circ/overdue.tt | 14 ++++++++++++-- > 1 file changed, 12 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt >index 796a55a8760..1bc2b58b50d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt >@@ -122,8 +122,18 @@ > <td> > [% INCLUDE 'patron-title.inc' patron=overdueloo.patron hide_patron_infos_if_needed=1 %] > [% IF logged_in_user.can_see_patron_infos( overdueloo.patron ) %] >- [% IF ( overdueloo.email ) %][<a href="mailto:[% overdueloo.email | uri %]?subject=[% INCLUDE subject %] [% overdueloo.title | uri %]">email</a>][% END %] >- [% IF ( overdueloo.phone ) %]([% overdueloo.phone | html %])[% ELSIF ( overdueloo.mobile ) %]([% overdueloo.mobile | html %])[% ELSIF ( overdueloo.phonepro ) %]([% overdueloo.phonepro | html %])[% END %] >+ [% IF ( overdueloo.email ) %] >+ <span class="overdue_email"> [<a href="mailto:[% overdueloo.email | uri %]?subject=[% INCLUDE subject %] [% overdueloo.title | uri %]">email</a>] </span> >+ [% END %] >+ <span class="overdue_phone"> >+ [% IF ( overdueloo.phone ) %] >+ ([% overdueloo.phone | html %]) >+ [% ELSIF ( overdueloo.mobile ) %] >+ ([% overdueloo.mobile | html %]) >+ [% ELSIF ( overdueloo.phonepro ) %] >+ ([% overdueloo.phonepro | html %]) >+ [% END %] >+ </span> > [% END %] > </td> > <td>[% Categories.GetName( overdueloo.patron.categorycode ) | html %]</td> >-- >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 39923
:
182544
|
182560