From 17369714ce393b9568238e2b899717ac4ac206ed Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 19 Mar 2024 16:12:49 +0000 Subject: [PATCH] Bug 36359: [23.05.x] Fix bad rebase of opac-main.tt To test: 1. Add a OPAC news item 2. Go to the OPAC home page, view source, and copy that into an HTML validator. See errors. 3. APPLY PATCH 4. Try step 2 again, errors should be fixed. Signed-off-by: Kyle M Hall Signed-off-by: Lucas Gass --- .../bootstrap/en/modules/opac-main.tt | 30 +------------------ 1 file changed, 1 insertion(+), 29 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 b49d4b6c78..d37ea16c22 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-main.tt @@ -89,34 +89,6 @@ [% END %] [% IF koha_news.count %] - [% SET koha_news = AdditionalContents.get( category => 'news', location => ['opac_only', 'staff_and_opac'], lang => lang, news_id => news_id ) %] - [% ELSE %] - [% SET koha_news = AdditionalContents.get( category => 'news', location => ['opac_only', 'staff_and_opac'], lang => lang, library => branchcode ) %] - [% END %] - [% IF koha_news.content.count %] -
- [% SET show_author = Koha.Preference('NewsAuthorDisplay') == 'opac' || Koha.Preference('NewsAuthorDisplay') == 'both' %] - [% FOREACH koha_new IN koha_news.content %] -
-

- [% IF ( news_item ) %] - [% koha_new.title | html %] - [% ELSE %] - [% koha_new.title | html %] - [% END %] -

-
[% koha_new.content | $raw %]
-
- Published on [% koha_new.published_on | $KohaDates %] - [% IF ( show_author && koha_new.author ) %] - by [% INCLUDE 'patron-title.inc' patron=koha_new.author %] - [% END %] - [% IF ( news_id ) %] - • Show all news - [% END %] -
-
- [% END %] [% IF single_news_error %] @@ -135,7 +107,7 @@ [% IF ( news_item ) %] [% koha_new.title | html %] [% ELSE %] - [% koha_new.title | html %] + [% koha_new.title | html %] [% END %]
[% koha_new.content | $raw %]
-- 2.39.5