Bug 37758: Add descriptive labels for accessibility

Signed-off-by: Owen Leonard <oleonard@myacpl.org>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Laura_Escamilla 2024-08-28 19:45:48 +00:00 committed by Katrin Fischer
parent 88f65287ef
commit d5039cc657
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -191,6 +191,7 @@
<form name="searchform" method="get" action="/cgi-bin/koha/opac-search.pl" id="searchform">
<div class="row gx-2">
<div class="col-sm-auto order-2 order-sm-2">
<label for="masthead_search" class="visually-hidden">Search the catalog by:</label>
<select name="idx" id="masthead_search" class="form-select">
[% IF ( ms_kw ) %]
<option selected="selected" value="" data-placeholder="[% t("Search the catalog by keyword") | html %]">Library catalog</option>
@ -245,8 +246,10 @@
<div class="col order-4 order-sm-3">
[% IF ( !Koha.Preference( 'OpacAddMastheadLibraryPulldown' ) == 1 && mylibraryfirst ) %]
<label for="translControl1" class="visually-hidden">Search the catalog by keyword in [% Branches.GetName( mylibraryfirst ) | html %]</label>
<input type="text" class="transl1 form-control form-control-filtered" id="translControl1" name="q" value="[% ms_value | html %]" data-bs-toggle="tooltip" data-bs-placement="top" title="Searching in [% Branches.GetName( mylibraryfirst ) | html %] only" placeholder="Search the catalog by keyword" /><span id="translControl"></span>
[% ELSE %]
<label for="translControl1" class="visually-hidden">Search the catalog by keyword</label>
<input type="text" class="transl1 form-control" id="translControl1" name="q" value="[% ms_value | html %]" placeholder="Search the catalog by keyword" /><span id="translControl"></span>
[% END # /ms_value %]
</div> <!-- /.col -->