[Koha-patches] [PATCH] Show card number (non-editable) on opac-userupdate.pl. Also correctly formatting expiration date.
Owen Leonard
oleonard at myacpl.org
Fri Oct 17 16:19:24 CEST 2008
---
.../opac-tmpl/prog/en/modules/opac-userupdate.tmpl | 1 +
opac/opac-userupdate.pl | 2 +-
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl
index 6b0ae57..d0498db 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl
@@ -65,6 +65,7 @@
<fieldset class="brief">
<legend>Library Use:</legend>
<ol>
+ <li><label for="cardnumber">Card number:</label><input type="text" id="cardnumber" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="cardnumber" -->" /></li>
<li><label for="borrowernumber">Patron Number:</label><input type="text" id="borrowernumber" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="borrowernumber" -->" /></li>
<li><label for="categorycode">Patron Category:</label><input type="text" id="categorycode" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="categorycode" -->" /></li>
<li><label for="dateenrolled">Joined: </label><input type="text" id="dateenrolled" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR NAME="dateenrolled" -->" /></li>
diff --git a/opac/opac-userupdate.pl b/opac/opac-userupdate.pl
index f01a664..ad9a225 100755
--- a/opac/opac-userupdate.pl
+++ b/opac/opac-userupdate.pl
@@ -118,7 +118,7 @@ EOF
}
$borr->{'dateenrolled'} = format_date( $borr->{'dateenrolled'} );
-$borr->{'expiry'} = format_date( $borr->{'expiry'} );
+$borr->{'dateexpiry'} = format_date( $borr->{'dateexpiry'} );
$borr->{'dateofbirth'} = format_date( $borr->{'dateofbirth'} );
$borr->{'ethnicity'} = fixEthnicity( $borr->{'ethnicity'} );
--
1.5.5.GIT
More information about the Koha-patches
mailing list