From 0751f7b24769652a8fefa83a08d62451ffd7b958 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 --- 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 16e2359156..f91d77d845 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.11.0