From 49e09672b53b024882cc0c363d39b399ef1859d9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 16 Oct 2024 10:28:47 +0200 Subject: [PATCH] Bug 38138: (bug 33398 follow-up) Don't display code for primary contact method We have several choices for "primary_contact_method", we don't want to display the code but the label phone => Primary phone phonepro => Secondary phone mobile => Other phone email => Primary email emailpro => Secondary email fax => Fax Bonus: it will make it translatable. Test plan: 1. Edit a patron record to add a Main contact method 2. Place a hold for this patron 3. Check the item in --> Pop up says "Main contact method:" followed by the choice. Signed-off-by: Caroline Cyr La Rose Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- .../prog/en/modules/circ/returns.tt | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index b3812072cc..da0cb8b0db 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -856,7 +856,22 @@ [% UNLESS ( transfertodo) %] [% INCLUDE display_bormessagepref %] [% IF patron.primary_contact_method %] -
  • Main contact method: [% patron.primary_contact_method | html %]
  • +
  • Main contact method: + [% SWITCH patron.primary_contact_method %] + [% CASE 'phone' %] + Primary phone + [% CASE 'phonepro' %] + Secondary phone + [% CASE 'mobile' %] + Other phone + [% CASE 'email' %] + Primary email + [% CASE 'emailpro' %] + Secondary email + [% CASE 'fax' %] + Fax + [% END %] +
  • [% END %] [% END %] -- 2.39.5