LP1858118 Hatch enabled check repairs
authorBill Erickson <berickxx@gmail.com>
Tue, 12 Nov 2019 20:13:39 +0000 (15:13 -0500)
committerGalen Charlton <gmc@equinoxinitiative.org>
Fri, 3 Jan 2020 18:38:25 +0000 (13:38 -0500)
commitaa9b7c4a07bb143c8a001e2c5a3e4ff84f4748d3
tree194d480647df5720f2724327102a19bc7ef9cd4d
parent2cd405314e31fdb6f2882b60b1224c47dce46d42
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>
Signed-off-by: Dan Scott <dan@coffeecode.net>
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
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