|
Lines 1-3
Link Here
|
|
|
1 |
[% USE Koha %] |
| 1 |
<div class="gradient"> |
2 |
<div class="gradient"> |
| 2 |
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Patrons Resident Search Box --> |
3 |
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Patrons Resident Search Box --> |
| 3 |
<div id="header_search"> |
4 |
<div id="header_search"> |
|
Lines 19-25
Link Here
|
| 19 |
<option value='phone,phonepro,B_phone,altcontactphone,mobile'>Phone number</option> |
20 |
<option value='phone,phonepro,B_phone,altcontactphone,mobile'>Phone number</option> |
| 20 |
<option value='streettype,address,address2,city,state,zipcode,country'>Street Address</option> |
21 |
<option value='streettype,address,address2,city,state,zipcode,country'>Street Address</option> |
| 21 |
<option value='dateofbirth'>Date of birth</option> |
22 |
<option value='dateofbirth'>Date of birth</option> |
| 22 |
</select></p> |
23 |
</select> |
|
|
24 |
<script type="text/javascript"> |
| 25 |
[% SET dateformat = Koha.Preference('dateformat') %] |
| 26 |
$("#searchfields").change(function() { |
| 27 |
if ( $(this).val() == 'dateofbirth' ) { |
| 28 |
[% IF dateformat == 'us' %] |
| 29 |
[% SET format = 'MM/DD/YYYY' %] |
| 30 |
[% ELSIF dateformat == 'iso' %] |
| 31 |
[% SET format = 'YYYY-MM-DD' %] |
| 32 |
[% ELSIF dateformat == 'metric' %] |
| 33 |
[% SET format = 'DD/MM/YYYY' %] |
| 34 |
[% END %] |
| 35 |
|
| 36 |
$('#searchmember').qtip({ |
| 37 |
content: 'Dates of birth should be entered in the format "[% format %]"', |
| 38 |
style: { |
| 39 |
tip: 'topLeft' |
| 40 |
} |
| 41 |
}) |
| 42 |
} else { |
| 43 |
$('#searchmember').qtip('destroy'); |
| 44 |
} |
| 45 |
}); |
| 46 |
</script> |
| 47 |
</p> |
| 23 |
<p><label for="searchtype">Search type:</label> |
48 |
<p><label for="searchtype">Search type:</label> |
| 24 |
<select name="searchtype" id="searchtype"> |
49 |
<select name="searchtype" id="searchtype"> |
| 25 |
<option selected="selected" value=''>Starts with</option> |
50 |
<option selected="selected" value=''>Starts with</option> |
| 26 |
- |
|
|