Browse Source

Bug 12283: Disable autocomplete for patron search inputs

In a production system, you don't usually search for the same
patron over and over, so there's no sense for the browser
to save a list of searched patrons in the patron quick
search. Therefore, should set autocomplete=off for that
input field.

Signed-off-by: Jose-Mario Monteiro-Santos <jose-mario.monteiro-santos@inLibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
19.05.x
Olli-Antti Kivilahti 6 years ago
committed by Nick Clemens
parent
commit
453fd0da1e
  1. 2
      koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc
  2. 2
      koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc
  3. 2
      koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc
  4. 2
      koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt

2
koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc

@ -25,7 +25,7 @@
<div id="patron_search" class="residentsearch">
<p class="tip">Enter patron card number or partial name:</p>
<form action="/cgi-bin/koha/members/member.pl" method="post">
<input name="searchmember" class="head-searchbox" id="searchmember" size="40" type="text"/>
<input name="searchmember" class="head-searchbox" id="searchmember" size="40" type="text" autocomplete="off" />
<input type="hidden" name="quicksearch" value="1" />
<input value="Submit" class="submit" type="submit" />
</form>

2
koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc

@ -12,7 +12,7 @@
[% END %]
</div>
[% ELSE %]
<input id="findborrower" name="findborrower" size="40" class="head-searchbox focus" type="text" />
<input id="findborrower" name="findborrower" size="40" class="head-searchbox focus" type="text" autocomplete="off" />
[% IF ( stickyduedate ) %]
<input type="hidden" name="duedatespec" value="[% duedatespec | html %]" />
<input type="hidden" name="stickyduedate" value="[% stickyduedate | html %]" />

2
koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc

@ -7,7 +7,7 @@
<div id="patron_search" class="residentsearch">
<p class="tip">Enter patron card number or partial name:</p>
<form action="/cgi-bin/koha/members/member.pl" method="post">
<input id="searchmember" data-toggle="tooltip" size="25" class="head-searchbox focus" name="searchmember" type="text" value="[% searchmember | html %]"/>
<input id="searchmember" data-toggle="tooltip" size="25" class="head-searchbox focus" name="searchmember" type="text" value="[% searchmember | html %]" autocomplete="off" />
<input type="hidden" name="quicksearch" value="1" />
<span class="filteraction" id="filteraction_off"> <a href="#">[-]</a></span>
<span class="filteraction" id="filteraction_on"> <a href="#">[+]</a></span>

2
koha-tmpl/intranet-tmpl/prog/en/modules/reserve/request.tt

@ -70,7 +70,7 @@
[% UNLESS borrowers %]
<label for="patron">Patron: </label>
<div class="hint">Enter patron card number or partial name:</div>
<input type="text" size="40" id="patron" class="focus" name="findborrower" />
<input type="text" size="40" id="patron" class="focus" name="findborrower" autocomplete="off" />
<input type="submit" value="Search" />
[% IF multi_hold %]
<input type="hidden" name="multi_hold" value="[% multi_hold | html %]"/>

Loading…
Cancel
Save