Bugzilla – Attachment 151569 Details for
Bug 33809
Accessibility: OPAC results page needs more descriptive links
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33809: Place hold and Add to cart links need better descriptions
Bug-33809-Place-hold-and-Add-to-cart-links-need-be.patch (text/plain), 4.44 KB, created by
Matt Blenkinsop
on 2023-05-23 14:17:13 UTC
(
hide
)
Description:
Bug 33809: Place hold and Add to cart links need better descriptions
Filename:
MIME Type:
Creator:
Matt Blenkinsop
Created:
2023-05-23 14:17:13 UTC
Size:
4.44 KB
patch
obsolete
>From 514edffc1636258c5492b573f5f4627d29830a98 Mon Sep 17 00:00:00 2001 >From: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> >Date: Tue, 23 May 2023 14:15:30 +0000 >Subject: [PATCH] Bug 33809: Place hold and Add to cart links need better > descriptions > >The place hold and add to cart buttons should identify to screen readers which title the button is linked to. This patch adds aria-labels that include the item title to make this more clear >--- > .../bootstrap/en/includes/title-actions-menu.inc | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc >index 9f1fb2015e..6c24ed5046 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/title-actions-menu.inc >@@ -4,14 +4,14 @@ > [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] > [% IF ( shelf AND op == 'view' ) # Lists view has more granular checking of hold availability %] > [% IF ( items.allow_onshelf_holds ) %] >- <span class="actions"><a class="btn btn-link btn-sm" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% items.biblionumber | html %]"><i class="fa fa-fw fa-bookmark" aria-hidden="true"></i> Place hold</a></span> >+ <span class="actions"><a class="btn btn-link btn-sm" aria-label="Place a hold on [% items.title %]" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% items.biblionumber | html %]"><i class="fa fa-fw fa-bookmark" aria-hidden="true"></i> Place hold</a></span> > [% ELSE %] > [% IF ( items.itemsissued ) %] >- <span class="actions"><a class="btn btn-link btn-sm" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% items.biblionumber | html %]"><i class="fa fa-fw fa-bookmark" aria-hidden="true"></i> Place hold</a></span> >+ <span class="actions"><a class="btn btn-link btn-sm" aria-label="Place a hold on [% items.title %]" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% items.biblionumber | html %]"><i class="fa fa-fw fa-bookmark" aria-hidden="true"></i> Place hold</a></span> > [% END %] > [% END %] > [% ELSE %] >- <span class="actions"><a class="btn btn-link btn-sm" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% items.biblionumber | html %]"><i class="fa fa-fw fa-bookmark" aria-hidden="true"></i> Place hold</a></span> >+ <span class="actions"><a class="btn btn-link btn-sm" aria-label="Place a hold on [% items.title %]" href="/cgi-bin/koha/opac-reserve.pl?biblionumber=[% items.biblionumber | html %]"><i class="fa fa-fw fa-bookmark" aria-hidden="true"></i> Place hold</a></span> > [% END %] > [% END # / IF opacuserlogin %] > [% END # / UNLESS items.norequests %] >@@ -63,7 +63,7 @@ > [% IF ( items.incart ) %] > <span class="actions cart-actions"><a data-biblionumber="[% items.biblionumber | html %]" class="btn btn-link btn-sm addtocart cart[% items.biblionumber | html %]" href="#"><i class="fa fa-shopping-cart" aria-hidden="true"></i> In your cart</a> <a data-biblionumber="[% items.biblionumber | html %]" class="btn btn-link btn-sm remove cartRemove cartR[% items.biblionumber | html %]" href="#">(remove)</a></span> > [% ELSE %] >- <span class="actions cart-actions"><a data-biblionumber="[% items.biblionumber | html %]" class="btn btn-link btn-sm addtocart cart cart[% items.biblionumber | html %]" href="#"><i class="fa fa-shopping-cart" aria-hidden="true"></i> Add to cart</a> <a style="display:none;" data-biblionumber="[% items.biblionumber | html %]" class="btn btn-link btn-sm remove cartRemove cartR[% items.biblionumber | html %]" href="#">(remove)</a></span> >+ <span class="actions cart-actions"><a aria-label="Add [% items.title %] to the cart" data-biblionumber="[% items.biblionumber | html %]" class="btn btn-link btn-sm addtocart cart cart[% items.biblionumber | html %]" href="#"><i class="fa fa-shopping-cart" aria-hidden="true"></i> Add to cart</a> <a style="display:none;" data-biblionumber="[% items.biblionumber | html %]" class="btn btn-link btn-sm remove cartRemove cartR[% items.biblionumber | html %]" href="#">(remove)</a></span> > [% END %] > [% END # / IF opacbookbag %] > </div> >-- >2.37.1 (Apple Git-137.1)
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 33809
:
151568
|
151569
|
151576
|
151606
|
151607
|
151925
|
152050
|
153121
|
157986
|
157987
|
157988
|
157989