Bugzilla – Attachment 8281 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]
Update opac-account.pl to use KohaDates TT plugin
0001-Bug-7743-Update-opac-account.pl-to-use-KohaDates-TT-.patch (text/plain), 2.25 KB, created by
Julian Maurice
on 2012-03-19 14:45:56 UTC
(
hide
)
Description:
Update opac-account.pl to use KohaDates TT plugin
Filename:
MIME Type:
Creator:
Julian Maurice
Created:
2012-03-19 14:45:56 UTC
Size:
2.25 KB
patch
obsolete
>From 3c3eaa867eaba4b8db570f15e8de9130ff3aafbf Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 19 Mar 2012 12:35:41 +0100 >Subject: [PATCH 1/8] Bug 7743: Update opac-account.pl to use KohaDates TT > plugin > >--- > .../opac-tmpl/prog/en/modules/opac-account.tt | 4 +++- > opac/opac-account.pl | 2 -- > 2 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-account.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-account.tt >index 8b9d84b..9549ea2 100644 >--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-account.tt >+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-account.tt >@@ -1,3 +1,5 @@ >+[% USE KohaDates %] >+ > [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %] Catalog › Your fines and charges > [% INCLUDE 'doc-head-close.inc' %] > </head> >@@ -35,7 +37,7 @@ > <tbody> > [% FOREACH ACCOUNT_LINE IN ACCOUNT_LINES %] > [% IF ( ACCOUNT_LINE.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %] >- <td>[% ACCOUNT_LINE.date %]</td> >+ <td>[% ACCOUNT_LINE.date | $KohaDates %]</td> > <td>[% ACCOUNT_LINE.description %] > [% IF ( ACCOUNT_LINE.title ) %][% ACCOUNT_LINE.title |html %][% END %]</td> > [% IF ( ACCOUNT_LINE.amountcredit ) %]<td class="credit">[% ELSE %]<td class="debit">[% END %][% ACCOUNT_LINE.amount %]</td> >diff --git a/opac/opac-account.pl b/opac/opac-account.pl >index 22d83b8..673b70e 100755 >--- a/opac/opac-account.pl >+++ b/opac/opac-account.pl >@@ -24,7 +24,6 @@ use C4::Members; > use C4::Circulation; > use C4::Auth; > use C4::Output; >-use C4::Dates qw/format_date/; > use warnings; > > my $query = new CGI; >@@ -50,7 +49,6 @@ $template->param( BORROWER_INFO => \@bordat ); > my ( $total , $accts, $numaccts) = GetMemberAccountRecords( $borrowernumber ); > > for ( my $i = 0 ; $i < $numaccts ; $i++ ) { >- $accts->[$i]{'date'} = format_date( $accts->[$i]{'date'} ); > $accts->[$i]{'amount'} = sprintf( "%.2f", $accts->[$i]{'amount'} || '0.00'); > if ( $accts->[$i]{'amount'} >= 0 ) { > $accts->[$i]{'amountcredit'} = 1; >-- >1.7.9.1 >
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