patron => $patron,
categoryname => $patron->category->description,
expiry => $patron->dateexpiry,
- is_child => ( $patron->category->category_type eq 'C' ),
);
}
[% ELSE %]
<li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to delete patrons" id="deletepatron" href="#">Delete</a></li>
[% END %]
- [% IF ( is_child ) %]
+ [% IF ( patron.is_child ) %]
<li><a id="updatechild" href="#">Update child to adult patron</a></li>
[% ELSE %]
<li class="disabled"><a data-toggle="tooltip" data-placement="left" title="Patron is an adult" id="updatechild" href="#">Update child to adult patron</a></li>
finesview => 1,
total => sprintf("%.2f",$total),
totalcredit => $totalcredit,
- is_child => ($patron->category->category_type eq 'C'),
reverse_col => $reverse_col,
accounts => $accts,
);
$template->param(
finesview => 1,
- is_child => ($patron->category->category_type eq 'C'), # FIXME is_child should be a Koha::Patron method
);
output_html_with_http_headers $input, $cookie, $template->output;
}
$template->param(
patron => $patron,
finesview => 1,
- is_child => ($patron->category->category_type eq 'C'),
);
output_html_with_http_headers $input, $cookie, $template->output;
}
$template->param(
patron => $patron,
loop => \@loop,
- is_child => ( $category_type eq 'C' ),
csrf_token =>
Koha::Token->new->generate_csrf( { session_id => scalar $input->cookie('CGISESSID'), } ),
);
$template->param(
patron => $patron,
destination => $destination,
- is_child => ( $category_type eq 'C' ),
csrf_token => Koha::Token->new->generate_csrf({ session_id => scalar $input->cookie('CGISESSID'), }),
);
totaldue_raw => $total,
overdues_exist => $overdues_exist,
StaffMember => $category_type eq 'S',
- is_child => $category_type eq 'C',
$category_type => 1, # [% IF ( I ) %] = institutional/organisation
samebranch => $samebranch,
quickslip => $quickslip,
finesview => 1,
total => sprintf("%.2f",$total),
totalcredit => $totalcredit,
- is_child => ($category->category_type eq 'C'),
accounts => \@accountrows );
output_html_with_http_headers $input, $cookie, $template->output;
finesview => 1,
total => sprintf( "%.2f", $total ),
totalcredit => $totalcredit,
- is_child => ( $category->category_type eq 'C' ),
accounts => \@accountrows
);
$template->param(
patron => $patron,
readingrecordview => 1,
- is_child => ( $category->category_type eq 'C' ),
loop_reading => $issues,
);
output_html_with_http_headers $input, $cookie, $template->output;