From dab160d599ccc127d2b4bd7e50a93a2639abc9a2 Mon Sep 17 00:00:00 2001 From: Henry Bolshaw Date: Sat, 10 Oct 2020 00:24:36 +0000 Subject: [PATCH] Bug 26655: Add ARIA Labels to OPAC Lists This patch adds ARIA labels to opac-shelves.tt so that checkboxes for list items are meaningful to users of screenreaders and other assistive technology. Test Plan: 1/ Open an OPAC list 2/ Inspect the checkbox for a list item 3/ Confirm the aria-label is missing 4/ Apply the patch 5/ Refresh the Opac list page 6/ Inspect the checkbox for a list item 7/ Note that there is now an aria-label with a meaningful description 8/Sign off Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt index e28a9a26a4..bf42a7072f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-shelves.tt @@ -353,7 +353,12 @@ [% FOREACH itemsloo IN itemsloop %] - + [% IF ( itemsloo.title ) %] + [% check_title = itemsloo.title %] + [% ELSE %] + [% check_title = itemsloo.biblionumber %] + [% END %] + [% UNLESS ( item_level_itypes ) %] [% UNLESS ( Koha.Preference('OpacNoItemTypeImages') ) %] -- 2.39.5