Bug 15492: Display nicer message on data corruption
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 27 Dec 2017 15:45:16 +0000 (12:45 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 26 Mar 2018 20:31:19 +0000 (17:31 -0300)
This patch hides scary messages and changes the wording for a more
idiomatic approach. Thanks to Nick :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt

index 043e673..80b950f 100644 (file)
@@ -4,15 +4,15 @@
 [%# Helper template functions %]
 [% BLOCK error_message %]
     [% IF messages.BadBarcode %]
-        <span>(Barcode not found on the database)</span>
-    [% ELSIF messages.DataCorrupted %]
-        <span>(Data corruption detected. Contact your librarian)</span>
+        <span>(Barcode not found on the database, please see library staff for assistance)</span>
     [% ELSIF messages.Wrongbranch %]
-        <span>(The item cannot be returned at this library)</span>
+        <span>(The item cannot be returned at this library, please see library staff for assistance)</span>
     [% ELSIF messages.withdrawn %]
-        <span>(Item is withdrawn and check-in blocked by policy. Contact your librarian)</span>
+        <span>(Item is withdrawn and check-in blocked by policy, please see library staff for assistance)</span>
     [% ELSIF messages.NotIssued %]
-        <span>(The book is not currently on loan. Contact your librarian)</span>
+        <span>(The book is not currently on loan, please see library staff for assistance)</span>
+    [% ELSE %]
+        <span>(There was a problem returning this item, please see library staff for assistance)</span>
     [% END %]
 [% END %]