LP1858118 Hatch enabled check repairs
authorBill Erickson <berickxx@gmail.com>
Tue, 12 Nov 2019 20:13:39 +0000 (15:13 -0500)
committerDan Scott <dan@coffeecode.net>
Thu, 2 Jan 2020 18:27:17 +0000 (13:27 -0500)
commit4907d69c0b30b691ed5574c28ae11b814464f446
treeb23447e9e3e30a19bd9077f7f33c92d67f44b55e
parenta75c0feb2a220faf8be70d1650a3e9aee5d33e34
LP1858118 Hatch enabled check repairs

Teach code asking Hatch whether printing is enabled to properly handle
the asynchronous response of the setting which now exists as a
workstation setting instead of a localStorage setting.

Related, if Hatch is unavailable, use browser printing regardless of the
hatch printing workstation setting.

Additionally update the "reprint last" handling to store the
last_printed value in localStorage instead of attempting to save its
value as a workstation setting.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/web/js/ui/default/staff/circ/checkin/app.js
Open-ILS/web/js/ui/default/staff/circ/patron/checkout.js
Open-ILS/web/js/ui/default/staff/services/hatch.js
Open-ILS/web/js/ui/default/staff/services/print.js