From 7612dacc6fe9bd42be4da9b63d2d7e72ccdebc0f Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Tue, 14 Aug 2007 19:03:00 +0200 Subject: [PATCH] show username instead of cardnumber Signed-off-by: Chris Cormack Note from Chris, this should probably be a system preference, some libraries want the cardnumber there. --- C4/Biblio.pm | 4 +++- koha-tmpl/intranet-tmpl/prog/en/catalogue/detail.tmpl | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/C4/Biblio.pm b/C4/Biblio.pm index 5c69cd6816..48c5056a0a 100644 --- a/C4/Biblio.pm +++ b/C4/Biblio.pm @@ -799,7 +799,7 @@ sub GetItemsInfo { while ( my $data = $sth->fetchrow_hashref ) { my $datedue = ''; my $isth = $dbh->prepare( - "SELECT issues.*,borrowers.cardnumber + "SELECT issues.*,borrowers.cardnumber,borrowers.surname,borrowers.firstname FROM issues, borrowers WHERE itemnumber = ? AND returndate IS NULL @@ -809,6 +809,8 @@ sub GetItemsInfo { if ( my $idata = $isth->fetchrow_hashref ) { $data->{borrowernumber} = $idata->{borrowernumber}; $data->{cardnumber} = $idata->{cardnumber}; + $data->{surname} = $idata->{surname}; + $data->{firstname} = $idata->{firstname}; $datedue = format_date( $idata->{'date_due'} ); } if ( $datedue eq '' ) { diff --git a/koha-tmpl/intranet-tmpl/prog/en/catalogue/detail.tmpl b/koha-tmpl/intranet-tmpl/prog/en/catalogue/detail.tmpl index a6c34eb107..0484a3379b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/catalogue/detail.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/catalogue/detail.tmpl @@ -134,7 +134,7 @@ - On issue to "> + On issue to "> -- 2.39.2