From: Owen Leonard <[email protected]>
Signed-off-by: Galen Charlton <[email protected]>
---
.../opac-tmpl/prog/en/modules/opac-userupdate.tmpl | 1 +
opac/opac-userupdate.pl | 3 ++-
2 files changed, 3 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 64c81f2..db9c416 100644
--- a/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl
+++ b/koha-tmpl/opac-tmpl/prog/en/modules/opac-userupdate.tmpl
@@ -73,6 +73,7 @@
<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="branchcode">Home library:</label><input type="text"
id="branchcode" disabled="disabled" readonly="readonly" value="<!-- TMPL_VAR
NAME="branchcode" -->" /></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="description" --> (<!-- 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 b38a477..a9d0101 100755
--- a/opac/opac-userupdate.pl
+++ b/opac/opac-userupdate.pl
@@ -147,9 +147,10 @@ EOF
}
$borr->{'dateenrolled'} = format_date( $borr->{'dateenrolled'} );
-$borr->{'dateexpiry'} = format_date( $borr->{'dateexpiry'} );
+$borr->{'dateexpiry'} = format_date( $borr->{'dateexpiry'} );
$borr->{'dateofbirth'} = format_date( $borr->{'dateofbirth'} );
$borr->{'ethnicity'} = fixEthnicity( $borr->{'ethnicity'} );
+$borr->{'branchcode'} = GetBranchName($borr->{'branchcode'});
if (C4::Context->preference('ExtendedPatronAttributes')) {
my $attributes =
C4::Members::Attributes::GetBorrowerAttributes($borrowernumber, 'opac');
--
1.7.0
_______________________________________________
Koha-patches mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-patches
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/