Bug 42017 - Fix content type of OPAC news RSS
Summary: Fix content type of OPAC news RSS
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: Owen Leonard
QA Contact: Testopia
URL:
Keywords:
Depends on: 7843
Blocks:
  Show dependency treegraph
 
Reported: 2026-03-06 19:37 UTC by Owen Leonard
Modified: 2026-03-06 20:18 UTC (History)
0 users

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 42017: Fix content type of OPAC news RSS (1.66 KB, patch)
2026-03-06 19:48 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 42017: Fix content type of OPAC news RSS (1.71 KB, patch)
2026-03-06 20:18 UTC, Roman Dolny
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Owen Leonard 2026-03-06 19:37:38 UTC
I noticed that in Firefox, the default XML viewer isn't triggered when I view the OPAC news RSS feed. That seems to be because opac-news-rss.pl uses output_html_with_http_headers instead of output_with_http_headers.
Comment 1 Owen Leonard 2026-03-06 19:48:24 UTC
Created attachment 194904 [details] [review]
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
Comment 2 Roman Dolny 2026-03-06 20:18:18 UTC
Created attachment 194906 [details] [review]
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>