LP1825891 Use Hatch 'hostname' for workstation reg.
authorBill Erickson <berickxx@gmail.com>
Mon, 22 Apr 2019 21:02:05 +0000 (14:02 -0700)
committerBill Erickson <berickxx@gmail.com>
Tue, 28 May 2019 21:39:03 +0000 (21:39 +0000)
commit28092dbb7551feaa7abbd1c85f8d49c9f66e0521
treee69588f41d4d8e8b94991e4c1b156a0c23b1db64
parent3c0ac1ccdd93dd09d0ab91d8f0a0df5ebd12ceb5
LP1825891 Use Hatch 'hostname' for workstation reg.

Populate the workstation name with the hostname of the PC when
registring a new workstation for Hatch-enabled workstations.

Note the code gracefully returns null if Hatch returns a 404 (not found)
or Hatch is not active.

Updates the AngJS and Angular workstation admin pages to load the
hostname value when possible.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/src/eg2/src/app/core/hatch.service.ts
Open-ILS/src/eg2/src/app/staff/admin/workstation/workstations/workstations.component.ts
Open-ILS/web/js/ui/default/staff/admin/workstation/app.js
Open-ILS/web/js/ui/default/staff/services/hatch.js