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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc (-1 / +7 lines)
Lines 51-57 Link Here
51
                                    Discharge
51
                                    Discharge
52
                            [% END %]
52
                            [% END %]
53
                        </td>
53
                        </td>
54
                        <td>[% d.comment %]</td>
54
                        <td>
55
			    [% IF d.comment.search('OVERDUES_PROCESS') %]
56
				Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') %] 
57
			    [% ELSE %]
58
				[% d.comment %]
59
			    [% END %]
60
			</td>
55
                        <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td>
61
                        <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td>
56
                        [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
62
                        [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
57
                            <td>
63
                            <td>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt (-1 / +6 lines)
Lines 187-193 function validate1(date) { Link Here
187
               [% END %]
187
               [% END %]
188
188
189
               [% IF ( debarredcomment ) %]
189
               [% IF ( debarredcomment ) %]
190
                   with the explanation: <i>[% debarredcomment | html_line_break %]</i>
190
                   with the explanation: <i>
191
                   [% IF debarredcomment.search('OVERDUES_PROCESS') %]
192
                       Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
193
                   [% ELSE %]
194
                       [% debarredcomment | html_line_break %]
195
                   [% END %]
191
               [% END %]
196
               [% END %]
192
                <a href="#reldebarments" onclick="$('#debarments-tab-link').click()">View restrictions</a>
197
                <a href="#reldebarments" onclick="$('#debarments-tab-link').click()">View restrictions</a>
193
            </li>
198
            </li>
(-)a/misc/cronjobs/overdue_notices.pl (-3 / +1 lines)
Lines 598-605 END_SQL Link Here
598
                        {
598
                        {
599
                            borrowernumber => $borrowernumber,
599
                            borrowernumber => $borrowernumber,
600
                            type           => 'OVERDUES',
600
                            type           => 'OVERDUES',
601
                            comment => "Restriction added by overdues process "
601
                            comment => "OVERDUES_PROCESS " .  output_pref( dt_from_string() ),
602
                              . output_pref( dt_from_string() ),
603
                        }
602
                        }
604
                    );
603
                    );
605
                    $verbose and warn "debarring $borr\n";
604
                    $verbose and warn "debarring $borr\n";
606
- 

Return to bug 12509