Bug 37970 - Show the description of borrowers.primary_contact_method instead of code
Summary: Show the description of borrowers.primary_contact_method instead of code
Status: CLOSED WONTFIX
Alias: None
Product: Koha
Classification: Unclassified
Component: Notices (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Bugs List
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-19 20:57 UTC by Noémie Labine
Modified: 2025-06-02 20:45 UTC (History)
0 users

See Also:
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:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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