View | Details | Raw Unified | Return to bug 11753
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (-1 lines)
Lines 13-19 Link Here
13
<script type="text/javascript" src="[% interface %]/lib/shortcut/shortcut.js"></script>
13
<script type="text/javascript" src="[% interface %]/lib/shortcut/shortcut.js"></script>
14
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min.js"></script>
14
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.cookie.min.js"></script>
15
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.highlight-3.js"></script>
15
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.highlight-3.js"></script>
16
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.qtip.js"></script>
17
<script type="text/javascript" src="[% interface %]/lib/bootstrap/bootstrap.min.js"></script>
16
<script type="text/javascript" src="[% interface %]/lib/bootstrap/bootstrap.min.js"></script>
18
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.validate.min.js"></script>
17
<script type="text/javascript" src="[% interface %]/lib/jquery/plugins/jquery.validate.min.js"></script>
19
18
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-14 / +7 lines)
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
- 

Return to bug 11753