webstaff: Offline mode
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 16:30:01 +0000 (12:30 -0400)
commit9ad32fdf8e3272718d9456da58f14e6423bc236d
treea51586e8534bb96725a3a407e3b8397eba6a5b17
parentc611436c46aca90164cc6d9da11893394b1f4715
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>
26 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/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]