Does anyone know how to create a way for Koha to refresh the home search screen for patrons after a certain amount of time? I'd like my OPAC to go back to the home search screen after say four minutes or so. That way it will usually be on the home search screen when people approach it instead of on the last search that was done. Thanks! _________________________________________________________________ Interest Rates NEAR 39yr LOWS! $430,000 Mortgage for $1,299/mo - Calculate new payment http://www.lowermybills.com/lre/index.jsp?sourceid=lmb-9632-19132&moid=14888
Does anyone know how to create a way for Koha to refresh the home search screen for patrons after a certain amount of time?
Our previous ILS had this behavior, so I understand exactly what you're asking about. This would be pretty easy to implement, and I think we should add an option for this in the system preferences. If you wanted to edit the template to get this working right away you should look for these files: opac-tmpl/npl/en/includes/doc-head-close.inc opac-tmpl/npl/en/includes/doc-head-close-results.inc Or /default/ instead of /npl/ if that's your template. Add this HTML right underneath one of the other <meta> tags: <meta http-equiv="Refresh" content="240;URL=http://your-site.example.com/cgi-bin/koha/opac-main.pl" /> ...changing the URL value of course to your own site's. That would return the page to the opac home page after 4 minutes (240 seconds). -- Owen -- Web Developer Nelsonville Public Library http://www.athenscounty.lib.oh.us ~
Owen Leonard a écrit :
Does anyone know how to create a way for Koha to refresh the home search screen for patrons after a certain amount of time?
Add this HTML right underneath one of the other <meta> tags:
<meta http-equiv="Refresh" content="240;URL=http://your-site.example.com/cgi-bin/koha/opac-main.pl" />
...changing the URL value of course to your own site's. That would return the page to the opac home page after 4 minutes (240 seconds).
-- Owen
You are right but uncomplete. IMHO, you should first disconnect current user if connected. Thus use a redirect : http://example.com/cgi-bin/koha/opac-main.pl?logout.x=1 instead of opac-main.pl Yours -- HDL
You are right but uncomplete. IMHO, you should first disconnect current user if connected.
Thus use a redirect : http://example.com/cgi-bin/koha/opac-main.pl?logout.x=1
I agree, but wanted to do further investigation. I wonder if users should be given the option of /not/ being logged out? For instance: if I'm signing in from home, I don't want to be logged out after inactivity. If it's a publicly-accessible computer I do. I was thinking maybe we need a little "Remember me" checkbox on the login form to control that behavior. For that matter, perhaps if "remember me" has been selected, should the page redirect at all? If I'm at home I probably don't want my search results page to disappear just because I got up to answer the phone or something. -- Owen
participants (3)
-
Amber Amland -
Henri-Damien LAURENT -
Owen Leonard