From af539c19e0e40335b1441398086661df8c9c57d4 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. --- .../en/modules/members/accountline-details.tt | 16 ++-------------- 1 file changed, 2 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..dadc9c9eb6 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,13 +154,7 @@ [% 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 +216,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.41.0