From bd490b7f0d2dc5b6379a64432c2c0d6ce7142aab Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 29 Jun 2020 15:55:17 +0100 Subject: [PATCH] Bug 25244: Add specific aria-label to search results This patch adds an arai-lebel to the select checkboxes on the search results page of the OPAC. Test plan 1/ Perform a search that will yield some results 2/ Inspect the 'checkbox' on the left side of the results table 3/ Note that there is no arai-label 4/ Apply patch 5/ Refresh the search results page 6/ Inspect the 'checkbox' on the left side of the results table 7/ Note that the aria-label now appears and contains relavant information 8/ Signoff Signed-off-by: Owen Leonard Signed-off-by: Julian Maurice Bug 25244: (follow-up) QA corrections Signed-off-by: Julian Maurice Signed-off-by: Jonathan Druart (cherry picked from commit d1a7112a9054305ead325daedd6bb106a31b346f) Signed-off-by: Lucas Gass (cherry picked from commit ea51c1a865c20e29ab6c10bc017cbe40a1b314a3) Signed-off-by: Aleisha Amohia (cherry picked from commit 922df35371b4644aa5b729c2fff687ce1ec12a38) Signed-off-by: Victor Grousset/tuxayo --- .../opac-tmpl/bootstrap/en/modules/opac-results.tt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt index 9c39dc1cc0..977fccddd5 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -206,16 +206,21 @@ [% FOREACH SEARCH_RESULT IN SEARCH_RESULTS %] [% # Cell 1: Checkbox %] + [% IF ( SEARCH_RESULT.title ) %] + [% check_title = SEARCH_RESULT.title %] + [% ELSE %] + [% check_title = SEARCH_RESULT.biblionumber %] + [% END %] [% IF Koha.Preference( 'opacbookbag' ) == 1 %] - + [% ELSE %] [% IF Koha.Preference( 'virtualshelves' ) == 1 %] - + [% ELSE %] [% IF Koha.Preference( 'RequestOnOpac' ) == 1 %] [% UNLESS ( SEARCH_RESULT.norequests ) %] - [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] + [% IF Koha.Preference( 'opacuserlogin' ) == 1 %] [% END %] [% END %] [% END # IF RequestOnOpac %] -- 2.39.5