@@ -, +, @@
process
written and translatable on the following page :
- opac patron home page (opac-user.tt);
- opac item reservation page (opac-reserve.tt);
- pro patron page (moremember.tt);
- reservation item for a patron (circulation.tt, memberentrygen.tt);
---
.../intranet-tmpl/prog/en/includes/borrower_debarments.inc | 8 +++++++-
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 7 ++++++-
.../intranet-tmpl/prog/en/modules/members/memberentrygen.tt | 8 +++++++-
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt | 7 ++++++-
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt | 10 +++++++++-
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 11 ++++++++++-
misc/cronjobs/overdue_notices.pl | 3 +--
7 files changed, 46 insertions(+), 8 deletions(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc
@@ -56,7 +56,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 %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
@@ -747,7 +747,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 %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt
@@ -891,7 +891,13 @@ $(document).ready(function() {
[% 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 %]
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
+++ a/koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt
@@ -189,7 +189,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
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-reserve.tt
@@ -41,7 +41,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
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt
@@ -91,7 +91,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 %].
--- a/misc/cronjobs/overdue_notices.pl
+++ a/misc/cronjobs/overdue_notices.pl
@@ -598,8 +598,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";
--
| |