Bug 22946: Markup error in OPAC search results around selection links
authorOwen Leonard <oleonard@myacpl.org>
Tue, 21 May 2019 12:39:09 +0000 (12:39 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 16 Jul 2019 06:27:41 +0000 (08:27 +0200)
commit639dda850db7832a0fb6d06db6d270f804228eac
tree1772aec621267a42b06e34f49543456a8a992a03
parentb4fcef681084d017cc5b782e0910290924a9b0de
Bug 22946: Markup error in OPAC search results around selection links

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, make sure holds and/or tags are enabled in the
OPAC. Perform a search in the OPAC which will return multiple results.
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 one specific error:

 - "Element div not allowed as child of element span in this context."

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: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit 48259267f6830b2e388b2a91268117645bda80f3)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt