Bug 25982: OPAC shelves RSS link output is xml
Output rss feed as text/xml
Test plan:
1) have books entered
2) log in create a list
3) add books to list
4) display list in OPAC
5) click the RSS link button.
-- output is displayed as html text
6) apply patch
7) repeat steps 4&5
-- output is displayed as xml tree
Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>
Signed-off-by: Amit Gupta <amit.gupta@informaticsglobal.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 3d0da68d5a)
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
46710cfc00
commit
549cc995b2
|
|
@ -433,4 +433,5 @@ $template->param(
|
|||
listsview => 1,
|
||||
);
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
my $content_type = $query->param('rss')? 'rss' : 'html';
|
||||
output_with_http_headers $query, $cookie, $template->output, $content_type;
|
||||
|
|
|
|||
Loading…
Reference in New Issue