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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/tools-menu.inc (+3 lines)
Lines 15-20 Link Here
15
            [% IF (CAN_user_clubs) %]
15
            [% IF (CAN_user_clubs) %]
16
                <li><a href="/cgi-bin/koha/clubs/clubs.pl">Patron clubs</a></li>
16
                <li><a href="/cgi-bin/koha/clubs/clubs.pl">Patron clubs</a></li>
17
            [% END %]
17
            [% END %]
18
            [% IF ( CAN_user_tools_restore_deleted_borrowers && Koha.Preference('AllowDeletedPatronRestoration') ) %]
19
                <li><a href="/cgi-bin/koha/tools/restore_deleted_borrowers.pl">Restore deleted patrons</a></li>
20
            [% END %]
18
            [% IF ( CAN_user_tools_moderate_comments ) %]
21
            [% IF ( CAN_user_tools_moderate_comments ) %]
19
                <li><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments</a></li>
22
                <li><a href="/cgi-bin/koha/reviews/reviewswaiting.pl">Comments</a></li>
20
            [% END %]
23
            [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/deletemem.tt (-1 lines)
Lines 69-75 Link Here
69
                </ul>
69
                </ul>
70
            [% END %]
70
            [% END %]
71
            <h1>Are you sure you want to delete the patron [% patron.firstname | html %] [% patron.surname | html %]?</h1>
71
            <h1>Are you sure you want to delete the patron [% patron.firstname | html %] [% patron.surname | html %]?</h1>
72
            <p>This cannot be undone.</p>
73
            <form method="post" action="/cgi-bin/koha/members/deletemem.pl">
72
            <form method="post" action="/cgi-bin/koha/members/deletemem.pl">
74
                [% INCLUDE 'csrf-token.inc' %]
73
                [% INCLUDE 'csrf-token.inc' %]
75
                <input type="hidden" name="member" value="[% patron.borrowernumber | html %]" />
74
                <input type="hidden" name="member" value="[% patron.borrowernumber | html %]" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/restore_deleted_borrowers.tt (-5 / +5 lines)
Lines 195-202 Link Here
195
                                                <td>[% patron.borrowernumber | html %]</td>
195
                                                <td>[% patron.borrowernumber | html %]</td>
196
                                                <td>[% patron.surname | html %]</td>
196
                                                <td>[% patron.surname | html %]</td>
197
                                                <td>[% patron.firstname | html %]</td>
197
                                                <td>[% patron.firstname | html %]</td>
198
                                                <td>[% patron.category.description | html %]</td>
198
                                                <td>[% Categories.GetName( patron.categorycode ) | html %]</td>
199
                                                <td>[% patron.library.branchname | html %]</td>
199
                                                <td>[% Branches.GetName( patron.branchcode ) | html %]</td>
200
                                                <td>[% patron.updated_on | $KohaDates %]</td>
200
                                                <td>[% patron.updated_on | $KohaDates %]</td>
201
                                            </tr>
201
                                            </tr>
202
                                        [% END %]
202
                                        [% END %]
Lines 240-249 Link Here
240
                                            <td>[% patron.cardnumber | html %]</td>
240
                                            <td>[% patron.cardnumber | html %]</td>
241
                                            <td>[% patron.borrowernumber | html %]</td>
241
                                            <td>[% patron.borrowernumber | html %]</td>
242
                                            <td>[% patron.firstname | html %] [% patron.surname | html %]</td>
242
                                            <td>[% patron.firstname | html %] [% patron.surname | html %]</td>
243
                                            <td>[% patron.category.description | html %]</td>
243
                                            <td>[% Categories.GetName( patron.categorycode ) | html %]</td>
244
                                            <td>[% patron.library.branchname | html %]</td>
244
                                            <td>[% Branches.GetName( patron.branchcode ) | html %]</td>
245
                                            <td>
245
                                            <td>
246
                                                <a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-default btn-xs"> <i class="fa fa-user"></i> View patron </a>
246
                                                <a target="_blank" href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% patron.borrowernumber | uri %]" class="btn btn-default btn-xs"> <i class="fa fa-user"></i> View patron </a>
247
                                            </td>
247
                                            </td>
248
                                        </tr>
248
                                        </tr>
249
                                    [% END %]
249
                                    [% END %]
(-)a/tools/restore_deleted_borrowers.pl (-1 / +3 lines)
Lines 136-141 if ( $op eq 'search' ) { Link Here
136
                email          => $patron->email,
136
                email          => $patron->email,
137
                branchcode     => $patron->branchcode,
137
                branchcode     => $patron->branchcode,
138
                updated_on     => $patron->updated_on,
138
                updated_on     => $patron->updated_on,
139
                categorycode   => $patron->categorycode,
139
            };
140
            };
140
141
141
            push @deleted_patrons, $patron_data;
142
            push @deleted_patrons, $patron_data;
Lines 181-186 if ( $op eq 'search' ) { Link Here
181
                cardnumber     => $restored_patron->cardnumber,
182
                cardnumber     => $restored_patron->cardnumber,
182
                firstname      => $restored_patron->firstname,
183
                firstname      => $restored_patron->firstname,
183
                surname        => $restored_patron->surname,
184
                surname        => $restored_patron->surname,
185
                branchcode     => $restored_patron->branchcode,
186
                categorycode   => $restored_patron->categorycode,
184
            };
187
            };
185
        } catch {
188
        } catch {
186
            push @errors, "Error restoring borrower $borrowernumber: $_";
189
            push @errors, "Error restoring borrower $borrowernumber: $_";
187
- 

Return to bug 34069