Bug 41363

Summary: Don't hide patron category limitation warning behind icon
Product: Koha Reporter: Owen Leonard <oleonard>
Component: PatronsAssignee: Owen Leonard <oleonard>
Status: Pushed to stable --- QA Contact: Laura Escamilla <Laura.escamilla>
Severity: minor    
Priority: P5 - low CC: david, gmcharlt, kyle, Laura.escamilla
Version: Main   
Hardware: All   
OS: All   
GIT URL: Initiative type: ---
Sponsorship status: --- Comma delimited list of Sponsors:
Crowdfunding goal: 0 Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
This moves the hint text for the warning on the Library management > Category field (when editing a patron record) from a tool tip on the warning icon to standard hint text under the input field, to make it more accessible Note: This warning only appears under certain circumstances (when a patron category is limited to a specific library, and you edit a patron when the library is set to another location).
Version(s) released in:
26.05.00,25.11.01
Circulation function:
Bug Depends on: 31422    
Bug Blocks:    
Attachments: Screenshot showing the tooltip
Bug 41363: Don't hide patron category limitation warning behind icon
Bug 41363: Don't hide patron category limitation warning behind icon
Bug 41363: (follow-up) Add full stop at the end of the hint text
Bug 41363: (follow-up) Add full stop at the end of the hint text

Description Owen Leonard 2025-12-03 13:45:53 UTC
Created attachment 190115 [details]
Screenshot showing the tooltip

A small warning icon appears in the patron edit form under these circumstances:

1. In Administration -> Patron categories, limit
   a patron category to a single library.
2. Switch to that library and locate a patron in
   that category. Copy the card number.
3. Switch to different library and search for the
   patron by card number.
4. Edit the patron.
5. Scroll down to the "Library management" section.
   You should see a warning icon next to the
   category. Hovering your mouse over the icon
   should trigger a tooltip with some text. See
   attached screenshot.

We should use a standard "hint" to display this information so that the user doesn't have to interact with a small target to trigger a tooltip.
Comment 1 Owen Leonard 2025-12-03 14:09:55 UTC
Created attachment 190117 [details] [review]
Bug 41363: Don't hide patron category limitation warning behind icon

This patch takes the warning text hidden behind an icon and puts
it into a "hint" <div> in order to make the information more accessible.

To test, apply the patch and go to Administration -> Patron categories.

- Edit a patron category to lmit it to a single library.
- Switch to that library and locate a patron in that category. Copy the
  card number.
- Switch to different library and search for the patron by card number.
- Edit the patron.
- Scroll down to the "Library management" section. Under the category
  dropdown you should see a "hint" style div with the library limitation
  warning.

Sponsored-by: Athens County Public Libraries
Comment 2 David Nind 2025-12-07 19:09:33 UTC
Created attachment 190278 [details] [review]
Bug 41363: Don't hide patron category limitation warning behind icon

This patch takes the warning text hidden behind an icon and puts
it into a "hint" <div> in order to make the information more accessible.

To test, apply the patch and go to Administration -> Patron categories.

- Edit a patron category to lmit it to a single library.
- Switch to that library and locate a patron in that category. Copy the
  card number.
- Switch to different library and search for the patron by card number.
- Edit the patron.
- Scroll down to the "Library management" section. Under the category
  dropdown you should see a "hint" style div with the library limitation
  warning.

Sponsored-by: Athens County Public Libraries
Signed-off-by: David Nind <david@davidnind.com>
Comment 3 David Nind 2025-12-07 19:09:37 UTC
Created attachment 190279 [details] [review]
Bug 41363: (follow-up) Add full stop at the end of the hint text

Signed-off-by: David Nind <david@davidnind.com>
Comment 4 David Nind 2025-12-07 19:16:45 UTC
Please obsolete my follow-up if I'm not correct - most other hint text has a full stop at the end of the sentence.
Comment 5 Laura Escamilla 2025-12-22 16:24:00 UTC
Created attachment 190681 [details] [review]
Bug 41363: (follow-up) Add full stop at the end of the hint text

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Comment 6 Lucas Gass (lukeg) 2025-12-29 17:00:28 UTC
Nice work everyone!

Pushed to main for 26.05
Comment 7 Jacob O'Mara 2026-01-16 16:18:17 UTC
Thanks all, pushed to 25.11.x