show username instead of cardnumber
Signed-off-by: Chris Cormack <crc@liblime.com> Note from Chris, this should probably be a system preference, some libraries want the cardnumber there.
This commit is contained in:
parent
78a65edccc
commit
7612dacc6f
2 changed files with 4 additions and 2 deletions
|
@ -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 '' ) {
|
||||
|
|
|
@ -134,7 +134,7 @@
|
|||
<td><!-- TMPL_VAR NAME="branchname" --> <!-- TMPL_VAR name="location" --> <!-- TMPL_IF NAME="itemcallnumber" --> <!-- TMPL_VAR NAME="itemcallnumber" --><!-- /TMPL_IF --></td>
|
||||
<td>
|
||||
<!-- TMPL_IF name="datedue" -->
|
||||
On issue to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="cardnumber" --></a>
|
||||
On issue to <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=<!-- TMPL_VAR NAME="borrowernumber" -->"><!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --></a>
|
||||
<!-- TMPL_ELSE -->
|
||||
<!-- TMPL_IF name="notforloan" -->
|
||||
<!-- TMPL_VAR name="notforloan" -->
|
||||
|
|
Loading…
Reference in a new issue