Bug 6162 Fix passing of borrower details to reading history

script was passing borr details incorrectly and in a fix was
then passing them in a one element array
unnecessary complication tends to go wrong sooner or later

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
This commit is contained in:
Colin Campbell 2011-04-12 11:40:57 +01:00 committed by Chris Cormack
parent 2c82c8e905
commit 28205bfda2
2 changed files with 3 additions and 6 deletions

View file

@ -1,4 +1,4 @@
[% INCLUDE 'doc-head-open.inc' %][% DEFAULT LibraryNameTitle="Koha Online" %] Catalog &rsaquo; Account for [% FOREACH BORROWER_INF IN BORROWER_INFO %][% BORROWER_INF.firstname %] [% BORROWER_INF.surname %][% END %]
[% INCLUDE 'doc-head-open.inc' %][% DEFAULT LibraryNameTitle="Koha Online" %] Catalog &rsaquo; Account for [% firstname %] [% surname %]
[% INCLUDE 'doc-head-close.inc' %]
<style type="text/css">ul.ui-tabs-nav li a, ul.ui-tabs-nav li span.a { padding:0.6em 1em; }</style>
<script type="text/javascript">
@ -22,7 +22,7 @@ $(document).ready(function(){
<div class="yui-b"><div class="yui-g">
<div id="userreadingrecord" class="container">
<!--CONTENT-->
<h3><a href="/cgi-bin/koha/opac-user.pl">[% FOREACH BORROWER_INF IN BORROWER_INFO %][% BORROWER_INF.firstname %] [% BORROWER_INF.surname %][% END %]'s account</a> <img src="[% themelang %]../../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> Checkout History</h3>
<h3><a href="/cgi-bin/koha/opac-user.pl">[% firstname %] [% surname %]'s account</a> <img src="[% themelang %]../../images/caret.gif" width="16" height="16" alt="&gt;" border="0" /> Checkout History</h3>
[% UNLESS ( count ) %]
You have never borrowed anything from this library.

View file

@ -45,7 +45,7 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user(
# get borrower information ....
my ( $borr ) = GetMemberDetails( $borrowernumber );
$template->param($borr);
$template->param(%{$borr});
my $itemtypes = GetItemTypes();
@ -74,9 +74,6 @@ else {
my ( $issues ) = GetAllIssues( $borrowernumber, $order, $limit );
my @bordat;
$bordat[0] = $borr;
$template->param( BORROWER_INFO => \@bordat );
my @loop_reading;