Bug 8708 [Revised] RSS feed for new comments is broken
authorOwen Leonard <oleonard@myacpl.org>
Fri, 31 Aug 2012 13:04:13 +0000 (09:04 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Wed, 12 Sep 2012 13:31:58 +0000 (15:31 +0200)
Removing white space from the beginning of the file
so that XML processing will work correctly.

Before the patch, viewing the page
(/cgi-bin/koha/opac-showreviews.pl?format=rss) in a browser
which supports RSS handling (ex: Firefox)  will show you
unformatted and broken-looking text. After the patch the
page will trigger the browser's built-in RSS-handling format.

Revision: Template now includes comment pointing out that the <xml>
declaration must not have any white space before it.

Signed-off-by: Nicole C. Engard <nengard@bywatersolutions.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews-rss.tt

index 2159022..b354419 100644 (file)
@@ -1,6 +1,4 @@
-[% USE KohaDates %]
-
-<?xml version="1.0" encoding="utf-8"?>
+[% USE KohaDates # XML declaration should have no white space before it %]<?xml version="1.0" encoding="utf-8"?>
 <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
      <title><![CDATA[[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha online[% END %] Catalog Recent Comments]]></title>