From 8277046c1609d4410fe541db6719b013da1c8dae Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 13 Jul 2010 13:55:00 -0400 Subject: [PATCH] Fix for Bug 4908 - OPAC patron details page doesn't show patron's home library --- .../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 bb0a473..fdb2ae0 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 @@ Library Use:
  1. " />
  2. +
  3. " />
  4. " />
  5. ()" />
  6. " />
  7. 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.4