@@ -, +, @@
message on the checkouts table
---
koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc | 1 +
koha-tmpl/intranet-tmpl/prog/js/checkouts.js | 7 +++++++
t/db_dependent/Circulation.t | 2 +-
3 files changed, 9 insertions(+), 1 deletion(-)
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc
+++ a/koha-tmpl/intranet-tmpl/prog/en/includes/strings.inc
@@ -17,6 +17,7 @@
var NOT_RENEWABLE = _("Not renewable");
var NOT_RENEWABLE_TOO_SOON = _("No renewal before %s");
var NOT_RENEWABLE_AUTO_TOO_SOON = _("Scheduled for automatic renewal");
+ var NOT_RENEWABLE_AUTO_TOO_LATE = _("Scheduled for automatic renewal");
var NOT_RENEWABLE_AUTO_RENEW = _("Scheduled for automatic renewal");
var RENEWALS_REMAINING = _("%s of %s renewals remaining");
var HOLD_IS_SUSPENDED = _("Hold is suspended");
--- a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js
+++ a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js
@@ -353,6 +353,13 @@ $(document).ready(function() {
span_style = "display: none";
span_class = "renewals-allowed";
+ } else if ( oObj.can_renew_error == "auto_too_late" ) {
+ content += ""
+ + NOT_RENEWABLE_AUTO_TOO_LATE
+ + "";
+
+ span_style = "display: none";
+ span_class = "renewals-allowed";
} else if ( oObj.can_renew_error == "auto_renew" ) {
content += ""
+ NOT_RENEWABLE_AUTO_RENEW
--- a/t/db_dependent/Circulation.t
+++ a/t/db_dependent/Circulation.t
@@ -17,7 +17,7 @@
use Modern::Perl;
-use Test::More tests => 89;
+use Test::More tests => 90;
BEGIN {
require_ok('C4::Circulation');
--