JBAS-1728 SCKO Renew failure hides count
authorBill Erickson <berickxx@gmail.com>
Wed, 15 Nov 2017 17:56:13 +0000 (12:56 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 21 Mar 2019 19:46:23 +0000 (15:46 -0400)
Avoid showing the count of failed renewals.  Show instead a generic
"Some items failed to renew" message.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/dojo/openils/circ/nls/selfcheck.js
Open-ILS/web/js/ui/kcls/circ/selfcheck/selfcheck.js

index d394b58..0a9f2f1 100644 (file)
@@ -12,7 +12,7 @@
     "OPEN_CIRCULATION_EXISTS" : "Item ${0} is already checked out to another user",
     "GENERIC_CIRC_FAILURE" : "Unable to process some items. Please see staff.",
     "BATCH_RENEW_SUCCESS" : "Successfully renewed ${0} items",
-    "BATCH_RENEW_FAILURE" : "Failed to renew ${0} item(s).  Please see staff.",
+    "BATCH_RENEW_FAILURE" : "Some items failed to renew.  Please see staff.",
     "LOGIN_FAILED" : "Login for ${0} failed",
     "LOGIN_BARCODE_DOUBLE" : "Your PIN is needed.",
     "UNKNOWN_ERROR" : "An unhandled exception occurred with error code ${0}",
index 76581c7..22cbbc9 100644 (file)
@@ -750,8 +750,7 @@ SelfCheckManager.prototype.renewItems = function() {
     var sound = 'checkout-success';
 
     if (success_count < renew_count) {
-        msg = dojo.string.substitute(
-            localeStrings.BATCH_RENEW_FAILURE, [renew_count - success_count]);
+        msg = dojo.string.substitute(localeStrings.BATCH_RENEW_FAILURE);
         sound = 'checkout-failure';
     }