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 <oleonard@myacpl.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
This commit is contained in:
Fridolin Somers 2021-08-30 20:59:27 -10:00 committed by Kyle Hall
parent 89e2aa5a9b
commit ae1511debb
2 changed files with 2 additions and 6 deletions

View file

@ -172,9 +172,7 @@
[% END %]
[% IF ( OpacMainUserBlock ) %]
<div id="opacmainuserblock">
[% PROCESS koha_news_block news => OpacMainUserBlock %]
</div>
[% END %]
[% END %]

View file

@ -106,9 +106,7 @@
[% END # /casAuthentication %]
[% END # / loggedinusername %]
[% IF ( OpacNavRight ) %]
<div id="opacnavright">
[% PROCESS koha_news_block news => OpacNavRight %]
</div>
[% END # /OpacNavRight %]
</div> <!-- / .col-lg-3 -->