Bug 9878: Add consistentcy on restriction messages
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 9 Apr 2015 14:22:44 +0000 (16:22 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 27 Apr 2015 16:37:57 +0000 (13:37 -0300)
Between both pages circ/circulation.pl and members/moremember.pl, the
restriction messages should be the same.

Test plan:
1/ Add a non-unlimited restrictions to a patron
2/ Go on both pages and confirm the restriction message is the same.

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
koha-tmpl/intranet-tmpl/prog/en/modules/members/moremember.tt

index 9536a22..d25cdea 100644 (file)
@@ -172,8 +172,15 @@ function validate1(date) {
     <div id="circmessages" class="circmessage attention">
         <ul>
         [% IF ( userdebarred ) %]
-            <li class="blocker">Patron is restricted[% IF ( userdebarreddate ) %] until [% userdebarreddate%] [% IF (debarredcomment ) %]([% debarredcomment %])[% END %][% END %]
-            <a href="#reldebarments" onclick="$('#debarments-tab-link').click()">View restrictions</a>
+            <li class="blocker">Patron's account is restricted
+               [% IF ( userdebarreddate ) %]
+                   until [% userdebarreddate %]
+               [% END %]
+
+               [% IF ( debarredcomment ) %]
+                   with the explanation: <i>[% debarredcomment | html_line_break %]</i>
+               [% END %]
+                <a href="#reldebarments" onclick="$('#debarments-tab-link').click()">View restrictions</a>
             </li>
         [% END %]
         [% IF ( gonenoaddress ) %]<li class="blocker">Patron's address is in doubt.</li>[% END %]