]> git.koha-community.org Git - koha.git/commit
Bug 22671: Show warning if browser doesn't support applicationCache
authorOwen Leonard <oleonard@myacpl.org>
Mon, 18 Oct 2021 12:29:19 +0000 (12:29 +0000)
committerAndrew Fuerste-Henry <andrew@bywatersolutions.com>
Mon, 7 Mar 2022 20:31:22 +0000 (20:31 +0000)
commitb4b0fc460feeb73ec5031b98a55242a32563c105
tree6165329c746949f53ba59e11fa38f602e84fdfa8
parent4b275edd965c7362e28ac382e45c584f714571ad
Bug 22671: Show warning if browser doesn't support applicationCache

This patch adds a check for browser support for the "applicationCache"
feature required by the offline circulation tool. If the feature is not
available, a message is shown to the user that offline circulation is
disabled.

To test, apply the patch and enable the AllowOfflineCirculation system
preference.

In a browser which supports applicationCache (Firefox < 81, Chrome < 94,
Safari <= 15), go to Circulation -> Built-in offline circulation
interface.

- You should see the standard Offline Circulation menu options: Check
  out, check in, syncrhonize, etc.
- Click "Synchronize," then "Download records."
- The process should complete correctly, updating the "last synced"
  information on the page.

Follow the same steps in a browser which has dropped support for
applicationCache. As soon as you reach the built-in offline circulation
page you should see a message, "Your browser is not compatible..."

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit e79a1723c6b10d71a8b82e295836247e52c2fad3)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/offline.tt