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

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

Return to bug 8845