Open up searchresponse.xsl file and find the
<body> tag (it’s around line 230)
A few lines down you’ll find the onload attribute code – this tells the web browser to execute the
Replace that entire line of code with the following:
<!-- disable the setfocus for search result pages --> <xsl:if test="not(boolean(/searchresponse/yoursearch))"> <xsl:attribute name="onload">startTimer();setfocus();</xsl:attribute> </xsl:if> <xsl:if test="(boolean(/searchresponse/yoursearch))"> <xsl:attribute name="onload">startTimer();</xsl:attribute> </xsl:if> <!-- end of changes -->
Save the searchresponse.xsl file and check your HIP to see if the change works!
The usual notes apply:
- this worked fine for our UK HIP 3.04
- back up your original searchresponse.xsl file before you make any changes!
- if you’ve got one, try it on your test HIP server first