- $template->param( othernames => $bor->{'othernames'},
- surname => $bor->{'surname'},
- firstname => $bor->{'firstname'},
- borrowernumber => $bor->{'borrowernumber'},
- userid => $bor->{'userid'},
- defaultnewpassword => $defaultnewpassword );
+
+ my $borrowercategory = GetBorrowercategory( $bor->{'categorycode'} );
+my $category_type = $borrowercategory->{'category_type'};
+( $template->param( adultborrower => 1 ) ) if ( $category_type eq 'A' );
+
+ $template->param( othernames => $bor->{'othernames'},
+ surname => $bor->{'surname'},
+ firstname => $bor->{'firstname'},
+ borrowernumber => $bor->{'borrowernumber'},
+ cardnumber => $bor->{'cardnumber'},
+ categorycode => $bor->{'categorycode'},
+ category_type => $bor->{'category_type'},
+ category_description => $bor->{'description'},
+ address => $bor->{'address'},
+ address2 => $bor->{'address2'},
+ city => $bor->{'city'},
+ zipcode => $bor->{'zipcode'},
+ phone => $bor->{'phone'},
+ email => $bor->{'email'},
+ branchcode => $bor->{'branchcode'},
+ userid => $bor->{'userid'},
+ destination => $destination,
+ defaultnewpassword => $defaultnewpassword
+ );