From bc3f39b7025f5404c1264a01706d20a3dc22e4b6 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Mon, 19 Mar 2012 14:57:51 +0100 Subject: [PATCH] Bug 7743: Update opac-userupdate.pl to use KohaDates TT plugin Signed-off-by: Marijana Glavica --- .../opac-tmpl/prog/en/modules/opac-userupdate.tt | 14 ++++++++------ opac/opac-userupdate.pl | 3 --- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tt b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tt index 58badfd734..3a7fb9de2a 100644 --- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tt +++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tt @@ -1,3 +1,5 @@ +[% USE KohaDates %] + [% INCLUDE 'doc-head-open.inc' %][% IF ( LibraryNameTitle ) %][% IF ( LibraryNameTitle ) %][% LibraryNameTitle %][% ELSE %]Koha Online[% END %][% ELSE %]Koha Online[% END %] Catalog › Your personal details [% INCLUDE 'doc-head-close.inc' %] @@ -68,7 +70,7 @@
    -
  1. +
  2. -
  3. -
  4. +
  5. +
  6. [% IF ( BORROWER_INF.ExtendedPatronAttributes ) %] [% FOREACH patron_attribute IN BORROWER_INF.patron_attributes %]
  7. @@ -131,7 +133,7 @@
    Personal Information
      -
    1. Date of Birth: [% BORROWER_INF.dateofbirth %]
    2. +
    3. Date of Birth: [% BORROWER_INF.dateofbirth | $KohaDates %]
    4. Gender: [% IF ( sex == 'F' ) %]Female[% END %] [% IF ( sex == 'M' ) %]Male[% END %] @@ -162,8 +164,8 @@
    5. Home library: [% BORROWER_INF.branchname %]
    6. Patron Number: [% BORROWER_INF.borrowernumber %]
    7. Patron Category: [% BORROWER_INF.description %] ([% BORROWER_INF.categorycode %])
    8. -
    9. Joined: [% BORROWER_INF.dateenrolled %]
    10. -
    11. Expires: [% BORROWER_INF.dateexpiry %]
    12. +
    13. Joined: [% BORROWER_INF.dateenrolled | $KohaDates %]
    14. +
    15. Expires: [% BORROWER_INF.dateexpiry | $KohaDates %]
    16. [% IF ( BORROWER_INF.ExtendedPatronAttributes ) %] [% FOREACH patron_attribute IN BORROWER_INF.patron_attributes %]
    17. [% patron_attribute.description %] diff --git a/opac/opac-userupdate.pl b/opac/opac-userupdate.pl index 7402b45de1..b37d88c3da 100755 --- a/opac/opac-userupdate.pl +++ b/opac/opac-userupdate.pl @@ -141,9 +141,6 @@ EOF } } -$borr->{'dateenrolled'} = format_date( $borr->{'dateenrolled'} ); -$borr->{'dateexpiry'} = format_date( $borr->{'dateexpiry'} ); -$borr->{'dateofbirth'} = format_date( $borr->{'dateofbirth'} ); $borr->{'ethnicity'} = fixEthnicity( $borr->{'ethnicity'} ); $borr->{'branchname'} = GetBranchName($borr->{'branchcode'}); -- 2.39.5