Bugzilla – Attachment 180524 Details for
Bug 39492
Web Usability Accessibility Audit - Browse Shelf Links on 'Publications' Page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39492: Browse Shelf Links on 'Publications' Pg
Bug-39492-Browse-Shelf-Links-on-Publications-Pg.patch (text/plain), 3.19 KB, created by
Laura Escamilla
on 2025-04-03 13:24:40 UTC
(
hide
)
Description:
Bug 39492: Browse Shelf Links on 'Publications' Pg
Filename:
MIME Type:
Creator:
Laura Escamilla
Created:
2025-04-03 13:24:40 UTC
Size:
3.19 KB
patch
obsolete
>From 654c534a20e0ca27b2facda81ed8aafbdc79615a Mon Sep 17 00:00:00 2001 >From: John Doe <you@example.com> >Date: Wed, 2 Apr 2025 14:31:05 +0000 >Subject: [PATCH] Bug 39492: Browse Shelf Links on 'Publications' Pg > >An accessibility audit has highlighted that the Browse Shelf link on the Publicaitons page does not provide enough context for visually impaired users. The suggested solution was to add aria-labels to provide context. > >To test: >1) Ensure that you have at least one item with a call number. >2) Navigate to the item's page and scroll down to the table. >3) Right click and choose inspect on the 'Browse Shelf' link and note that there is not an aria label. >4) Apply patch. >5) Repeat the steps above. >6) Notice that there is an aria-label that adds context to the Browse Shelf link by including the title of the record. > >Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com> >--- > .../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 f87c37056a..a87464aed5 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 ) %] >- (<a class="close_shelf" href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber | html %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber | html %]#[% tab | html %]" >- >Browse shelf<span class="sr-only">(Opens below)</span></a >+ (<a >+ class="close_shelf" >+ href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber | html %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber | html %]#[% tab | html %]" >+ aria-label="Browse Shelf for [% title %]" >+ >Browse shelf???<span class="sr-only">(Opens below)</span></a > >) > [% ELSE %] >- (<a href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber | uri %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber | uri %]#[% tab | uri %]" >+ (<a >+ href="/cgi-bin/koha/opac-detail.pl?biblionumber=[% ITEM_RESULT.biblionumber | uri %]&shelfbrowse_itemnumber=[% ITEM_RESULT.itemnumber | uri %]#[% tab | uri %]" >+ aria-label="Browse Shelf for [% title %]" > >Browse shelf<span class="sr-only">(Opens below)</span></a > >) > [% END %] >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39492
:
180412
| 180524