webstaff: Offline mode user/miker/webstaff-offline
authorMike Rylander <mrylander@gmail.com>
Mon, 20 Mar 2017 20:38:15 +0000 (16:38 -0400)
committerMike Rylander <mrylander@gmail.com>
Tue, 30 May 2017 15:03:24 +0000 (11:03 -0400)
commit3a6efa8f80659f60f10ecd894c316936c2a7902f
tree7276e91f3b5334369b11a84b67b5d569c17c4bd6
parentb7d2ca71c16b892104538902efd8c7e501229efd
webstaff: Offline mode

Here is implemented an offline mode interface for the web staff client.

It is made available during both network and server outages by using the
UpUp[1] service worker wrapper.

We leverage Lovefield[2] for local storage of library settings, configuration
data, offline transactions, and the standalone offline block list.

In order to make use of the offline interface, users should first log into
the web staff client and navigate to the "Search -> Search for Patrons"
interface, perform a search, select a user from the results, and open the
Patron Editor interface.  This will allow the offline interface to collect
all the relevant configuration information for the workstation.  In addition,
the offline interface available from the Circulation menu provides a "Download
block list" button when accessed while logged in.

[1]https://www.talater.com/upup/
[2]https://google.github.io/lovefield/

Signed-off-by: Mike Rylander <mrylander@gmail.com>
27 files changed:
Open-ILS/src/offline/offline.pl
Open-ILS/src/templates/staff/admin/workstation/t_print_templates.tt2
Open-ILS/src/templates/staff/base_js.tt2
Open-ILS/src/templates/staff/circ/patron/reg_actions.tt2
Open-ILS/src/templates/staff/circ/patron/t_edit.tt2
Open-ILS/src/templates/staff/navbar.tt2
Open-ILS/src/templates/staff/offline-interface.tt2 [new file with mode: 0644]
Open-ILS/src/templates/staff/share/print_templates/t_offline_checkin.tt2 [new file with mode: 0644]
Open-ILS/src/templates/staff/share/print_templates/t_offline_checkout.tt2 [new file with mode: 0644]
Open-ILS/src/templates/staff/share/print_templates/t_offline_in_house_use.tt2 [new file with mode: 0644]
Open-ILS/src/templates/staff/share/print_templates/t_offline_renew.tt2 [new file with mode: 0644]
Open-ILS/src/templates/staff/share/t_datetime.tt2
Open-ILS/web/LICENSE.UpUp [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/circ/patron/regctl.js
Open-ILS/web/js/ui/default/staff/offline.js [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/package.json
Open-ILS/web/js/ui/default/staff/services/env.js
Open-ILS/web/js/ui/default/staff/services/file.js
Open-ILS/web/js/ui/default/staff/services/hatch.js
Open-ILS/web/js/ui/default/staff/services/idl.js
Open-ILS/web/js/ui/default/staff/services/lovefield.js [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/services/org.js
Open-ILS/web/js/ui/default/staff/services/print.js
Open-ILS/web/js/ui/default/staff/services/startup.js
Open-ILS/web/js/ui/default/staff/services/ui.js
Open-ILS/web/upup.min.js [new file with mode: 0644]
Open-ILS/web/upup.sw.min.js [new file with mode: 0644]