https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42386

--- Comment #98 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
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 <[email protected]>
Assisted-by: Opus 5.5 (Anthropic)

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to