LP1858118 Hatch enabled check repairs user/dbs/lp1858118-angjs-print-sans-hatch-signoff
authorBill Erickson <berickxx@gmail.com>
Tue, 12 Nov 2019 20:13:39 +0000 (15:13 -0500)
committerDan Scott <dan@coffeecode.net>
Fri, 3 Jan 2020 16:55:45 +0000 (11:55 -0500)
commit607b8db3b3ac3ee7cfd674835dc1ce881b1129ed
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>
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