LP1858118 Hatch enabled check repairs user/berick/lp1858118-angjs-print-sans-hatch
authorBill Erickson <berickxx@gmail.com>
Tue, 12 Nov 2019 20:13:39 +0000 (15:13 -0500)
committerBill Erickson <berickxx@gmail.com>
Thu, 2 Jan 2020 16:34:06 +0000 (11:34 -0500)
commitf8375fdd4b8d79864480d7695613fbeefc3c5272
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>
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