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

(-)a/circ/circulation.pl (-1 lines)
Lines 606-612 if ( $patron ) { Link Here
606
        patron            => $patron,
606
        patron            => $patron,
607
        categoryname      => $patron->category->description,
607
        categoryname      => $patron->category->description,
608
        expiry            => $patron->dateexpiry,
608
        expiry            => $patron->dateexpiry,
609
        is_child          => ( $patron->category->category_type eq 'C' ),
610
    );
609
    );
611
}
610
}
612
611
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-3 / +3 lines)
Lines 34-40 $(document).ready(function(){ Link Here
34
            $(".btn-group").removeClass("open");
34
            $(".btn-group").removeClass("open");
35
            return false;
35
            return false;
36
        });
36
        });
37
        [% IF ( is_child ) %]$("#updatechild").click(function(){
37
        [% IF ( patron.is_child ) %]$("#updatechild").click(function(){
38
            update_child();
38
            update_child();
39
            $(".btn-group").removeClass("open");
39
            $(".btn-group").removeClass("open");
40
        });[% END %]
40
        });[% END %]
Lines 92-98 function confirm_both_deletion() { Link Here
92
    }
92
    }
93
}
93
}
94
94
95
[% IF ( is_child ) %]function confirm_updatechild() {
95
[% IF ( patron.is_child ) %]function confirm_updatechild() {
96
    var is_confirmed = window.confirm(_("Are you sure you want to update this child to an Adult category?  This cannot be undone."));
96
    var is_confirmed = window.confirm(_("Are you sure you want to update this child to an Adult category?  This cannot be undone."));
97
    if (is_confirmed) {
97
    if (is_confirmed) {
98
        window.location='/cgi-bin/koha/members/update-child.pl?op=update&borrowernumber=[% patron.borrowernumber %]&catcode=[% catcode %]&catcode_multi=[% CATCODE_MULTI %]';
98
        window.location='/cgi-bin/koha/members/update-child.pl?op=update&borrowernumber=[% patron.borrowernumber %]&catcode=[% catcode %]&catcode_multi=[% CATCODE_MULTI %]';
Lines 197-203 function searchToHold(){ Link Here
197
                [% ELSE %]
197
                [% ELSE %]
198
                    <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to delete patrons" id="deletepatron" href="#">Delete</a></li>
198
                    <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to delete patrons" id="deletepatron" href="#">Delete</a></li>
199
                [% END %]
199
                [% END %]
200
                [% IF ( is_child ) %]
200
                [% IF ( patron.is_child ) %]
201
                    <li><a id="updatechild" href="#">Update child to adult patron</a></li>
201
                    <li><a id="updatechild" href="#">Update child to adult patron</a></li>
202
                [% ELSE %]
202
                [% ELSE %]
203
                    <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></li>
203
                    <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></li>
(-)a/members/boraccount.pl (-1 lines)
Lines 108-114 $template->param( Link Here
108
    finesview           => 1,
108
    finesview           => 1,
109
    total               => sprintf("%.2f",$total),
109
    total               => sprintf("%.2f",$total),
110
    totalcredit         => $totalcredit,
110
    totalcredit         => $totalcredit,
111
    is_child            => ($patron->category->category_type eq 'C'),
112
    reverse_col         => $reverse_col,
111
    reverse_col         => $reverse_col,
113
    accounts            => $accts,
112
    accounts            => $accts,
114
    RoutingSerials => C4::Context->preference('RoutingSerials'),
113
    RoutingSerials => C4::Context->preference('RoutingSerials'),
(-)a/members/mancredit.pl (-1 lines)
Lines 96-102 if ($add){ Link Here
96
96
97
    $template->param(
97
    $template->param(
98
        finesview      => 1,
98
        finesview      => 1,
99
        is_child       => ($patron->category->category_type eq 'C'), # FIXME is_child should be a Koha::Patron method
100
        RoutingSerials => C4::Context->preference('RoutingSerials'),
99
        RoutingSerials => C4::Context->preference('RoutingSerials'),
101
        );
100
        );
102
    output_html_with_http_headers $input, $cookie, $template->output;
101
    output_html_with_http_headers $input, $cookie, $template->output;
(-)a/members/maninvoice.pl (-1 lines)
Lines 122-128 if ($add){ Link Here
122
    $template->param(
122
    $template->param(
123
        patron         => $patron,
123
        patron         => $patron,
124
        finesview      => 1,
124
        finesview      => 1,
125
        is_child       => ($patron->category->category_type eq 'C'),
126
        RoutingSerials => C4::Context->preference('RoutingSerials'),
125
        RoutingSerials => C4::Context->preference('RoutingSerials'),
127
    );
126
    );
128
    output_html_with_http_headers $input, $cookie, $template->output;
127
    output_html_with_http_headers $input, $cookie, $template->output;
(-)a/members/member-flags.pl (-1 lines)
Lines 196-202 if (C4::Context->preference('ExtendedPatronAttributes')) { Link Here
196
$template->param(
196
$template->param(
197
    patron => $patron,
197
    patron => $patron,
198
		loop => \@loop,
198
		loop => \@loop,
199
		is_child        => ($category_type eq 'C'),
200
        RoutingSerials => C4::Context->preference('RoutingSerials'),
199
        RoutingSerials => C4::Context->preference('RoutingSerials'),
201
        csrf_token => Koha::Token->new->generate_csrf( { session_id => scalar $input->cookie('CGISESSID'), } ),
200
        csrf_token => Koha::Token->new->generate_csrf( { session_id => scalar $input->cookie('CGISESSID'), } ),
202
		);
201
		);
(-)a/members/member-password.pl (-1 lines)
Lines 120-126 if ( C4::Context->preference('ExtendedPatronAttributes') ) { Link Here
120
$template->param(
120
$template->param(
121
    patron                     => $patron,
121
    patron                     => $patron,
122
    destination                => $destination,
122
    destination                => $destination,
123
    is_child                   => ( $category_type eq 'C' ),
124
    minPasswordLength          => $minpw,
123
    minPasswordLength          => $minpw,
125
    RoutingSerials             => C4::Context->preference('RoutingSerials'),
124
    RoutingSerials             => C4::Context->preference('RoutingSerials'),
126
    csrf_token                 => Koha::Token->new->generate_csrf({ session_id => scalar $input->cookie('CGISESSID'), }),
125
    csrf_token                 => Koha::Token->new->generate_csrf({ session_id => scalar $input->cookie('CGISESSID'), }),
(-)a/members/moremember.pl (-1 lines)
Lines 342-348 $template->param( Link Here
342
    totaldue_raw    => $total,
342
    totaldue_raw    => $total,
343
    overdues_exist  => $overdues_exist,
343
    overdues_exist  => $overdues_exist,
344
    StaffMember     => $category_type eq 'S',
344
    StaffMember     => $category_type eq 'S',
345
    is_child        => $category_type eq 'C',
346
    samebranch      => $samebranch,
345
    samebranch      => $samebranch,
347
    quickslip       => $quickslip,
346
    quickslip       => $quickslip,
348
    housebound_role => scalar $patron->housebound_role,
347
    housebound_role => scalar $patron->housebound_role,
(-)a/members/printfeercpt.pl (-1 lines)
Lines 122-128 $template->param( Link Here
122
    finesview           => 1,
122
    finesview           => 1,
123
    total               => sprintf("%.2f",$total),
123
    total               => sprintf("%.2f",$total),
124
    totalcredit         => $totalcredit,
124
    totalcredit         => $totalcredit,
125
    is_child            => ($category->category_type eq 'C'),
126
    accounts            => \@accountrows );
125
    accounts            => \@accountrows );
127
126
128
output_html_with_http_headers $input, $cookie, $template->output;
127
output_html_with_http_headers $input, $cookie, $template->output;
(-)a/members/printinvoice.pl (-1 lines)
Lines 122-128 $template->param( Link Here
122
    finesview      => 1,
122
    finesview      => 1,
123
    total          => sprintf( "%.2f", $total ),
123
    total          => sprintf( "%.2f", $total ),
124
    totalcredit    => $totalcredit,
124
    totalcredit    => $totalcredit,
125
    is_child       => ( $category->category_type eq 'C' ),
126
    accounts       => \@accountrows
125
    accounts       => \@accountrows
127
);
126
);
128
127
(-)a/members/readingrec.pl (-2 lines)
Lines 116-122 if (C4::Context->preference('ExtendedPatronAttributes')) { Link Here
116
$template->param(
116
$template->param(
117
    patron            => $patron,
117
    patron            => $patron,
118
    readingrecordview => 1,
118
    readingrecordview => 1,
119
    is_child          => ( $category->category_type eq 'C' ),
120
    loop_reading      => $issues,
119
    loop_reading      => $issues,
121
    RoutingSerials => C4::Context->preference('RoutingSerials'),
120
    RoutingSerials => C4::Context->preference('RoutingSerials'),
122
);
121
);
123
- 

Return to bug 18789