modified script to enable circulation system to show picture of borrower for verifica...
authorgenjimoto <genjimoto>
Mon, 22 Aug 2005 12:53:48 +0000 (12:53 +0000)
committergenjimoto <genjimoto>
Mon, 22 Aug 2005 12:53:48 +0000 (12:53 +0000)
circ/circulation.pl

index 63d668e..e5696e5 100755 (executable)
@@ -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)
+                                                       };
 }