|
Lines 74-94
if ( $borrowernumber eq C4::Context->preference('AnonymousPatron') ){
Link Here
|
| 74 |
} |
74 |
} |
| 75 |
} |
75 |
} |
| 76 |
|
76 |
|
| 77 |
if ( $patron->category->category_type eq 'C') { |
77 |
if ( $patron->is_child) { |
| 78 |
my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); |
78 |
my $patron_categories = Koha::Patron::Categories->search_limited({ category_type => 'A' }, {order_by => ['categorycode']}); |
| 79 |
$template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; |
79 |
$template->param( 'CATCODE_MULTI' => 1) if $patron_categories->count > 1; |
| 80 |
$template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1; |
80 |
$template->param( 'catcode' => $patron_categories->next->categorycode ) if $patron_categories->count == 1; |
| 81 |
} |
81 |
} |
| 82 |
|
82 |
|
| 83 |
$template->param( adultborrower => 1 ) if ( $patron->category->category_type eq 'A' || $patron->category->category_type eq 'I' ); |
|
|
| 84 |
|
| 85 |
$template->param( picture => 1 ) if $patron->image; |
| 86 |
|
| 87 |
$template->param(%{ $patron->unblessed }); |
| 88 |
|
| 89 |
$template->param( |
83 |
$template->param( |
| 90 |
holdshistoryview => 1, |
84 |
holdshistoryview => 1, |
| 91 |
borrowernumber => $borrowernumber, |
|
|
| 92 |
patron => $patron, |
85 |
patron => $patron, |
| 93 |
holds => \@all_holds, |
86 |
holds => \@all_holds, |
| 94 |
); |
87 |
); |
| 95 |
- |
|
|