From 3a838415fbf3d42cf12f68f6115b7ceccd1d24e0 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 21 May 2019 14:45:06 +0000 Subject: [PATCH] Bug 22949: Markup error in OPAC course reserves template This patch adds a missing "=" in opac-course-reserves.tt in order to quiet errors returned by the HTML validator. To reproduce the problem you should have one or more course reserves available in the OPAC. Go to the course reserves page. 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 these errors: - 'Quote " in attribute name. Probable cause: Matching quote missing somewhere earlier.' - 'Attribute class"inst_surname" not allowed on element span at this point.' 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 page. --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt index dffe80b..9f3b430 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-course-reserves.tt @@ -49,7 +49,7 @@ [% AuthorisedValues.GetByCode( 'TERM' c.term, 1 ) | html %] [% FOREACH i IN c.instructors %] -
[% i.surname | html %][% IF i.firstname %], [% i.firstname | html %][% END %]
+
[% i.surname | html %][% IF i.firstname %], [% i.firstname | html %][% END %]
[% END %] [% c.public_note | $raw %] -- 2.1.4