Bug 25982

Summary: OPAC shelves RSS link output is HTML not XML
Product: Koha Reporter: Didier Gautheron <didier.gautheron>
Component: OPACAssignee: Didier Gautheron <didier.gautheron>
Status: CLOSED FIXED QA Contact: Testopia <testopia>
Severity: trivial    
Priority: P5 - low CC: aleisha, amitddng135, dcook, lucas, sally.healey, victor
Version: master   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Small patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
20.11.00, 20.05.03, 19.11.09, 19.05.15
Attachments: Bug 25982: OPAC shelves RSS link output is xml
Bug 25982: OPAC shelves RSS link output is xml
Bug 25982: OPAC shelves RSS link output is xml
Bug 25982: OPAC shelves RSS link output is xml

Description Didier Gautheron 2020-07-12 12:07:12 UTC
Unlike opac-search.pl opac-shelves.pl output header is text/html not text/xml and it seems to confuse some RSS readers.

cf 2009 git commit b04f432857617c6a7b3333863e34420103321ea1 for opac-search

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
Comment 1 Didier Gautheron 2020-07-12 12:11:58 UTC
Created attachment 106806 [details] [review]
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
Comment 2 ByWater Sandboxes 2020-07-27 15:10:17 UTC
Created attachment 107435 [details] [review]
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>
Comment 3 Amit Gupta 2020-07-27 16:03:19 UTC
Created attachment 107441 [details] [review]
Bug 25982: OPAC shelves RSS link output is xml

Work perfectly.
Comment 4 Katrin Fischer 2020-07-29 21:36:19 UTC
Created attachment 107539 [details] [review]
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>
Comment 5 Jonathan Druart 2020-07-30 15:47:26 UTC
Pushed to master for 20.11, thanks to everybody involved!
Comment 6 Lucas Gass 2020-08-06 20:16:02 UTC
backported to 20.05.x for 20.05.03
Comment 7 Aleisha Amohia 2020-08-07 02:10:41 UTC
backported to 19.11.x for 19.11.09
Comment 8 Victor Grousset/tuxayo 2020-09-20 10:25:14 UTC
Backported to 19.05.x branch for 19.05.15