From d1a7112a9054305ead325daedd6bb106a31b346f 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 --- .../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 b9d1423378..3fd522cf62 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -239,16 +239,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