Bugzilla – Attachment 172805 Details for
Bug 38138
Main contact method in hold pop-up untranslatable
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38138: (bug 33398 follow-up) Don't display code for primary contact method
Bug-38138-bug-33398-follow-up-Dont-display-code-fo.patch (text/plain), 3.25 KB, created by
Jonathan Druart
on 2024-10-16 08:30:52 UTC
(
hide
)
Description:
Bug 38138: (bug 33398 follow-up) Don't display code for primary contact method
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2024-10-16 08:30:52 UTC
Size:
3.25 KB
patch
obsolete
>From 42d57160de3ac1ec2a0e500bda95e627eae18bf2 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >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. >--- > .../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 6c132ef2b8b..403b4149940 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt >@@ -857,7 +857,22 @@ > [% UNLESS ( transfertodo) %] > [% INCLUDE display_bormessagepref %] > [% IF patron.primary_contact_method %] >- <li id="main_contact_method">Main contact method: <span>[% patron.primary_contact_method | html %]</span></li> >+ <li id="main_contact_method">Main contact method: >+ [% SWITCH patron.primary_contact_method %] >+ [% CASE 'phone' %] >+ <span>Primary phone</span> >+ [% CASE 'phonepro' %] >+ <span>Secondary phone</span> >+ [% CASE 'mobile' %] >+ <span>Other phone</span> >+ [% CASE 'email' %] >+ <span>Primary email</span> >+ [% CASE 'emailpro' %] >+ <span>Secondary email</span> >+ [% CASE 'fax' %] >+ <span>Fax</span> >+ [% END %] >+ </li> > [% END %] > [% END %] > >-- >2.34.1
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 38138
:
172805
|
172819
|
173508