-
-sub borrower_add_additional_fields {
- my ( $patron, $template ) = @_;
-
-# some borrower info is not returned in the standard call despite being assumed
-# in a number of templates. It should not be the business of this script but in lieu of
-# a revised api here it is ...
-
- if (C4::Context->preference('ExtendedPatronAttributes')) {
- my $extendedattributes = GetBorrowerAttributes($patron->borrowernumber);
- $template->param( extendedattributes => $extendedattributes );
- }
-
- return;
-}