SirsiDynix "Click anywhere to return home" message

Questions and comments about currently under development PWB v3

Moderators: Tyler, Scott

Post Reply
Scott
Site Admin
Site Admin
Posts: 2535
Joined: Mon Dec 16, 2002 12:31 pm
Location: Rochester, MN
Contact:

SirsiDynix "Click anywhere to return home" message

Post 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 2503 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 169 times
sirsifilter.txt
(69 Bytes) Downloaded 184 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

Post Reply