LP1825891 Use Hatch 'hostname' for workstation reg. user/berick/lp1825891-hatch-workstation-hostname user/berick/lp1825896-hatch-workstations-hostname
authorBill Erickson <berickxx@gmail.com>
Mon, 22 Apr 2019 21:02:05 +0000 (14:02 -0700)
committerBill Erickson <berickxx@gmail.com>
Wed, 1 May 2019 15:32:25 +0000 (11:32 -0400)
commit61a71d1844d83c3ad488fc2d3846ae3823b3d6ee
tree8d0876e580d2558d90488d90eaa5a01388f231a3
parentf5c6d937224b720628f25adbdc71a648ca7a70a9
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