From 308c5440251f5ab8495094bc4dd2d0c4f2435c96 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 --- .../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 6c48a46daa..fdfc4ef218 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 @@ - + @@ -650,29 +650,29 @@ - +
Edition: ab - +
- +
Source: - +
- +
Material type: @@ -1033,7 +1033,7 @@ - +
@@ -1050,7 +1050,7 @@ - +
Publisher number:
    @@ -1061,7 +1061,7 @@
- +
@@ -1070,7 +1070,7 @@ - Publication details: +
Publication details: @@ -1103,13 +1103,13 @@ ; - +
- +
Dissertation note: @@ -1117,7 +1117,7 @@ - +
@@ -1131,7 +1131,7 @@ - +
Other title:
    @@ -1142,10 +1142,10 @@
- +
- +
Title translated: @@ -1153,10 +1153,10 @@ .; - +
- +
Online access:
    @@ -1248,11 +1248,11 @@
- +
- +
Availability: @@ -1394,7 +1394,7 @@ - +
-- 2.20.1