[Koha-bugs] [Bug 28927] Id opacmainuserblock used twice in OPAC

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Sep 1 11:06:38 CEST 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28927

sandboxes at biblibre.com <sandboxes at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #124267|0                           |1
        is obsolete|                            |

--- Comment #2 from sandboxes at biblibre.com <sandboxes at biblibre.com> ---
Created attachment 124318
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=124318&action=edit
Since preference OpacMainUserBlock is an HTML customization, there is an HTML
tags with id="opacmainuserblock" and one with id="OpacMainUserBlock".

I think template block "koha_news_block" should add a class (lowercase) instead
of an id.
It fixes the bug and also it may be used several times in same page in the
future.

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 class="opacmainuserblock" and not id="OpacMainUserBlock"

https://bugs.koha-community.org/show_bug.cgi?id=28927

Signed-off-by: Sally <sally.healey at cheshiresharedservices.gov.uk>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list