From a8a48ddc62cd8ce161ef045f45b36621025f954e Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Thu, 4 Feb 2021 16:14:48 +0000 Subject: [PATCH] Bug 27627: Fix invalid HTMl in OPAC results XSLT: change spans to divs This patch modifies the XSL template for OPAC search results in order to improve HTML validation: Changing some s to
s will prevent an error when those s contain block-level elements. To test, apply the patch and restart_all if necessary. - Confirm that OPACXSLTResultsDisplay is set to "default" - Perform a catalog search in the OPAC. - Validate the page source and confirm that there are no errors about "Element ul not allowed as child of element span in this context" Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer --- .../en/xslt/MARC21slim2OPACResults.xsl | 44 +++++++++---------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index c7f05fd19d..220ca88663 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -472,7 +472,7 @@ - + @@ -647,29 +647,29 @@ - +
Edition: ab - +
- +
Source: - +
- +
Material type: @@ -1030,7 +1030,7 @@ - +
@@ -1047,7 +1047,7 @@ - +
Publisher number:
    @@ -1058,7 +1058,7 @@
- +
@@ -1067,7 +1067,7 @@ - Publication details: +
Publication details: @@ -1100,13 +1100,13 @@ ; - +
- +
Dissertation note: @@ -1114,7 +1114,7 @@ - +
@@ -1128,7 +1128,7 @@ - +
Other title:
    @@ -1139,10 +1139,10 @@
- +
- +
Title translated: @@ -1150,10 +1150,10 @@ .; - +
- +
Online access:
    @@ -1245,11 +1245,11 @@
- +
- +
Availability: @@ -1391,7 +1391,7 @@ - +
-- 2.30.2