From ae866dae38dc380b1d3f1635e6832ac7a4c237b8 Mon Sep 17 00:00:00 2001 From: Didier Gautheron Date: Sun, 12 Jul 2020 14:09:15 +0200 Subject: [PATCH] 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 Signed-off-by: Amit Gupta Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart (cherry picked from commit 3d0da68d5ada37b40099fbc11b63202ccf7a48b2) Signed-off-by: Lucas Gass (cherry picked from commit 549cc995b2796b9e413c2860fe2d09fef5d97778) Signed-off-by: Aleisha Amohia (cherry picked from commit 5cc580332c359a630aece3158fde1d71c70e2dd2) Signed-off-by: Victor Grousset/tuxayo --- opac/opac-shelves.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/opac/opac-shelves.pl b/opac/opac-shelves.pl index cca12f2bb2..79ea8ed7b4 100755 --- a/opac/opac-shelves.pl +++ b/opac/opac-shelves.pl @@ -388,4 +388,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; -- 2.39.5