From ae1511debb4737b5242ed99e0601f2101bb9ef4d Mon Sep 17 00:00:00 2001 From: Fridolin Somers Date: Mon, 30 Aug 2021 20:59:27 -1000 Subject: [PATCH] Bug 28927: Fix id opacmainuserblock used twice in OPAC Since preference OpacMainUserBlock is now an HTML customization, there is actually an HTML tags with id="opacmainuserblock" and one with id="OpacMainUserBlock". Same for OPACNavRight in opac-registration-confirmation.tt This patch removed id from page to keep the one comming from HTML customization include. Test plan : 1) Create an HTML customization for OpacMainUserBlock with some text 2) Go to OPAC main page 3) Check HTML code of the page 4) Check you see id="OpacMainUserBlock" once and not id="opacmainuserblock" 5) Same for id="opacnavright" in opac-registration-confirmation.tt Signed-off-by: Owen Leonard Signed-off-by: Jonathan Druart Signed-off-by: Kyle M Hall --- koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 4 +--- .../bootstrap/en/modules/opac-registration-confirmation.tt | 4 +--- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt index 2c50b3ce84..344bdac0ca 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -172,9 +172,7 @@ [% END %] [% IF ( OpacMainUserBlock ) %] -
- [% PROCESS koha_news_block news => OpacMainUserBlock %] -
+ [% PROCESS koha_news_block news => OpacMainUserBlock %] [% END %] [% END %] diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt index 35f84bf57a..d82c4a4bbf 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-registration-confirmation.tt @@ -106,9 +106,7 @@ [% END # /casAuthentication %] [% END # / loggedinusername %] [% IF ( OpacNavRight ) %] -
- [% PROCESS koha_news_block news => OpacNavRight %] -
+ [% PROCESS koha_news_block news => OpacNavRight %] [% END # /OpacNavRight %] -- 2.39.5