Bug 28141

Summary: Accessibility: OPAC Advanced Search fields aren't labelled
Product: Koha Reporter: Henry Bolshaw <bolshawh>
Component: AccessibilityAssignee: Henry Bolshaw <bolshawh>
Status: ASSIGNED --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: claire.hernandez, martin.renvoize, matt.blenkinsop, oleonard, wainuiwitikapark
Version: MainKeywords: accessibility
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:

Description Henry Bolshaw 2021-04-13 11:57:44 UTC
The OPAC advanced search page has unlabelled search fields making them inaccessible to users of screen readers. This is a complicated page to get right and I'm not entirely sure how best to fix this. Here are some of the issues with the page currently:

Example issue 1:
When using NVDA to access the search form fields out of context, it is hard to tell which index (keyword, author, title etc.) you are searching. This is an issue when searching multiple fields at once.

"Enter search terms; edit; has auto complete"

It would be better if the search form field was linked to the index combo box. We could use aria-labelledby but there may be better ways to do this.

Example Issue 2:
The label for "search-field_0" is blank.

Example Issue 3:
The search terms are linked by 'and' but this isn't entirely clear out of context using a screen reader:
"  ;combo box; collapsed; Subject"
"and;combo box; collapsed; Title"
"and;combo box; collapsed; Publisher Location"
"Location and availability:; combo box; collapsed; All Libraries"
"Sort by:; combo box; collapsed; Relevance"
"Language; combo box; collapsed; No Limit"

Example Issue 4:
The remove field buttons aren't programmatically linked to the field they are removing