Bug 18349: Remove useless info in alert message
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 31 Mar 2017 16:25:13 +0000 (13:25 -0300)
committerJulian Maurice <julian.maurice@biblibre.com>
Fri, 21 Apr 2017 10:53:15 +0000 (12:53 +0200)
Empty tags should be removed, and message id
Note that not all error codes are covered here.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit b61f73c48832e0f10ca799aa49682da37f1f44a1)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
(cherry picked from commit fee024e18a0775c937671ca9c90e12a1992f1995)
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>

koha-tmpl/opac-tmpl/bootstrap/en/modules/sco/sco-main.tt

index 42d2508..d58e942 100644 (file)
 
                             <p>
                                 [% IF ( circ_error_UNKNOWN_BARCODE ) %]
-                                    <em>MESSAGE 1:</em> The system does not recognize this barcode.
+                                    The system does not recognize this barcode.
                                 [% ELSIF ( circ_error_max_loans_allowed ) %]
-                                    <em>MESSAGE 2:</em> You have checked out too many items and can't check out any more.
+                                    You have checked out too many items and can't check out any more.
                                 [% ELSIF ( circ_error_ISSUED_TO_ANOTHER ) %]
-                                <em>MESSAGE 3:</em> This item is checked out to someone else.
+                                    This item is checked out to someone else.
                                 [% ELSIF ( circ_error_NO_MORE_RENEWALS ) %]
-                                    <em>MESSAGE 4:</em> You cannot renew this item again.
+                                    You cannot renew this item again.
                                 [% ELSIF ( circ_error_NOT_FOR_LOAN ) %]
-                                    <em>MESSAGE 5:</em> This item is not for loan.
+                                    This item is not for loan.
                                 [% ELSIF ( circ_error_DEBT ) %]
-                                    <em>MESSAGE 6:</em> You owe the library [% amount %] and cannot check out.
+                                    You owe the library [% amount %] and cannot check out.
                                 [% ELSIF ( circ_error_WTHDRAWN ) %]
-                                    <em>MESSAGE 7:</em> This item has been withdrawn from the collection.
+                                    This item has been withdrawn from the collection.
                                 [% ELSIF ( circ_error_RESTRICTED ) %]
-                                    <em>MESSAGE 8:</em>
                                 [% ELSIF ( circ_error_RESERVED ) %]
-                                    <em>MESSAGE 9:</em> This item is on hold for another patron.
+                                    This item is on hold for another patron.
                                 [% ELSIF ( circ_error_ITEMNOTSAMEBRANCH ) %]
-                                    <em>MESSAGE 10:</em>
                                 [% ELSIF ( circ_error_EXPIRED ) %]
-                                    <em>MESSAGE 11:</em> Your account has expired.
+                                    Your account has expired.
                                 [% ELSIF ( circ_error_DEBARRED ) %]
-                                    <em>MESSAGE 12:</em> Your account has been suspended.
+                                    Your account has been suspended.
                                 [% ELSIF ( circ_error_CARD_LOST ) %]
-                                    <em>MESSAGE 13:</em> This card has been declared lost.
+                                    This card has been declared lost.
                                 [% ELSIF ( circ_error_GNA ) %]
-                                    <em>MESSAGE 14:</em>
                                 [% ELSIF ( circ_error_INVALID_DATE ) %]
-                                    <em>MESSAGE 15:</em>
-                                [% END # / IF circ_error_UNKNOWN_BARCODE %]
+                                [% END %]
                                 Please see a member of the library staff.
                             </p>