LP#1706107: Offline mode
authorMike Rylander <mrylander@gmail.com>
Mon, 20 Mar 2017 20:38:15 +0000 (16:38 -0400)
committerKathy Lussier <klussier@masslnc.org>
Mon, 28 Aug 2017 18:56:00 +0000 (14:56 -0400)
commit849cfabaca74bd350867166740be6f47ddf6588b
tree99d76d7b1f25ab9afbe446eb347ff6f17ecdd5b3
parent8c7bdaa944117eb29cce47d5d23a842db1586596
LP#1706107: 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>
Conflicts:
Open-ILS/src/templates/staff/base_js.tt2
34 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/config.tt2
Open-ILS/src/templates/staff/index.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/src/templates/staff/t_login.tt2
Open-ILS/web/LICENSE.UpUp [new file with mode: 0644]
Open-ILS/web/js/ui/default/staff/Gruntfile.js
Open-ILS/web/js/ui/default/staff/app.js
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/auth.js
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/navbar.js
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]