From 0e4e22c45c296c24a707e905a96d4c90c39a4b63 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 8 Sep 2023 09:48:40 +0100 Subject: [PATCH] Bug 34377: (follow-up) Use patron-title include This switched the existing manual handling of patron title construction to use the accepted include method. Signed-off-by: Lucas Gass Signed-off-by: Tomas Cohen Arazi --- .../en/modules/members/accountline-details.tt | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt index 6d35df4f27..ef20e355ab 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/accountline-details.tt @@ -154,14 +154,9 @@ [% IF accountline.manager_id %] - - [% IF accountline.manager.firstname %] - [% accountline.manager.firstname | html %] [% accountline.manager.surname | html %] - [% ELSE %] - [% accountline.manager.surname | html %] - [% END %] - + [% INCLUDE 'patron-title.inc' patron => accountline.manager, hide_patron_infos_if_needed => 1, no_cardnumber => 1 %] [% END %] + @@ -222,13 +217,7 @@ [% IF offset_accountline.manager_id %] - - [% IF offset_accountline.manager.firstname %] - [% offset_accountline.manager.firstname | html %] [% offest_accountline.manager.surname | html %] - [% ELSE %] - [% offset_accountline.manager.surname | html %] - [% END %] - + [% INCLUDE 'patron-title.inc' patron => offset_accountline.manager, hide_patron_infos_if_needed => 1, no_cardnumber => 1 %] [% END %] [%- ELSE -%] -- 2.39.5