From e1148ec52ab101db1f7d06b2255c7f424fe95726 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Mon, 19 Mar 2012 14:49:36 +0100 Subject: [PATCH] Bug 7743: Update sco/sco-main.pl to use KohaDates TT plugin Signed-off-by: Marijana Glavica --- koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt | 4 +++- opac/sco/sco-main.pl | 3 --- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt b/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt index f7d2c4f9bb..9f8f634704 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/sco/sco-main.tt @@ -1,3 +1,5 @@ +[% USE KohaDates %] + [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha [% END %] › Self Checkout @@ -210,7 +212,7 @@ Sorry, This Self-Checkout Station has lost authentication. Please contact the a [% UNLESS ( ISSUE.noitemlinks ) %][% ISSUE.title |html %][% ELSE %][% ISSUE.title |html %][% END %] [% ISSUE.author %] ([% ISSUE.barcode %]) [% ISSUE.itemcallnumber %] - [% IF ( ISSUE.overdue ) %][% ISSUE.date_due_display %][% ELSE %][% ISSUE.date_due_display %][% END %] + [% IF ( ISSUE.overdue ) %][% ISSUE.date_due | $KohaDates %][% ELSE %][% ISSUE.date_due | $KohaDates %][% END %]
diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl index f0ca37e989..243dddd064 100755 --- a/opac/sco/sco-main.pl +++ b/opac/sco/sco-main.pl @@ -39,12 +39,10 @@ use Digest::MD5 qw(md5_base64); use C4::Auth qw(get_template_and_user checkpw); use C4::Koha; -use C4::Dates qw/format_date/; use C4::Circulation; use C4::Reserves; use C4::Output; use C4::Members; -use C4::Dates; use C4::Biblio; use C4::Items; @@ -218,7 +216,6 @@ if ($borrower->{cardnumber}) { my @issues; my ($issueslist) = GetPendingIssues( $borrower->{'borrowernumber'} ); foreach my $it (@$issueslist) { - $it->{date_due_display} = format_date($it->{date_due}); my ($renewokay, $renewerror) = CanBookBeIssued( $borrower, $it->{'barcode'}, -- 2.39.5