From ef8b901431d6082ea51ffdc32869b00de6a2c41f Mon Sep 17 00:00:00 2001 From: Alexander Blanchard Date: Wed, 2 Apr 2025 14:31:05 +0000 Subject: [PATCH] Bug 39492: Accessibility - add aria label to the OPAC browse shelf link An accessibility audit highlighted that the browse shelf link on a record's holding page does not provide enough context for visually impaired users. The suggested solution was to add aria labels to provide context. Test plan: 1. Ensure that you have at least one item with a call number. 2. Navigate to the records's page and scroll down to the holdings table. 3. Right click and choose inspect on the 'Browse shelf' link and note that there is not an aria label. 4. Apply the patch. 5. Refresh the page and repeat step 3. 6. Note that there is now an aria label that adds context to the browse shelf link - it now includes the title of the record, for example: ...aria-label="Browse Shelf for Programming Perl /"... Signed-off-by: Laura_Escamilla Signed-off-by: David Nind Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- .../opac-tmpl/bootstrap/en/modules/opac-detail.tt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt index 59e4c95969..dd1ecfe81e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-detail.tt @@ -1425,11 +1425,16 @@ [% ITEM_RESULT.itemcallnumber | html %] [% IF ( OPACShelfBrowser ) %] [% IF ( ITEM_RESULT.itemnumber == starting_itemnumber ) %] - (Browse shelf(Opens below)Browse shelf???(Opens below)) [% ELSE %] - (Browse shelf(Opens below)) [% END %]