diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc
index aea088950d..d7177d4718 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc
@@ -51,7 +51,13 @@
Discharge
[% END %]
-
[% d.comment %] |
+
+ [% IF d.comment.search('OVERDUES_PROCESS') %]
+ Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') %]
+ [% ELSE %]
+ [% d.comment %]
+ [% END %]
+ |
[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] Indefinite [% END %] |
[% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
index 5d79863b01..a867d7642c 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
@@ -782,7 +782,12 @@ No patron matched [% message %]
[% END %]
[% IF ( debarredcomment ) %]
- with the explanation: [% debarredcomment | html_line_break %]
+ with the explanation:
+ [% IF debarredcomment.search('OVERDUES_PROCESS') %]
+ Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
+ [% ELSE %]
+ [% debarredcomment | html_line_break %]
+ [% END %]
[% END %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
index ebb11501ef..16317ccdbe 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
@@ -972,7 +972,13 @@
[% FOREACH d IN debarments %]
| [% d.type %] |
- [% d.comment %] |
+
+ [% IF d.comment.search('OVERDUES_PROCESS') %]
+ Restriction added by overdues process [% d.comment.remove('OVERDUES_PROCESS ') %]
+ [% ELSE %]
+ [% d.comment %]
+ [% END %]
+ |
[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] Indefinite [% END %] |
[% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
index 7b662b4614..c0c70deb9f 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
@@ -183,7 +183,12 @@ function validate1(date) {
[% END %]
[% IF ( debarredcomment ) %]
- with the explanation: [% debarredcomment | html_line_break %]
+ with the explanation:
+ [% IF debarredcomment.search('OVERDUES_PROCESS') %]
+ Restriction added by overdues process [% debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %]
+ [% ELSE %]
+ [% debarredcomment | html_line_break %]
+ [% END %]
[% END %]
View restrictions
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt
index 516ada50d9..b8a3aa262f 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt
@@ -40,7 +40,15 @@
[% IF ( debarred ) %]
Your account has been frozen.
- [% IF debarred_comment %] Comment: [% END %]
+ [% IF debarred_comment %] Comment:
+ [% END %]
+
[% IF debarred_date && debarred_date != '9999-12-31' %] End date: [% debarred_date | $KohaDates %][% END %]
Usually the reason for freezing an account is old overdues or damage fees. If shows your account to be clear, please contact the library. Go to your account page
diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
index 9fb7b52236..1f86b0d520 100644
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
@@ -89,7 +89,16 @@
[% IF ( userdebarred ) %]
- - Please note: Your account has been frozen[% IF ( BORROWER_INFO.userdebarreddate ) %] until [% BORROWER_INFO.userdebarreddate | $KohaDates %][% END %][% IF ( BORROWER_INFO.debarredcomment ) %] with the comment [% END %]. Usually the reason for freezing an account is old overdues or damage fees. If your account page shows your account to be clear, please contact the library.
+ - Please note: Your account has been frozen[% IF ( BORROWER_INFO.userdebarreddate ) %] until [% BORROWER_INFO.userdebarreddate | $KohaDates %][% END %]
+ [% IF ( BORROWER_INFO.debarredcomment ) %] with the comment
+
+ [% END %]. Usually the reason for freezing an account is old overdues or damage fees. If your account page shows your account to be clear, please contact the library.
[% END %]
[% IF ( BORROWER_INFO.gonenoaddress ) %]
- Please note: According to our records, we don't have up-to-date [% UNLESS OPACPatronDetails %]contact information[% ELSE %]contact information[% END %] on file. Please contact the library[% IF OPACPatronDetails %] or use the online update form to submit current information (Please note: there may be a delay in restoring your account if you submit online)[% END %].
diff --git a/misc/cronjobs/overdue_notices.pl b/misc/cronjobs/overdue_notices.pl
index d0974db819..ec4c6c154f 100755
--- a/misc/cronjobs/overdue_notices.pl
+++ b/misc/cronjobs/overdue_notices.pl
@@ -596,8 +596,7 @@ END_SQL
{
borrowernumber => $borrowernumber,
type => 'OVERDUES',
- comment => "Restriction added by overdues process "
- . output_pref( dt_from_string() ),
+ comment => "OVERDUES_PROCESS " . output_pref( dt_from_string() ),
}
);
$verbose and warn "debarring $borr\n";
| |