https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42386 --- Comment #98 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Created attachment 209853 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209853&action=edit Bug 42386: Update templates to use snake_case status codes This patch updates the templates that display hold failure reasons to the snake_case status codes, so the specific reason is shown instead of a generic message: - reserve/request.tt (SWITCH/CASE blocks, IF conditions, JS map) - opac-reserve.tt (per-item and per-record reasons) - opac-user.tt (failed holds) Test plan: 1. Apply patch 2. Place holds that fail for different reasons (age restriction, too many holds, item already on hold, already checked out, hold group restriction) from the OPAC and from the staff interface => SUCCESS: The specific reason is shown 3. Sign off :-D Co-authored-by: Martin Renvoize <martin.renvoize@openfifth.co.uk> Assisted-by: Opus 5.5 (Anthropic) -- You are receiving this mail because: You are watching all bug changes.