Fix for Bug 4473 - Recent comments view for the OPAC
authorOwen Leonard <oleonard@myacpl.org>
Thu, 9 Dec 2010 17:41:03 +0000 (17:41 +0000)
committerChris Cormack <chrisc@catalyst.net.nz>
Sun, 12 Dec 2010 20:43:01 +0000 (09:43 +1300)
commitf36747f5e8ab8c02034b165be31dcc478153cbee
tree07d968cad68e1072f1ccb63813ab61e1aea7a7af
parentf1649027619c0324a0abc08ac43c0a6ea1feb919
Fix for Bug 4473 - Recent comments view for the OPAC

- modifies opac-showreviews.pl to display recent comments for all
  titles, sorted in descending order by date.
- includes RSS feed
- includes (thanks to Chris N.):

[Enhancement][3.4] Add RFC822 Format to C4::Dates

This patch adds RFC822 formatting to C4::Dates. It also updates Dates.t
appropriately. Consult the POD for this module for how to use
this format.

Please note that this module *does not* handle TZ conversion at this point.
This means that the TZ portion of a RFC822 time will be truncated and the converted
time will be in the same TZ as was passed in. When generating an RFC822 time,
the local TZ offset will be included since none of the other supported formats
provide a means for including their TZ. This is not a problem introduced by the
addition of RFC822 formatting. Rather it is due to this module not having TZ
support to begin with.

Also note that the dow, moy abbreviations are English as required by
RFC822 section 3.3 (thanks to self for pointing that out).

Signed-off-by: Colin Campbell <colin.campbell@ptfs-europe.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
C4/Dates.pm
C4/Review.pm
koha-tmpl/opac-tmpl/prog/en/css/opac.css
koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews-rss.tmpl [new file with mode: 0644]
koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews.tmpl
opac/opac-showreviews.pl
t/Dates.t