Bug 41199 - Advanced Search fields could use more visible label options
Summary: Advanced Search fields could use more visible label options
Status: Needs Signoff
Alias: None
Product: Koha
Classification: Unclassified
Component: Accessibility (show other bugs)
Version: Main
Hardware: All All
: P5 - low enhancement
Assignee: Jake Deery
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-11-06 08:26 UTC by Jake Deery
Modified: 2025-11-13 15:58 UTC (History)
4 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 41199: Add optional labels to search fields (24.73 KB, patch)
2025-11-06 08:47 UTC, Jake Deery
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Jake Deery 2025-11-06 08:26:58 UTC
The advanced search & search masthead could both do with more visible labels. This aids users in navigating the system, and also helps to provide screen readers with more context about an input field.

We should offer a syspref that controls the number of visible labels, so libraries can have greater control over the extent of these labels.
Comment 1 Jake Deery 2025-11-06 08:47:33 UTC
Created attachment 189147 [details] [review]
Bug 41199: Add optional labels to search fields

This patch adds the OPACShowLabelsForSearchInputs, which, when enabled,
will add numerous additional labels to the OPAC's advanced search and
masthead search regions. When disabled, this syspref will exhibit the
same behaviour we see now.

== TO TEST ==
a)  visually look at the OPAC's mainpage, and advanced search page
    *)  notice the input fields lack visual labels
== APPLY PATCH ==
b)  repeat step a)
    *)  observe how nothing has visually changed
c)  set the OPACShowLabelsForSearchInputs syspref to Show
d)  repeat step a) again
    *)  notice how there are now visual labels associated with each of
    the input fields
e)  revert the OPACShowLabelsForSearchInputs syspref to Don't show
f)  repeat step a) again
    *)  notice how there are again no visual labels
== SIGN OFF ==