From c74fcea7d451aa99f653d87d9493f8cf3585fbb2 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 3 Oct 2022 17:23:33 +0100 Subject: [PATCH] Bug 30979: Handle more failure cases --- .../opac-tmpl/bootstrap/js/modals/checkout.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/opac-tmpl/bootstrap/js/modals/checkout.js b/koha-tmpl/opac-tmpl/bootstrap/js/modals/checkout.js index 522f60b9ad..36692df79e 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/js/modals/checkout.js +++ b/koha-tmpl/opac-tmpl/bootstrap/js/modals/checkout.js @@ -24,7 +24,19 @@ $(document).ready(function() { result += _("Item will be renewed").format(data); } else if ( code == 'OTHER_CHARGES' ) { - result += _("Your account current has outstanding charges of '%s'").format(data); + result += _("Your account currently has outstanding charges of '%s'").format(data); + } + else if ( code == 'ISSUED_TO_ANOTHER' ) { + result += _("This item appears to be checked out to another patron, please return it to the desk"); + } + else if ( code == 'RESERVED' ) { + result += _("This item appears to be reserved for another patron, please return it to the desk"); + } + else if ( code == 'NOT_FOR_LOAN' ) { + result += _("This item is not normally for loan, please select another or ask at the desk"); + } + else if ( code == 'WTHDRAWN' ) } + result += _("This item is marked withdrawn, please select another or ask at the desk"); } else { result += _("Message code '%s' with data '%s'").format(code,data); -- 2.20.1