Bugzilla – Attachment 8578 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-userupdate.pl to use KohaDates TT plugin
SIGNED-OFF-Bug-7743-Update-opac-userupdatepl-to-us.patch (text/plain), 4.94 KB, created by
Marijana Glavica
on 2012-03-23 10:44:09 UTC
(
hide
)
Description:
[SIGNED-OFF] Bug 7743: Update opac-userupdate.pl to use KohaDates TT plugin
Filename:
MIME Type:
Creator:
Marijana Glavica
Created:
2012-03-23 10:44:09 UTC
Size:
4.94 KB
patch
obsolete
>From 60531162195f95a72e44772b0d6b6691c3ea5d61 Mon Sep 17 00:00:00 2001 >From: Julian Maurice <julian.maurice@biblibre.com> >Date: Mon, 19 Mar 2012 14:57:51 +0100 >Subject: [PATCH] [SIGNED-OFF] Bug 7743: Update opac-userupdate.pl to use KohaDates TT plugin > >Signed-off-by: Marijana Glavica <mglavica@ffzg.hr> >--- > .../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 58badfd..3a7fb9d 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' %] > </head> >@@ -68,7 +70,7 @@ > </fieldset> > <fieldset class="brief"> > <ol> >-<li><label for="dob">Date of Birth: </label> <input id="dob" type="text" size="10" value="[% BORROWER_INF.dateofbirth %]" name="dateofbirth" /></li> >+<li><label for="dob">Date of Birth: </label> <input id="dob" type="text" size="10" value="[% BORROWER_INF.dateofbirth | $KohaDates %]" name="dateofbirth" /></li> > <li><label for="sex">Gender: </label> <select name="sex" id="sex"><option></option> > [% IF ( BORROWER_INF.sex == 'F' ) %]<option value="F" selected="selected">Female</option>[% ELSE %]<option value="F">Female</option>[% END %] > [% IF ( BORROWER_INF.sex == 'M' ) %]<option value="M" selected="selected">Male</option>[% ELSE %]<option value="M">Male</option>[% END %] >@@ -81,8 +83,8 @@ > <li><label for="branchname">Home library:</label><input type="text" id="branchname" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.branchname %]" /></li> > <li><label for="borrowernumber">Patron Number:</label><input type="text" id="borrowernumber" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.borrowernumber %]" /></li> > <li><label for="categorycode">Patron Category:</label><input type="text" id="categorycode" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.description %] ([% BORROWER_INF.categorycode %])" /></li> >- <li><label for="dateenrolled">Joined: </label><input type="text" id="dateenrolled" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.dateenrolled %]" /></li> >- <li><label for="dateexpiry">Expires: </label><input type="text" id="dateexpiry" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.dateexpiry %]" /></li> >+ <li><label for="dateenrolled">Joined: </label><input type="text" id="dateenrolled" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.dateenrolled | $KohaDates %]" /></li> >+ <li><label for="dateexpiry">Expires: </label><input type="text" id="dateexpiry" disabled="disabled" readonly="readonly" value="[% BORROWER_INF.dateexpiry | $KohaDates %]" /></li> > [% IF ( BORROWER_INF.ExtendedPatronAttributes ) %] > [% FOREACH patron_attribute IN BORROWER_INF.patron_attributes %] > <li><label>[% patron_attribute.description %]</label> >@@ -131,7 +133,7 @@ > <fieldset class="rows"> > <legend>Personal Information</legend> > <ol> >-<li><span class="label">Date of Birth:</span> [% BORROWER_INF.dateofbirth %]</li> >+<li><span class="label">Date of Birth:</span> [% BORROWER_INF.dateofbirth | $KohaDates %]</li> > <li><span class="label">Gender:</span> > [% IF ( sex == 'F' ) %]Female[% END %] > [% IF ( sex == 'M' ) %]Male[% END %] >@@ -162,8 +164,8 @@ > <li><span class="label">Home library:</span> [% BORROWER_INF.branchname %]</li> > <li><span class="label">Patron Number:</span> [% BORROWER_INF.borrowernumber %]</li> > <li><span class="label">Patron Category:</span> [% BORROWER_INF.description %] ([% BORROWER_INF.categorycode %])</li> >-<li><span class="label">Joined:</span> [% BORROWER_INF.dateenrolled %]</li> >-<li><span class="label">Expires:</span> [% BORROWER_INF.dateexpiry %]</li> >+<li><span class="label">Joined:</span> [% BORROWER_INF.dateenrolled | $KohaDates %]</li> >+<li><span class="label">Expires:</span> [% BORROWER_INF.dateexpiry | $KohaDates %]</li> > [% IF ( BORROWER_INF.ExtendedPatronAttributes ) %] > [% FOREACH patron_attribute IN BORROWER_INF.patron_attributes %] > <li><span class="label">[% patron_attribute.description %]</span> >diff --git a/opac/opac-userupdate.pl b/opac/opac-userupdate.pl >index 7402b45..b37d88c 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'}); > >-- >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