@@ -, +, @@ --- circ/circulation.pl | 1 - koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc | 2 +- members/boraccount.pl | 1 - members/mancredit.pl | 1 - members/maninvoice.pl | 1 - members/member-flags.pl | 1 - members/member-password.pl | 1 - members/moremember.pl | 1 - members/printfeercpt.pl | 1 - members/printinvoice.pl | 1 - members/readingrec.pl | 1 - 11 files changed, 1 insertion(+), 11 deletions(-) --- a/circ/circulation.pl +++ a/circ/circulation.pl @@ -618,7 +618,6 @@ if ( $patron ) { patron => $patron, categoryname => $patron->category->description, expiry => $patron->dateexpiry, - is_child => ( $patron->category->category_type eq 'C' ), ); } --- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc +++ a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc @@ -69,7 +69,7 @@ [% ELSE %]
  • Delete
  • [% END %] - [% IF ( is_child ) %] + [% IF ( patron.is_child ) %]
  • Update child to adult patron
  • [% ELSE %]
  • Update child to adult patron
  • --- a/members/boraccount.pl +++ a/members/boraccount.pl @@ -111,7 +111,6 @@ $template->param( finesview => 1, total => sprintf("%.2f",$total), totalcredit => $totalcredit, - is_child => ($patron->category->category_type eq 'C'), reverse_col => $reverse_col, accounts => $accts, ); --- a/members/mancredit.pl +++ a/members/mancredit.pl @@ -99,7 +99,6 @@ if ($add){ $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; } --- a/members/maninvoice.pl +++ a/members/maninvoice.pl @@ -126,7 +126,6 @@ if ($add){ $template->param( patron => $patron, finesview => 1, - is_child => ($patron->category->category_type eq 'C'), ); output_html_with_http_headers $input, $cookie, $template->output; } --- a/members/member-flags.pl +++ a/members/member-flags.pl @@ -200,7 +200,6 @@ if (C4::Context->preference('ExtendedPatronAttributes')) { $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'), } ), ); --- a/members/member-password.pl +++ a/members/member-password.pl @@ -114,7 +114,6 @@ if ( C4::Context->preference('ExtendedPatronAttributes') ) { $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'), }), ); --- a/members/moremember.pl +++ a/members/moremember.pl @@ -353,7 +353,6 @@ $template->param( 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, --- a/members/printfeercpt.pl +++ a/members/printfeercpt.pl @@ -121,7 +121,6 @@ $template->param( 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; --- a/members/printinvoice.pl +++ a/members/printinvoice.pl @@ -121,7 +121,6 @@ $template->param( finesview => 1, total => sprintf( "%.2f", $total ), totalcredit => $totalcredit, - is_child => ( $category->category_type eq 'C' ), accounts => \@accountrows ); --- a/members/readingrec.pl +++ a/members/readingrec.pl @@ -115,7 +115,6 @@ if (C4::Context->preference('ExtendedPatronAttributes')) { $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; --