From 7477cbc2977a9c50e0e766df59131fdfaeb7d2e9 Mon Sep 17 00:00:00 2001
From: Jonathan Druart <jonathan.druart@biblibre.com>
Date: Mon, 8 Dec 2014 07:39:35 -0500
Subject: [PATCH] Bug 13408: Tell librarians they may continue scanning while
 checkouts table is loading

Some librarians do not realize they can continue scanning items even if
the checkouts table has not loaded. We should have Koha tell them
explicitly that they may continue scanning barcodes.

Test Plan:
1) Apply this patch
2) Load the checkouts table on circulation.pl, note the loading message is now
   Loading... you may continue scanning.
3) Load the checkouts table on moremember.pl, note the loading message is still
   Loading...

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

This one works too!

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
(cherry picked from commit 28513edb943c255b191c94e0fbc0fe14368e6985)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
---
 koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js             | 1 +
 koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt | 1 +
 2 files changed, 2 insertions(+)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js
index a135496068..684b63cf0e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js
+++ b/koha-tmpl/intranet-tmpl/prog/en/js/checkouts.js
@@ -159,6 +159,7 @@ $(document).ready(function() {
         issuesTable = $("#issues-table").dataTable({
             "oLanguage": {
                 "sEmptyTable" : MSG_DT_LOADING_RECORDS,
+                "sProcessing": MSG_DT_LOADING_RECORDS,
             },
             "bAutoWidth": false,
             "sDom": "rt",
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
index b938724bcd..e557fb1448 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
@@ -28,6 +28,7 @@
 <script type="text/javascript">
 //<![CDATA[
 /* Set some variable needed in circulation.js */
+var MSG_DT_LOADING_RECORDS = _("Loading... you may continue scanning.");
 var interface = "[% interface %]";
 var theme = "[% theme %]";
 var borrowernumber = "[% borrowernumber %]";
-- 
2.39.5