|
Lines 5-11
Link Here
|
| 5 |
<div id="patron_search" class="residentsearch"> |
5 |
<div id="patron_search" class="residentsearch"> |
| 6 |
<p class="tip">Enter patron card number or partial name:</p> |
6 |
<p class="tip">Enter patron card number or partial name:</p> |
| 7 |
<form action="/cgi-bin/koha/members/member.pl" method="post"> |
7 |
<form action="/cgi-bin/koha/members/member.pl" method="post"> |
| 8 |
<input id="searchmember" size="25" class="focus" name="member" type="text" value="[% member %]"/> |
8 |
<input id="searchmember" data-toggle="tooltip" size="25" class="focus" name="member" type="text" value="[% member %]"/> |
| 9 |
<span class="filteraction" id="filteraction_off"> <a href="#" onclick="$('#filters').toggle();$('.filteraction').toggle();">[-]</a></span> |
9 |
<span class="filteraction" id="filteraction_off"> <a href="#" onclick="$('#filters').toggle();$('.filteraction').toggle();">[-]</a></span> |
| 10 |
<span class="filteraction" id="filteraction_on"> <a href="#" onclick="$('#filters').toggle();$('.filteraction').toggle();">[+]</a></span> |
10 |
<span class="filteraction" id="filteraction_on"> <a href="#" onclick="$('#filters').toggle();$('.filteraction').toggle();">[+]</a></span> |
| 11 |
|
11 |
|
|
Lines 22-48
Link Here
|
| 22 |
<option value='dateofbirth'>Date of birth</option> |
22 |
<option value='dateofbirth'>Date of birth</option> |
| 23 |
<option value='sort1'>Sort field 1</option> |
23 |
<option value='sort1'>Sort field 1</option> |
| 24 |
<option value='sort2'>Sort field 2</option> |
24 |
<option value='sort2'>Sort field 2</option> |
| 25 |
</select> |
25 |
</select> |
| 26 |
<script type="text/javascript"> |
26 |
<script type="text/javascript"> |
| 27 |
[% SET dateformat = Koha.Preference('dateformat') %] |
27 |
[% SET dateformat = Koha.Preference('dateformat') %] |
| 28 |
$("#searchfields").change(function() { |
28 |
$("#searchfields").change(function() { |
| 29 |
if ( $(this).val() == 'dateofbirth' ) { |
29 |
if ( $(this).val() == 'dateofbirth' ) { |
| 30 |
[% IF dateformat == 'us' %] |
30 |
[% IF dateformat == 'us' %] |
| 31 |
[% SET format = 'MM/DD/YYYY' %] |
31 |
var MSG_DATE_FORMAT = _("Dates of birth should be entered in the format 'MM/DD/YYYY'"); |
| 32 |
[% ELSIF dateformat == 'iso' %] |
32 |
[% ELSIF dateformat == 'iso' %] |
| 33 |
[% SET format = 'YYYY-MM-DD' %] |
33 |
var MSG_DATE_FORMAT = _("Dates of birth should be entered in the format 'YYYY-MM-DD'"); |
| 34 |
[% ELSIF dateformat == 'metric' %] |
34 |
[% ELSIF dateformat == 'metric' %] |
| 35 |
[% SET format = 'DD/MM/YYYY' %] |
35 |
var MSG_DATE_FORMAT = _("Dates of birth should be entered in the format 'DD/MM/YYYY'"); |
| 36 |
[% END %] |
36 |
[% END %] |
| 37 |
|
37 |
$('#searchmember').attr("title",MSG_DATE_FORMAT).tooltip('show'); |
| 38 |
$('#searchmember').qtip({ |
|
|
| 39 |
content: 'Dates of birth should be entered in the format "[% format %]"', |
| 40 |
style: { |
| 41 |
tip: 'topLeft' |
| 42 |
} |
| 43 |
}) |
| 44 |
} else { |
38 |
} else { |
| 45 |
$('#searchmember').qtip('destroy'); |
39 |
$('#searchmember').tooltip('destroy'); |
| 46 |
} |
40 |
} |
| 47 |
}); |
41 |
}); |
| 48 |
</script> |
42 |
</script> |
| 49 |
- |
|
|