From f60f3ca0e64f66bc72c09abbb230ac22ce343dbe Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 21 May 2019 12:07:10 +0000 Subject: [PATCH] Bug 22945: Markup error in OPAC search results around lists display This patch makes minor corrections to the template for OPAC search results. These corrections fix errors returned by the HTML validator. To reproduce the problem, perform a search in the OPAC which will return results which are on one or more lists. Run the page through the W3C validation service: https://validator.w3.org. Either by pasting in the URL for the search results (if web accessible) or by viewing source, copying, and pasting into "Validate by Direct Input." This patch addresses two specific errors: - "Text not allowed in element ul in this context." - "Stray end tag span." To test, apply the patch and try again to reproduce the validation errors. Those errors should no longer be present. There should be no visible change to the search results view. Signed-off-by: Lucas Gass Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize (cherry picked from commit 1efe0d4606f844c28e2524d0341779381fc4980b) Signed-off-by: Fridolin Somers (cherry picked from commit 0529975851150363a64e1528c84db29d0872ada9) Signed-off-by: Lucas Gass --- .../opac-tmpl/bootstrap/en/modules/opac-results.tt | 13 +++++++------ 1 file changed, 7 insertions(+), 6 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 3995ac7b78..2143ff182f 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt @@ -474,13 +474,14 @@ [% IF Koha.Preference('virtualshelves') AND SEARCH_RESULT.shelves.count %]
Lists: -
[% END %] -- 2.39.5