From 1ec5d80954fcd838f16e824776f417f0afe775f3 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 --- .../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 17564fad73..b0fc79008d 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.20.1