Bugzilla – Attachment 124267 Details for
Bug 28927
Id opacmainuserblock used twice in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Since preference OpacMainUserBlock is an HTML customization, there is an HTML tags with id="opacmainuserblock" and one with id="OpacMainUserBlock".
Since-preference-OpacMainUserBlock-is-an-HTML-cust.patch (text/plain), 3.13 KB, created by
Fridolin Somers
on 2021-08-31 07:12:03 UTC
(
hide
)
Description:
Since preference OpacMainUserBlock is an HTML customization, there is an HTML tags with id="opacmainuserblock" and one with id="OpacMainUserBlock".
Filename:
MIME Type:
Creator:
Fridolin Somers
Created:
2021-08-31 07:12:03 UTC
Size:
3.13 KB
patch
obsolete
>From 185754b3d9261d81a341ba283f36930420b4c92b Mon Sep 17 00:00:00 2001 >From: Fridolin Somers <fridolin.somers@biblibre.com> >Date: Mon, 30 Aug 2021 20:59:27 -1000 >Subject: [PATCH] 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 >--- > koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc | 2 +- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt | 4 +--- > .../bootstrap/en/modules/opac-registration-confirmation.tt | 4 +--- > 3 files changed, 3 insertions(+), 7 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc b/koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc >index f292178697..868f2a64cf 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/includes/html_helpers.inc >@@ -10,7 +10,7 @@ > > [% BLOCK koha_news_block %] > [% IF ( news.content.count > 0 ) %] >- <div id="[% news.location | html %]"> >+ <div class="[% news.location | lower | html %]"> > [% FOREACH n IN news.content %] > <div class="[% n.lang | html %]_item"> > [% IF ( n.title && news.blocktitle ) %] >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 d46100fcbe..5e0c99f229 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt >@@ -167,9 +167,7 @@ > [% END %] > > [% IF ( OpacMainUserBlock ) %] >- <div id="opacmainuserblock"> >- [% PROCESS koha_news_block news => OpacMainUserBlock %] >- </div> >+ [% 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 b688de43d1..d2ab28b68f 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 ) %] >- <div id="opacnavright"> >- [% PROCESS koha_news_block news => OpacNavRight %] >- </div> >+ [% PROCESS koha_news_block news => OpacNavRight %] > [% END # /OpacNavRight %] > </div> <!-- / .col-lg-3 --> > >-- >2.32.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28927
:
124267
|
124318
|
124637
|
124638
|
124793
|
124794
|
125125
|
125126
|
125137
|
125138
|
125332
|
125333