<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:"MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Century Gothic";
        panose-1:2 11 5 2 2 2 2 2 2 4;}
@font-face
        {font-family:"\@MS Mincho";
        panose-1:2 2 6 9 4 2 5 8 3 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="#0563C1" vlink="#954F72">
<div class="WordSection1">
<p class="MsoNormal"><span lang="EN-GB">Hello,<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">We are facing the following problem on our installation of Koha.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Some impatient users tends to click several times on the “Go” button of the search form on OPAC.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Probably in a desperate hope that this will speed up the whole process.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">However the result is quite opposite, as Zebra is then queried multiple times which increases the server cpu load, until it reach 100% and cause Denial of Service (boooh…)<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">We had the idea of disabling the “searchsubmit” button upon first click.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">This is done by adding onclick=”this.disabled=true;” after “id=searchsubmit” in masthead.inc.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Here is a SED command to make it easier.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">sed -i -e 's/id="searchsubmit"/id="searchsubmit" onclick="this.disabled=true; this.form.submit(); return true;"/' src/koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Did any of you already faced similar problems?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">Any other ideas or implementation are welcome!<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-GB" style="font-family:"Century Gothic",sans-serif;color:#545454"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-family:"Century Gothic",sans-serif;color:#545454">Arthur SUZUKI</span></b><span style="font-family:"Century Gothic",sans-serif;color:#545454"><o:p></o:p></span></p>
<p class="MsoNormal" style="line-height:150%"><b><span style="font-family:"Century Gothic",sans-serif;color:#5F5F5F">Service informatique des bibliothèques<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Century Gothic",sans-serif;text-transform:uppercase">bIBLIOTHÈQUES UNIVERSITAIRES</span></b><span style="font-size:10.0pt;font-family:"Century Gothic",sans-serif"><o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Century Gothic",sans-serif;font-variant:small-caps;color:#585858">Université Jean Moulin Lyon 3</span></b><span style="font-size:10.0pt;font-family:"Century Gothic",sans-serif;color:#585858"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Century Gothic",sans-serif;color:#585858">6 Cours Albert Thomas - B.P. 8242 – 69355 Lyon Cedex 08<o:p></o:p></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Century Gothic",sans-serif;color:#545454;text-transform:uppercase">ligne directe
</span></b><b><span style="font-size:10.0pt;font-family:"Century Gothic",sans-serif;color:#595959;text-transform:uppercase">:</span></b><b><span style="font-size:10.0pt;font-family:"Century Gothic",sans-serif;color:#595959">
<span style="text-transform:uppercase">+</span></span></b><span style="font-size:10.0pt;font-family:"Century Gothic",sans-serif;color:#595959;text-transform:uppercase">33 (0)4 78 78 79 16<b> |
</b></span><b><span style="font-size:10.0pt;font-family:"Century Gothic",sans-serif"><a href="http://bu.univ-lyon3.fr"><span style="color:blue">http://bu.univ-lyon3.fr</span></a><span style="color:#595959"><o:p></o:p></span></span></b></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Century Gothic",sans-serif;color:#A6A6A6"> </span></b><span style="font-size:10.0pt;font-family:"Century Gothic",sans-serif;color:#A6A6A6">
</span><span style="font-size:10.0pt;font-family:"Century Gothic",sans-serif;color:blue"><o:p></o:p></span></p>
<p class="MsoNormal"><b><i><span style="font-size:9.0pt;font-family:"Century Gothic",sans-serif;color:#585858">L'Université Jean Moulin est membre fondateur de l'Université de Lyon</span></i></b><span style="font-size:9.0pt;font-family:"Century Gothic",sans-serif;color:#585858"><o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>