Page 1 of 1

SirsiDynix "Click anywhere to return home" message

Posted: Mon Aug 26, 2024 2:41 pm
by Scott
The SirsiDynix Library catalog home page has a 30 minute session timeout resulting in a message that may confuse patrons. This is coming directly from the webpage and is not a PWB message.
sirsi.png
sirsi.png (104.97 KiB) Viewed 5842 times
Using the power of PWB we can inject JavaScript into the page to refresh it every 25 minutes.

Add/Change the following in your PWB INI file:

Code: Select all

[Files]
JavaScriptFilterFile=sirsifilter.txt

[Security]
CheckJavaScriptAccess=True
Download the attached files:
sirsiscript.txt
(61 Bytes) Downloaded 379 times
sirsifilter.txt
(69 Bytes) Downloaded 388 times
The "sirsifilter.txt" will look for the "https://stan.ent.sirsi.net/client/en_US/cer" URL, and when found will inject the "sirsiscript.txt" file.

Code: Select all

-all
+^https://stan.ent.sirsi.net/client/en_US/cer	sirsiscript.txt
The "sirsiscript.txt" file adds a 25 minute timer that refreshes the page. This will reset the SirsiDynix 30 minute session timeout.

Code: Select all

setTimeout(function() {
  location.reload();
}, 1500000);
--Scott