Bug 37970

Summary: Show the description of borrowers.primary_contact_method instead of code
Product: Koha Reporter: Noémie Labine <noemie.labine>
Component: NoticesAssignee: Bugs List <koha-bugs>
Status: CLOSED WONTFIX QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low    
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Crowdfunding committed: 0
Crowdfunding contact: Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Noémie Labine 2024-09-19 20:57:39 UTC
If I have <<borrowers.primary_contact_method>> in my HOLD_SLIP, the primary contact method in my patron's record will be shown by its code instead of the description, wich is a problem for a non-english Koha. 

Right now, for exemple, the slip will say "Phone" instead of "Téléphone principal" even tho the rest of the slip is in french.

Thanks
Comment 1 Katrin Fischer 2024-11-01 08:25:11 UTC
You will need to code the translation from code to description in your notice. There are examples for other values on how to to this using SWITCH/CASE  on the wiki: https://wiki.koha-community.org/wiki/Notices_and_Slips_Library