From feff61b027eea1b1eccb0814dc69ec107ada48ad Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 11 Jun 2020 13:23:32 +0100 Subject: [PATCH] Bug 25154: Add heading where content is introduced in opac-results.tt Prior to this patch, the search results page did not contain a semantically accurate heading to introduce he main content of the page. Test plan 1/ Perform a search in the OPAC that yields results 2/ Inspect the page and note that the 'title' stating how many results are found is not semantically marked up as a heading to introduce the content. 3/ Apply the patch 4/ Reload the page 5/ Inspect the page and note that the 'title' stating how many results are found is now properly marked up as a second level heading and appropriately designated as the start of the 'maincontent' block with an associated '.maincontent' class. 6/ Perform a search which yields zero results 7/ Note that the 'No results found' title is properly marked up as a second level heading. 8/ Signoff Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 972aeaa0143dcdedc7ae23314a72991d5e4a6490) Signed-off-by: Lucas Gass (cherry picked from commit 42e3ce7e921e4bd1b54095fd0631bdea2f24d73f) Signed-off-by: Aleisha Amohia --- .../bootstrap/en/modules/opac-results.tt | 25 ++++++++----------- 1 file changed, 11 insertions(+), 14 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 f42efbe08d..af2588231a 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -54,10 +54,10 @@ [% UNLESS ( total ) %] -
+
- No results found! +

No results found!

[% IF ( searchdesc ) %] No results found for that in [% LibraryName | html %] catalog. @@ -83,7 +83,7 @@

[% END # / UNLESS searchdesc %] -
+
[% IF ( opacfacets && total ) %]
@@ -98,20 +98,17 @@ [% IF ( opacfacets && total ) %]
[% ELSE %]
[% END %] [% IF ( searchdesc ) %] -

- [% IF ( total ) %]Your search returned [% total | html %] results. + [% IF ( total ) %] +

+ Your search returned [% total | html %] results. + + + +

[% IF ( related ) %] - (related searches: - [% FOREACH relate IN related %] - [% relate.related_search | html %] - [% END %] - ). +

(related searches:[% FOREACH relate IN related %] [% relate.related_search | html %][% END %]).

[% END %] - - - [% END # / IF total %] -

[% END # / IF searchdesc %]
-- 2.39.5