Bugzilla – Attachment 194906 Details for
Bug 42017
Fix content type of OPAC news RSS
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 42017: Fix content type of OPAC news RSS
Bug-42017-Fix-content-type-of-OPAC-news-RSS.patch (text/plain), 1.71 KB, created by
Roman Dolny
on 2026-03-06 20:18:18 UTC
(
hide
)
Description:
Bug 42017: Fix content type of OPAC news RSS
Filename:
MIME Type:
Creator:
Roman Dolny
Created:
2026-03-06 20:18:18 UTC
Size:
1.71 KB
patch
obsolete
>From 7b364308907b6287e1b5f955ddc1a477fd0e4cab Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Fri, 6 Mar 2026 14:39:26 -0500 >Subject: [PATCH] Bug 42017: Fix content type of OPAC news RSS > >This patch updates opac-news-rss.pl so that it outputs data with the >correct content type, text/xml. > >To reproduce you must have at least one news item in your system. From >the OPAC main page, click the RSS feed link. > - If you are using Firefox or Chrome you will see unstyled plain test > on the screen. >You may or may not be able to see the problem if your >browser (e.g. Vivaldi) has a built-in RSS reader. > >To test, apply the patch and restart services. > >- In the OPAC, from the main page, click the RSS feed link at the bottom > of the OPAC news list. >- You should see the XML view of the feed. This confirms that the > browser is receiving the correct content type. > >Sponsored-by: Athens County Public Libraries >Signed-off-by: Roman Dolny <roman.dolny@jezuici.pl> >--- > opac/opac-news-rss.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/opac/opac-news-rss.pl b/opac/opac-news-rss.pl >index 3f02b169ff..d14ed1badb 100755 >--- a/opac/opac-news-rss.pl >+++ b/opac/opac-news-rss.pl >@@ -20,7 +20,7 @@ > use Modern::Perl; > use CGI; > use C4::Auth qw( get_template_and_user ); >-use C4::Output qw( output_html_with_http_headers ); >+use C4::Output qw( output_with_http_headers ); > use Koha::AdditionalContents; > > my $input = CGI->new; >@@ -53,4 +53,4 @@ my $koha_news = Koha::AdditionalContents->search_for_display( > > $template->param( koha_news => $koha_news ); > >-output_html_with_http_headers $input, $cookie, $template->output; >+output_with_http_headers $input, $cookie, $template->output, "rss"; >-- >2.39.5
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 42017
:
194904
| 194906