From 215c5ee843be5dd31b2c6cdd002f4b92050adf90 Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 4 Dec 2024 21:10:55 +0000 Subject: [PATCH] Bug 36586: WIP This patch moves the refresh code into a js include and sets a few variables in the page. It also moves the fetch of the pref into the template. We need to copy this over for the sco - and probably add a new pref. Lastly, the code here only refreshes during an active session, probably we could have a single pref SelfCheckRefresh that would trigger on the main page, default to 3 or 4 hours? --- .../bootstrap/en/modules/sci/sci-main.tt | 28 ++++--------------- koha-tmpl/opac-tmpl/bootstrap/js/timeout.js | 22 +++++++++++++++ opac/sci/sci-main.pl | 4 --- 3 files changed, 27 insertions(+), 27 deletions(-) create mode 100644 koha-tmpl/opac-tmpl/bootstrap/js/timeout.js diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt index 8308303626a..7d9326c34c3 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/sci/sci-main.tt @@ -202,6 +202,7 @@ [% INCLUDE 'opac-bottom.inc' %] [% BLOCK jsinclude %] +[% Asset.js('js/timeout.js') | $raw %]