Lines 76-82
output_and_exit_if_error(
Link Here
|
76 |
{ module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } |
76 |
{ module => 'members', logged_in_user => $logged_in_user, current_patron => $patron } |
77 |
); |
77 |
); |
78 |
|
78 |
|
79 |
my $category_type = $patron->category->category_type; |
79 |
my $category = $patron->category; |
|
|
80 |
my $category_type = $category->category_type; |
80 |
|
81 |
|
81 |
if ( $patron->borrowernumber eq C4::Context->preference("AnonymousPatron") ) { |
82 |
if ( $patron->borrowernumber eq C4::Context->preference("AnonymousPatron") ) { |
82 |
$template->param( is_anonymous => 1 ); |
83 |
$template->param( is_anonymous => 1 ); |
Lines 116-121
$template->param(
Link Here
|
116 |
guarantor_relationships => $guarantor_relationships, |
117 |
guarantor_relationships => $guarantor_relationships, |
117 |
guarantees => \@guarantees, |
118 |
guarantees => \@guarantees, |
118 |
); |
119 |
); |
|
|
120 |
if ( C4::Context->preference('ChildNeedsGuarantor') |
121 |
and ( $patron->is_child or $category->can_be_guarantee ) |
122 |
and $patron->contactname eq "" |
123 |
and !@guarantors ) |
124 |
{ |
125 |
$template->param( missing_guarantor => 1 ); |
126 |
} |
119 |
|
127 |
|
120 |
my $relatives_issues_count = Koha::Checkouts->count( { borrowernumber => \@relatives } ); |
128 |
my $relatives_issues_count = Koha::Checkouts->count( { borrowernumber => \@relatives } ); |
121 |
|
129 |
|
122 |
- |
|
|