From bd43b4a732437217e0949773a54479b37cf15954 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Tue, 7 May 2024 14:55:34 +0000 Subject: [PATCH] Bug 31097: (follow-up) Restructure messages a bit This patch updates the patron restrictions markup and splits up some strings to (hopefully) improve the translation process. The patch also fixes a bug in a previous patch which prevented manual restrictions from being displayed if there was also a restriction added by overdue_notices.pl. Test that all three kinds of restrictions display correctly: - Restrictions added by overdue process - Manual restriction without an expiration date - Manual restriction with an expiration date --- .../bootstrap/en/modules/opac-user.tt | 50 +++++++++---------- 1 file changed, 23 insertions(+), 27 deletions(-) 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 8942e50a96..ed6eab9f04 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt @@ -166,37 +166,33 @@ Please note: Your account is frozen because it has been discharged. Get your discharge [% ELSE %] -
  • Please note: Your account has been frozen. - [% IF ( borrower.debarredcomment ) %] - Comment:
    - - - [% IF borrower.debarredcomment.search('OVERDUES_PROCESS') %] - Restriction added by overdues process [% borrower.debarredcomment.remove('OVERDUES_PROCESS ') | html_line_break %] - [% ELSE %] - [% FOR restriction IN logged_in_user.restrictions %] -
    - [%- restriction.type.display_text | html -%][%- IF restriction.comment -%]: [% restriction.comment | html_line_break %], frozen until: - - [%- IF restriction.expiration -%] - [%- restriction.expiration | $KohaDates -%] - [%- ELSE -%] - Indefinite +
  • + Please note: Your account has been frozen. + [% IF ( borrower.debarredcomment ) %] + Comment:
    +
    + [% END %] - Usually the reason for freezing an account is old overdues or damage fees. If your account shows to be clear, please contact the library. Go to your account page
  • +

    Usually the reason for freezing an account is old overdues or damage fees. If your account shows to be clear, please contact the library. Go to your account page

    + [% END %] [% END %] [% IF ( borrower.gonenoaddress ) %] -- 2.39.2