modified script to enable circulation system to show picture of borrower for verification purposes.
This commit is contained in:
parent
e922c83358
commit
f9d2fa784c
|
|
@ -120,12 +120,21 @@ if ($findborrower) {
|
|||
|
||||
# get the borrower information.....
|
||||
my $borrower;
|
||||
my $picture;
|
||||
|
||||
|
||||
if ($borrowernumber) {
|
||||
$borrower = getpatroninformation(\%env,$borrowernumber,0);
|
||||
my ($od,$issue,$fines)=borrdata2(\%env,$borrowernumber);
|
||||
$template->param(overduecount => $od,
|
||||
issuecount => $issue,
|
||||
finetotal => $fines);
|
||||
my $htdocs = C4::Context->config('intrahtdocs');
|
||||
$picture = "/borrowerimages/".$borrowernumber.".jpg";
|
||||
if (-e $htdocs."$picture")
|
||||
{
|
||||
$template->param(picture => $picture)
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue