From bd15d5d5e990c162713afcf8ff1fd09a25326429 Mon Sep 17 00:00:00 2001 From: Owen Leonard 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 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 Signed-off-by: Roman Dolny --- .../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 796a55a876..1bc2b58b50 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 @@ [% 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 ) %][email][% END %] - [% IF ( overdueloo.phone ) %]([% overdueloo.phone | html %])[% ELSIF ( overdueloo.mobile ) %]([% overdueloo.mobile | html %])[% ELSIF ( overdueloo.phonepro ) %]([% overdueloo.phonepro | html %])[% END %] + [% IF ( overdueloo.email ) %] + [email] + [% END %] + + [% IF ( overdueloo.phone ) %] + ([% overdueloo.phone | html %]) + [% ELSIF ( overdueloo.mobile ) %] + ([% overdueloo.mobile | html %]) + [% ELSIF ( overdueloo.phonepro ) %] + ([% overdueloo.phonepro | html %]) + [% END %] + [% END %] [% Categories.GetName( overdueloo.patron.categorycode ) | html %] -- 2.39.5