Bugzilla – Attachment 8579 Details for
Bug 7743
Use KohaDates TT plugin in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF] Bug 7743: Update opac-showreviews.pl to use KohaDates TT plugin
SIGNED-OFF-Bug-7743-Update-opac-showreviewspl-to-u.patch (text/plain), 4.02 KB, created by
Marijana Glavica
on 2012-03-23 10:44:19 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 7743: Update opac-showreviews.pl to use KohaDates TT plugin
Filename:
MIME Type:
Creator:
Marijana Glavica
Created:
2012-03-23 10:44:19 UTC
Size:
4.02 KB
patch
obsolete
>From 0b79b1d8c0a262eb8143185ef1289f7211b26064 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 19 Mar 2012 15:05:24 +0100 >Subject: [PATCH] [SIGNED-OFF] Bug 7743: Update opac-showreviews.pl to use KohaDates TT plugin > >Signed-off-by: Marijana Glavica <mglavica@ffzg.hr> >--- > .../prog/en/modules/opac-showreviews-rss.tt | 4 +++- > .../opac-tmpl/prog/en/modules/opac-showreviews.tt | 4 +++- > opac/opac-showreviews.pl | 5 +---- > 3 files changed, 7 insertions(+), 6 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews-rss.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews-rss.tt >index 42e0fc0..7e9cc24 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews-rss.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews-rss.tt >@@ -1,3 +1,5 @@ >+[% USE KohaDates %] >+ > <?xml version="1.0" encoding="utf-8"?> > <rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> > <channel> >@@ -26,7 +28,7 @@ > [% IF ( review.notes ) %], [% review.notes |html %][% END %] > [% IF ( review.size ) %] [% review.size |html %]. [% END %] > [% IF ( review.isbn ) %] [% review.isbn |html %][% END %] </p> >-<p>[% IF ( review.borrowernumber && ShowReviewer ) %][% review.firstname %] [% review.surname %] commented[% ELSE %]Comment[% END %] on [% review.datereviewed %]: [% review.review |html %]</p> >+<p>[% IF ( review.borrowernumber && ShowReviewer ) %][% review.firstname %] [% review.surname %] commented[% ELSE %]Comment[% END %] on [% review.datereviewed | $KohaDates %]: [% review.review |html %]</p> > ]]></description> > <guid>[% OPACBaseURL %]/cgi-bin/koha/opac-detail.pl?biblionumber=[% review.biblionumber %]&reviewid=[% review.reviewid %]</guid> > <pubDate>[% review.timestamp %]</pubDate> >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews.tt >index d096ea6..c132d15 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-showreviews.tt >@@ -1,3 +1,5 @@ >+[% USE KohaDates %] >+ > [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › Recent Comments > [% INCLUDE 'doc-head-close.inc' %] > <link rel="alternate" type="application/rss+xml" title="[% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog Recent Comments" href="[% OPACBaseURL %]/cgi-bin/koha/opac-showreviews.pl?format=rss" /> >@@ -53,7 +55,7 @@ $(document).ready(function(){ > [% FILTER html_break %] > [% review.review |html %] > [% END %] >- <span style="font-size:87%;font-color:#CCC;">Added [% review.datereviewed %] [% IF ( review.your_comment ) %] by <strong>you</strong>[% ELSE %] >+ <span style="font-size:87%;font-color:#CCC;">Added [% review.datereviewed | $KohaDates %] [% IF ( review.your_comment ) %] by <strong>you</strong>[% ELSE %] > [% IF ( review.borrowernumber && ShowReviewer != "none" ) %] by > [% SWITCH ShowReviewer %] > [% CASE 'full' %] >diff --git a/opac/opac-showreviews.pl b/opac/opac-showreviews.pl >index 449ffcd..f8fc619 100755 >--- a/opac/opac-showreviews.pl >+++ b/opac/opac-showreviews.pl >@@ -28,7 +28,7 @@ use C4::Output; > use C4::Circulation; > use C4::Review; > use C4::Biblio; >-use C4::Dates qw/format_date/; >+use C4::Dates; > use C4::Members qw/GetMemberDetails/; > use POSIX qw(ceil strftime); > >@@ -117,9 +117,6 @@ for my $result (@$reviews){ > my $rsstimestamp = C4::Dates->new($result->{datereviewed},"iso"); > my $rsstimestamp_output = $rsstimestamp->output("rfc822"); > $result->{timestamp} = $rsstimestamp_output; >- $result->{datereviewed} = format_date($result->{datereviewed}); >- } else { >- $result->{datereviewed} = format_date($result->{datereviewed}); > } > } > ## Build the page numbers on the bottom of the page >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7743
:
8281
|
8282
|
8283
|
8284
|
8285
|
8286
|
8287
|
8288
|
8573
|
8574
|
8575
|
8576
|
8577
|
8578
|
8579
|
8580
|
8624
|
9038
|
9041