]> git.koha-community.org Git - koha.git/commit
Bug 25234: Update OPAC search results pagination with aria labels
authorOwen Leonard <oleonard@myacpl.org>
Tue, 21 Apr 2020 21:19:49 +0000 (21:19 +0000)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Wed, 29 Apr 2020 15:55:15 +0000 (16:55 +0100)
commit8b99b6525e876dc6a1e12a117c62ea41d1bf0e43
tree1d9289a23f38acd9abd686ff823b47947937dd89
parent738f8fe2a53b2679d15d1577d813fb072b162070
Bug 25234: Update OPAC search results pagination with aria labels

This patch updates the include file which generates OPAC search results
pagination so that it has better semantic markup and correct aria
labels.

To test, apply the patch and do a search in the OPAC which will return
multiple pages of search results.

View the source to confirm the markup changes:

 - <nav> instead of <div> surrounding the list of links, with a
   corresponding aria label
 - Navigation links should have labels indicating which page in the
   results they point to.
 - The current link should have "aria-disabled," and "aria-current" set.
 - Numbered links should have aria labels that indicate their number.

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/page-numbers.inc