View | Details | Raw Unified | Return to bug 18789
Collapse All | Expand All

(-)a/circ/circulation.pl (-1 lines)
Lines 618-624 if ( $patron ) { Link Here
618
        patron            => $patron,
618
        patron            => $patron,
619
        categoryname      => $patron->category->description,
619
        categoryname      => $patron->category->description,
620
        expiry            => $patron->dateexpiry,
620
        expiry            => $patron->dateexpiry,
621
        is_child          => ( $patron->category->category_type eq 'C' ),
622
    );
621
    );
623
}
622
}
624
623
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-1 / +1 lines)
Lines 69-75 Link Here
69
                [% ELSE %]
69
                [% ELSE %]
70
                    <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to delete patrons" id="deletepatron" href="#">Delete</a></li>
70
                    <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to delete patrons" id="deletepatron" href="#">Delete</a></li>
71
                [% END %]
71
                [% END %]
72
                [% IF ( is_child ) %]
72
                [% IF ( patron.is_child ) %]
73
                    <li><a id="updatechild" href="#">Update child to adult patron</a></li>
73
                    <li><a id="updatechild" href="#">Update child to adult patron</a></li>
74
                [% ELSE %]
74
                [% ELSE %]
75
                    <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>
75
                    <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>
(-)a/members/boraccount.pl (-1 lines)
Lines 111-117 $template->param( Link Here
111
    finesview           => 1,
111
    finesview           => 1,
112
    total               => sprintf("%.2f",$total),
112
    total               => sprintf("%.2f",$total),
113
    totalcredit         => $totalcredit,
113
    totalcredit         => $totalcredit,
114
    is_child            => ($patron->category->category_type eq 'C'),
115
    reverse_col         => $reverse_col,
114
    reverse_col         => $reverse_col,
116
    accounts            => $accts,
115
    accounts            => $accts,
117
);
116
);
(-)a/members/mancredit.pl (-1 lines)
Lines 99-105 if ($add){ Link Here
99
99
100
    $template->param(
100
    $template->param(
101
        finesview      => 1,
101
        finesview      => 1,
102
        is_child       => ($patron->category->category_type eq 'C'), # FIXME is_child should be a Koha::Patron method
103
        );
102
        );
104
    output_html_with_http_headers $input, $cookie, $template->output;
103
    output_html_with_http_headers $input, $cookie, $template->output;
105
}
104
}
(-)a/members/maninvoice.pl (-1 lines)
Lines 126-132 if ($add){ Link Here
126
    $template->param(
126
    $template->param(
127
        patron         => $patron,
127
        patron         => $patron,
128
        finesview      => 1,
128
        finesview      => 1,
129
        is_child       => ($patron->category->category_type eq 'C'),
130
    );
129
    );
131
    output_html_with_http_headers $input, $cookie, $template->output;
130
    output_html_with_http_headers $input, $cookie, $template->output;
132
}
131
}
(-)a/members/member-flags.pl (-1 lines)
Lines 200-206 if (C4::Context->preference('ExtendedPatronAttributes')) { Link Here
200
$template->param(
200
$template->param(
201
    patron         => $patron,
201
    patron         => $patron,
202
    loop           => \@loop,
202
    loop           => \@loop,
203
    is_child       => ( $category_type eq 'C' ),
204
    csrf_token =>
203
    csrf_token =>
205
        Koha::Token->new->generate_csrf( { session_id => scalar $input->cookie('CGISESSID'), } ),
204
        Koha::Token->new->generate_csrf( { session_id => scalar $input->cookie('CGISESSID'), } ),
206
);
205
);
(-)a/members/member-password.pl (-1 lines)
Lines 114-120 if ( C4::Context->preference('ExtendedPatronAttributes') ) { Link Here
114
$template->param(
114
$template->param(
115
    patron                     => $patron,
115
    patron                     => $patron,
116
    destination                => $destination,
116
    destination                => $destination,
117
    is_child                   => ( $category_type eq 'C' ),
118
    csrf_token                 => Koha::Token->new->generate_csrf({ session_id => scalar $input->cookie('CGISESSID'), }),
117
    csrf_token                 => Koha::Token->new->generate_csrf({ session_id => scalar $input->cookie('CGISESSID'), }),
119
);
118
);
120
119
(-)a/members/moremember.pl (-1 lines)
Lines 353-359 $template->param( Link Here
353
    totaldue_raw    => $total,
353
    totaldue_raw    => $total,
354
    overdues_exist  => $overdues_exist,
354
    overdues_exist  => $overdues_exist,
355
    StaffMember     => $category_type eq 'S',
355
    StaffMember     => $category_type eq 'S',
356
    is_child        => $category_type eq 'C',
357
    $category_type  => 1, # [% IF ( I ) %] = institutional/organisation
356
    $category_type  => 1, # [% IF ( I ) %] = institutional/organisation
358
    samebranch      => $samebranch,
357
    samebranch      => $samebranch,
359
    quickslip       => $quickslip,
358
    quickslip       => $quickslip,
(-)a/members/printfeercpt.pl (-1 lines)
Lines 121-127 $template->param( Link Here
121
    finesview           => 1,
121
    finesview           => 1,
122
    total               => sprintf("%.2f",$total),
122
    total               => sprintf("%.2f",$total),
123
    totalcredit         => $totalcredit,
123
    totalcredit         => $totalcredit,
124
    is_child            => ($category->category_type eq 'C'),
125
    accounts            => \@accountrows );
124
    accounts            => \@accountrows );
126
125
127
output_html_with_http_headers $input, $cookie, $template->output;
126
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/members/printinvoice.pl (-1 lines)
Lines 121-127 $template->param( Link Here
121
    finesview      => 1,
121
    finesview      => 1,
122
    total          => sprintf( "%.2f", $total ),
122
    total          => sprintf( "%.2f", $total ),
123
    totalcredit    => $totalcredit,
123
    totalcredit    => $totalcredit,
124
    is_child       => ( $category->category_type eq 'C' ),
125
    accounts       => \@accountrows
124
    accounts       => \@accountrows
126
);
125
);
127
126
(-)a/members/readingrec.pl (-2 lines)
Lines 115-121 if (C4::Context->preference('ExtendedPatronAttributes')) { Link Here
115
$template->param(
115
$template->param(
116
    patron            => $patron,
116
    patron            => $patron,
117
    readingrecordview => 1,
117
    readingrecordview => 1,
118
    is_child          => ( $category->category_type eq 'C' ),
119
    loop_reading      => $issues,
118
    loop_reading      => $issues,
120
);
119
);
121
output_html_with_http_headers $input, $cookie, $template->output;
120
output_html_with_http_headers $input, $cookie, $template->output;
122
- 

Return to bug 18789