]> git.koha-community.org Git - koha.git/commit
Bug 27881: Markup error in masthead-langmenu.inc
authorOwen Leonard <oleonard@myacpl.org>
Fri, 5 Mar 2021 15:33:02 +0000 (15:33 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Thu, 15 Apr 2021 10:24:09 +0000 (12:24 +0200)
commit19a017b35abc2e7393a35206c9385a2610a39352
tree6dcee4d5cfa8c0190a2bcadbf4ba0d7650b68408
parentd448f7a8b97cfd1bf5717c0aadf7c2694feec0d1
Bug 27881: Markup error in masthead-langmenu.inc

Some markup errors were introduced into the masthead-langmenu include
file by Bug 20168, presumably during the update to the dropdown menu
markup:

'<a class="dropdown-item" <a href="'

...resulting in validation errors like "Attribute <a not allowed on
element a at this point." This patch correct the errors.

To test you should have at least two languages enabled in the
OPACLanguages system preference, opaclanguagesdisplay set to "allow,"
and OpacLangSelectorMode set to "top" or "both top and footer."

- Apply the patch and view the OPAC.
- The "Languages" menu at the top of the page should look correct and
  work correctly.
- Validating the source of the page should return no errors related to
  the language menu's markup.

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 367f19f6273fa26af9e653625156da0dba9dfc17)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead-langmenu.inc