From 5f6dc4b46d432fddfa3df23b9784108d71a94d2b 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" Note: another patch will address other validation errors. Signed-off-by: Lucas Gass --- .../bootstrap/en/xslt/MARC21slim2OPACResults.xsl | 80 +++++++++++----------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl index ecd7cfa986..2201d966ae 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl +++ b/koha-tmpl/opac-tmpl/bootstrap/en/xslt/MARC21slim2OPACResults.xsl @@ -469,7 +469,7 @@ - + @@ -647,23 +647,23 @@ - +
Edition: ab - +
- +
Source: - +
@@ -671,7 +671,7 @@ - +
Material type: Set Set @@ -694,18 +694,18 @@ Sound Sound Music Music - +
- +
; Format: - +
- +
; Type of continuing resource: @@ -729,11 +729,11 @@ web site - +
- +
; Nature of contents: @@ -806,11 +806,11 @@ conference publication - +
- +
; Type of computer file: @@ -828,10 +828,10 @@ game - +
- +
; Nature of contents: @@ -883,10 +883,10 @@ Speeches - +
- +
; Literary form: biography @@ -930,10 +930,10 @@ speech - +
- +
; Type of visual material: @@ -994,12 +994,12 @@ toy - +
- +
; Audience: @@ -1027,7 +1027,7 @@ Specialized; - +
@@ -1047,7 +1047,7 @@ - +
Publisher number: @@ -1055,7 +1055,7 @@ | - +
@@ -1064,7 +1064,7 @@ - Publication details: +
Publication details: @@ -1097,13 +1097,13 @@ ; - +
- +
Dissertation note: @@ -1111,7 +1111,7 @@ - +
@@ -1125,7 +1125,7 @@
- +
Other title: @@ -1134,10 +1134,10 @@ . | - +
- +
Title translated: @@ -1145,10 +1145,10 @@ .; - +
- +
Online access:
    @@ -1240,9 +1240,9 @@
- +
- +
Availability: @@ -1450,10 +1450,10 @@ ). - +
- +
@@ -1502,7 +1502,7 @@ - +
-- 2.11.0