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

(-)a/authorities/ysearch.pl (-6 / +14 lines)
Lines 3-8 Link Here
3
# This software is placed under the gnu General Public License, v2 (http://www.gnu.org/licenses/gpl.html)
3
# This software is placed under the gnu General Public License, v2 (http://www.gnu.org/licenses/gpl.html)
4
4
5
# Copyright 2011 BibLibre
5
# Copyright 2011 BibLibre
6
# Parts copyright 2012 Athens County Public Libraries
6
#
7
#
7
# This file is part of Koha.
8
# This file is part of Koha.
8
#
9
#
Lines 43-49 if ( $auth_status ne "ok" ) { Link Here
43
    exit 0;
44
    exit 0;
44
}
45
}
45
46
46
    my $searchstr = $query->param('query');
47
    my $searchstr = $query->param('term');
47
    my $searchtype = $query->param('querytype');
48
    my $searchtype = $query->param('querytype');
48
    my @value;
49
    my @value;
49
    given ($searchtype) {
50
    given ($searchtype) {
Lines 62-71 if ( $auth_status ne "ok" ) { Link Here
62
    my $startfrom = 0;
63
    my $startfrom = 0;
63
64
64
    my ( $results, $total ) = SearchAuthorities( \@marclist, \@and_or, \@excluding, \@operator, \@value, $startfrom * $resultsperpage, $resultsperpage, $authtypecode, $orderby );
65
    my ( $results, $total ) = SearchAuthorities( \@marclist, \@and_or, \@excluding, \@operator, \@value, $startfrom * $resultsperpage, $resultsperpage, $authtypecode, $orderby );
66
67
print "[";
68
my $i = 0;
65
    foreach (@$results) {
69
    foreach (@$results) {
66
	my ($value) = $_->{'summary'};
70
        if($i > 0){ print ","; }
67
        # Removes new lines
71
        my ($value) = $_->{'summary'};
68
        $value =~ s/<br \/>/ /g;
72
            # Removes new lines
69
        $value =~ s/\n//g;
73
            $value =~ s/<br \/>/ /g;
70
	print nsb_clean($value) . "\n";
74
            $value =~ s/\n//g;
75
            $value = "{\"summary\":\"" . $value . "\"" . "}";
76
        print nsb_clean($value) . "\n";
77
        $i++;
71
    }
78
    }
79
print "]";
(-)a/circ/ypattrodue-attr-search-authvalue.pl (-3 / +10 lines)
Lines 2-7 Link Here
2
2
3
# This software is placed under the gnu General Public License, v2 (http://www.gnu.org/licenses/gpl.html)
3
# This software is placed under the gnu General Public License, v2 (http://www.gnu.org/licenses/gpl.html)
4
4
5
# Parts copyright 2012 Athens County Public Libraries
5
# This file is part of Koha.
6
# This file is part of Koha.
6
#
7
#
7
# Koha is free software; you can redistribute it and/or modify it under the
8
# Koha is free software; you can redistribute it and/or modify it under the
Lines 25-31 use C4::Auth qw/check_cookie_auth/; Link Here
25
use C4::Debug;
26
use C4::Debug;
26
27
27
my $input    = new CGI;
28
my $input    = new CGI;
28
my $query    = $input->param('query');
29
my $query    = $input->param('term');
29
my $attrcode = $input->path_info || '';
30
my $attrcode = $input->path_info || '';
30
$attrcode =~ s|^/||;
31
$attrcode =~ s|^/||;
31
32
Lines 45-52 my $sql = qq(SELECT authorised_value, lib description Link Here
45
			AND v.lib like ?);
46
			AND v.lib like ?);
46
my $sth = $dbh->prepare($sql);
47
my $sth = $dbh->prepare($sql);
47
$sth->execute( $attrcode, "$query%" );
48
$sth->execute( $attrcode, "$query%" );
49
50
print "[";
51
my $i = 0;
48
while ( my $rec = $sth->fetchrow_hashref ) {
52
while ( my $rec = $sth->fetchrow_hashref ) {
49
    print STDERR ">> attrcode=$attrcode match '$query' ==> $rec->{description} ($rec->{authorised_value})\n" if $debug;
53
    print STDERR ">> attrcode=$attrcode match '$query' ==> $rec->{description} ($rec->{authorised_value})\n" if $debug;
50
    print "$rec->{description}\t$rec->{authorised_value}\n";
54
    print "{\"description\":\"" . $rec->{description} . "\",\"" .
55
    "authorised_value\":\"" . $rec->{authorised_value} . "\"" .
56
    "}";
57
    $i++;
51
}
58
}
52
59
print "]";
(-)a/circ/ysearch.pl (-9 / +28 lines)
Lines 3-8 Link Here
3
# This software is placed under the gnu General Public License, v2 (http://www.gnu.org/licenses/gpl.html)
3
# This software is placed under the gnu General Public License, v2 (http://www.gnu.org/licenses/gpl.html)
4
4
5
# Copyright 2007 Tamil s.a.r.l.
5
# Copyright 2007 Tamil s.a.r.l.
6
# Parts copyright 2010-2012 Athens County Public Libraries
6
#
7
#
7
# This file is part of Koha.
8
# This file is part of Koha.
8
#
9
#
Lines 32-38 use C4::Members; Link Here
32
use C4::Auth qw/check_cookie_auth/;
33
use C4::Auth qw/check_cookie_auth/;
33
34
34
my $input   = new CGI;
35
my $input   = new CGI;
35
my $query   = $input->param('query');
36
my $query   = $input->param('term');
36
37
37
binmode STDOUT, ":encoding(UTF-8)";
38
binmode STDOUT, ":encoding(UTF-8)";
38
print $input->header(-type => 'text/plain', -charset => 'UTF-8');
39
print $input->header(-type => 'text/plain', -charset => 'UTF-8');
Lines 42-52 if ($auth_status ne "ok") { Link Here
42
    exit 0;
43
    exit 0;
43
}
44
}
44
45
45
print map $_->{surname} . ", " . $_->{firstname} . "\t" .
46
my $dbh = C4::Context->dbh;
46
          $_->{cardnumber} . "\t" .
47
my $sql = qq(SELECT surname, firstname, cardnumber, address, city, zipcode, country
47
          $_->{address} . "\t" .
48
             FROM borrowers
48
          $_->{city} . "\t" .
49
             WHERE surname LIKE ?
49
          $_->{zipcode} . "\t" .
50
             OR firstname LIKE ?
50
          $_->{country} .
51
             OR cardnumber LIKE ?
51
          "\n",
52
             ORDER BY surname, firstname
52
          @{ Search($query, [qw(surname firstname cardnumber)], [10], [qw(surname firstname cardnumber address city zipcode country)]) };
53
             LIMIT 10);
54
my $sth = $dbh->prepare( $sql );
55
$sth->execute("$query%", "$query%", "$query%");
56
57
print "[";
58
my $i = 0;
59
while ( my $rec = $sth->fetchrow_hashref ) {
60
    if($i > 0){ print ","; }
61
    print "{\"surname\":\"" . $rec->{surname} . "\",\"" .
62
          "firstname\":\"".$rec->{firstname} . "\",\"" .
63
          "cardnumber\":\"".$rec->{cardnumber} . "\",\"" .
64
          "address\":\"".$rec->{address} . "\",\"" .
65
          "city\":\"".$rec->{city} . "\",\"" .
66
          "zipcode\":\"".$rec->{zipcode} . "\",\"" .
67
          "country\":\"".$rec->{country} . "\"" .
68
          "}";
69
    $i++;
70
}
71
print "]";
(-)a/koha-tmpl/intranet-tmpl/prog/en/css/staff-global.css (-1 / +21 lines)
Lines 2185-2191 div.pager { Link Here
2185
	padding : .3em .5em .3em .5em;
2185
	padding : .3em .5em .3em .5em;
2186
	margin : .4em 0;
2186
	margin : .4em 0;
2187
}
2187
}
2188
div.pager img {
2188
div.pager img {+/* jQuery UI Autocomplete */
2189
+ul.ui-autocomplete li { list-style-type: none; font-size : inherit; }
2190
+ul.ui-autocomplete { -webkit-box-shadow: 2px 2px 2px rgba(0,0,0,.3); -moz-box-shadow: 2px 2px 2px rgba(0,0,0,.3); box-shadow: 2px 2px 2px rgba(0,0,0,.3); }
2191
+input.ui-autocomplete-input.active { background: transparent url("../../img/loading-small.gif") right center no-repeat; }
2192
2189
	vertical-align : middle;
2193
	vertical-align : middle;
2190
}
2194
}
2191
div.pager img.last {
2195
div.pager img.last {
Lines 2225-2227 div#acqui_order_supplierlist > div.supplier > span.action { Link Here
2225
div#acqui_order_supplierlist > div.supplier > div.baskets {
2229
div#acqui_order_supplierlist > div.supplier > div.baskets {
2226
    margin-top: 0.5em;
2230
    margin-top: 0.5em;
2227
}
2231
}
2232
2233
/* jQuery UI Autocomplete */
2234
ul.ui-autocomplete li {
2235
    list-style-type: none;
2236
    font-size : inherit;
2237
}
2238
2239
ul.ui-autocomplete {
2240
    -webkit-box-shadow: 2px 2px 2px rgba(0,0,0,.3);
2241
    -moz-box-shadow: 2px 2px 2px rgba(0,0,0,.3);
2242
    box-shadow: 2px 2px 2px rgba(0,0,0,.3);
2243
}
2244
2245
.ui-autocomplete-loading {
2246
    background: #FFF url("../../img/loading-small.gif") right center no-repeat;
2247
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/auth-finder-search.inc (-54 / +80 lines)
Lines 1-64 Link Here
1
<script type="text/javascript">
1
<script type="text/javascript">
2
//<![CDATA[
2
//<![CDATA[
3
YAHOO.util.Event.onContentReady("header_search", function() {
4
    new function() {
5
        // Define a custom formatter function
6
        this.fnCustomFormatter = function(oResultItem, sQuery) {
7
            var name        = oResultItem[0];
8
            var aMarkup = [
9
                "<div class=\"sample-result\">",
10
                name,
11
                "<\/div>"];
12
            return (aMarkup.join(""));
13
        };
14
3
4
$(document).ready(function(){
15
    // marclist
5
    // marclist
16
        this.marclistDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/authorities/ysearch.pl", ["\n", "\t"]);
6
    $( "#value_any" ).autocomplete({
17
        this.marclistDS.scriptQueryAppend = "op=do_search&type=intranet&and_or=and&operator=contains&orderby=HeadingAsc&querytype=marclist";
7
        source: function(request, response) {
18
        this.marclistDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
8
            $.ajax({
19
        this.marclistDS.maxCacheEntries = 60;
9
                url: "/cgi-bin/koha/authorities/ysearch.pl",
20
        this.marclistDS.queryMatchSubset = false;
10
                dataType: "json",
21
11
                data: {
22
        var myInput = document.getElementById('value_any');
12
                    term: request.term,
23
        var myContainer = document.getElementById('yvaluecontainermarclist');
13
                    op: "do_search",
24
        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.marclistDS);
14
                    type: "intranet",
25
        this.oAutoComp.queryDelay = 1;
15
                    and_or: "and",
26
        this.oAutoComp.formatResult = this.fnCustomFormatter;
16
                    operator: "contains",
27
        this.oAutoComp.maxResultsDisplayed = 1000;
17
                    orderby: "HeadingAsc",
28
18
                    querytype: "marclist"
29
19
                },
20
                success: function(data) {
21
                    response( $.map( data, function( item ) {
22
                            return {
23
                                label: item.summary,
24
                                value: item.summary
25
                            }
26
                        }));
27
                }
28
            });
29
        },
30
        minLength: 3,
31
    });
30
    // mainentry
32
    // mainentry
31
    this.mainentryDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/authorities/ysearch.pl", ["\n", "\t"]);
33
    $( "#value_main" ).autocomplete({
32
        this.mainentryDS.scriptQueryAppend = "op=do_search&type=intranet&and_or=and&operator=contains&orderby=HeadingAsc&querytype=mainentry";
34
        source: function(request, response) {
33
        this.mainentryDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
35
            $.ajax({
34
        this.mainentryDS.maxCacheEntries = 60;
36
                url: "/cgi-bin/koha/authorities/ysearch.pl",
35
        this.mainentryDS.queryMatchSubset = false;
37
                dataType: "json",
36
38
                data: {
37
        var myInput = document.getElementById('value_main');
39
                    term: request.term,
38
        var myContainer = document.getElementById('yvaluecontainermainentry');
40
                    op: "do_search",
39
        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.mainentryDS);
41
                    type: "intranet",
40
        this.oAutoComp.queryDelay = 1;
42
                    and_or: "and",
41
        this.oAutoComp.formatResult = this.fnCustomFormatter;
43
                    operator: "contains",
42
        this.oAutoComp.maxResultsDisplayed = 1000;
44
                    orderby: "HeadingAsc",
43
45
                    querytype: "mainentry"
44
46
                },
47
                success: function(data) {
48
                    response( $.map( data, function( item ) {
49
                            return {
50
                                label: item.summary,
51
                                value: item.summary
52
                            }
53
                        }));
54
                }
55
            });
56
        },
57
        minLength: 3,
58
    });
45
    // mainmainentry
59
    // mainmainentry
46
    this.mainentryDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/authorities/ysearch.pl", ["\n", "\t"]);
60
    $( "#value_mainstr" ).autocomplete({
47
        this.mainentryDS.scriptQueryAppend = "op=do_search&type=intranet&and_or=and&operator=contains&orderby=HeadingAsc&querytype=mainmainentry";
61
        source: function(request, response) {
48
        this.mainentryDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
62
            $.ajax({
49
        this.mainentryDS.maxCacheEntries = 60;
63
                url: "/cgi-bin/koha/authorities/ysearch.pl",
50
        this.mainentryDS.queryMatchSubset = false;
64
                dataType: "json",
51
65
                data: {
52
        var myInput = document.getElementById('value_mainstr');
66
                    term: request.term,
53
        var myContainer = document.getElementById('yvaluecontainermainmainentry');
67
                    op: "do_search",
54
        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.mainentryDS);
68
                    type: "intranet",
55
        this.oAutoComp.queryDelay = 1;
69
                    and_or: "and",
56
        this.oAutoComp.formatResult = this.fnCustomFormatter;
70
                    operator: "contains",
57
        this.oAutoComp.maxResultsDisplayed = 1000;
71
                    orderby: "HeadingAsc",
58
72
                    querytype: "mainmainentry"
59
73
                },
60
}
74
                success: function(data) {
75
                    response( $.map( data, function( item ) {
76
                            return {
77
                                label: item.summary,
78
                                value: item.summary
79
                            }
80
                        }));
81
                }
82
            });
83
        },
84
        minLength: 3,
85
    });
61
});
86
});
87
62
//]]>
88
//]]>
63
</script>
89
</script>
64
90
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/budgets-admin-search.inc (-78 / +12 lines)
Lines 1-49 Link Here
1
<div id="header" class="gradient">
1
<div id="header" class="gradient">
2
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Fund Admin Resident Search Box -->
2
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Fund Admin Resident Search Box -->
3
[% IF ( CAN_user_circulate ) %][% IF ( CircAutocompl ) %]<script type="text/javascript">
4
//<![CDATA[
5
YAHOO.util.Event.onContentReady("header_search", function() {
6
    new function() {
7
        // Define a custom formatter function
8
        this.fnCustomFormatter = function(oResultItem, sQuery) {
9
            var name        = oResultItem[0];
10
            var cardnumber  = oResultItem[1];
11
            var address     = oResultItem[2];
12
            var city        = oResultItem[3];
13
            var zip         = oResultItem[4];
14
            var aMarkup = [
15
                "<div class=\"sample-result\">",
16
                name,
17
                " (",
18
                cardnumber,
19
                ")<small> -- ",
20
                address,
21
                ", ",
22
                city,
23
                "</small>",
24
                "</div>"];
25
            return (aMarkup.join(""));
26
        };
27
28
        // Instantiate one XHR DataSource and define schema as an array:
29
        //     ["Record Delimiter",
30
        //     "Field Delimiter"]
31
        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
32
        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
33
        this.oACDS.maxCacheEntries = 60;
34
        this.oACDS.queryMatchSubset = true;
35
    
36
        // Instantiate first AutoComplete
37
        var myInput = document.getElementById('findborrower');
38
        var myContainer = document.getElementById('yborrowercontainer');
39
        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
40
        //this.oAutoComp.delimChar = ";";
41
        //this.oAutoComp.queryDelay = 1;
42
        this.oAutoComp.formatResult = this.fnCustomFormatter;
43
}
44
});
45
 //]]>
46
 </script>  [% END %][% END %]
47
3
48
<div id="header_search">
4
<div id="header_search">
49
    <div id="budgets_search" class="residentsearch">
5
    <div id="budgets_search" class="residentsearch">
Lines 66-108 YAHOO.util.Event.onContentReady("header_search", function() { Link Here
66
        </form>
22
        </form>
67
    </div>
23
    </div>
68
24
69
	[% IF ( CAN_user_circulate ) %]
25
[% INCLUDE 'patron-search-box.inc' %]
70
	<div id="circ_search" class="residentsearch" style="display:none;">
26
71
	<p class="tip">Enter patron card number or partial name:</p>
27
    [% IF ( CAN_user_catalogue ) %]
72
    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
28
    <div id="catalog_search" class="residentsearch" style="display:none;">
73
    [% IF ( CircAutocompl ) %]
29
    <p class="tip">Enter search keywords:</p>
74
    <div class="autocomplete">
30
        <form action="/cgi-bin/koha/catalogue/search.pl"  method="get" id="cat-search-block">
75
            <div id="borrowerautocomplete" class="autocomplete">
31
             <input type="text" name="q" id="search-form" size="40" value="" title="Enter the terms you wish to search for." class="form-text" />
76
                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
32
                <input type="submit" value="Submit"  class="submit" />
77
                <div id="yborrowercontainer"></div>
33
        </form>
78
                <input id="ysearchsubmit" type="submit" class="submit" value="Submit" />
34
    </div>[% END %]
79
                <input name="branch" value="[% branch %]" type="hidden" />
35
            <ul>
80
                <input name="printer" value="" type="hidden" />
81
            </div>
82
        </div>
83
	[% ELSE %]
84
            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
85
            <input name="branch" value="[% branch %]" type="hidden" />
86
            <input name="printer" value="" type="hidden" />
87
            <input value="Submit" class="submit" type="submit" />
88
	[% END %]
89
    </form>
90
	</div>	
91
	[% END %]
92
	
93
	[% IF ( CAN_user_catalogue ) %]
94
	<div id="catalog_search" class="residentsearch" style="display:none;">
95
	<p class="tip">Enter search keywords:</p>
96
		<form action="/cgi-bin/koha/catalogue/search.pl"  method="get" id="cat-search-block">
97
			 <input type="text" name="q" id="search-form" size="40" value="" title="Enter the terms you wish to search for." class="form-text" />
98
				<input type="submit" value="Submit"  class="submit" />
99
		</form>
100
	</div>[% END %]
101
			<ul>
102
            <li><a href="/cgi-bin/koha/admin/aqbudgets.pl#budgets_search">Search funds</a></li>
36
            <li><a href="/cgi-bin/koha/admin/aqbudgets.pl#budgets_search">Search funds</a></li>
103
            [% IF ( CAN_user_circulate ) %]<li><a href="/cgi-bin/koha/circ/circulation.pl#circ_search">Check out</a></li>[% END %]
37
            [% IF ( CAN_user_circulate ) %]<li><a href="/cgi-bin/koha/circ/circulation.pl#circ_search">Check out</a></li>[% END %]
104
            [% IF ( CAN_user_catalogue ) %]<li><a href="/cgi-bin/koha/catalogue/search.pl#catalog_search">Search the catalog</a></li>[% END %]
38
            [% IF ( CAN_user_catalogue ) %]<li><a href="/cgi-bin/koha/catalogue/search.pl#catalog_search">Search the catalog</a></li>[% END %]
105
			</ul>	
39
            </ul>   
106
</div>
40
</div>
107
</div>
41
</div>
108
<!-- End Suggestions Resident Search Box -->
42
<!-- End Suggestions Resident Search Box -->
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cat-search.inc (-68 / +3 lines)
Lines 1-74 Link Here
1
<div class="gradient">
1
<div class="gradient">
2
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Catalogue Resident Search Box -->
2
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Catalogue Resident Search Box -->
3
[% IF ( CAN_user_circulate ) %][% IF ( CircAutocompl ) %]<script type="text/javascript">
4
//<![CDATA[
5
YAHOO.util.Event.onContentReady("header_search", function() {
6
    new function() {
7
        // Define a custom formatter function
8
        this.fnCustomFormatter = function(oResultItem, sQuery) {
9
            var name        = oResultItem[0];
10
            var cardnumber  = oResultItem[1];
11
            var address     = oResultItem[2];
12
            var city        = oResultItem[3];
13
            var zip         = oResultItem[4];
14
            var aMarkup = [
15
                "<div class=\"sample-result\">",
16
                name,
17
                " (",
18
                cardnumber,
19
                ")<small> -- ",
20
                address,
21
                ", ",
22
                city,
23
                "<\/small>",
24
                "<\/div>"];
25
            return (aMarkup.join(""));
26
        };
27
28
        // Instantiate one XHR DataSource and define schema as an array:
29
        //     ["Record Delimiter",
30
        //     "Field Delimiter"]
31
        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
32
        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
33
        this.oACDS.maxCacheEntries = 60;
34
        this.oACDS.queryMatchSubset = true;
35
    
36
        // Instantiate first AutoComplete
37
        var myInput = document.getElementById('findborrower');
38
        var myContainer = document.getElementById('yborrowercontainer');
39
        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
40
        //this.oAutoComp.delimChar = ";";
41
        //this.oAutoComp.queryDelay = 1;
42
        this.oAutoComp.formatResult = this.fnCustomFormatter;
43
}
44
});    
45
//]]>
46
</script>[% END %][% END %]
47
<div id="header_search">
3
<div id="header_search">
48
	[% IF ( CAN_user_circulate ) %]
4
49
	<div id="circ_search" class="residentsearch" style="display:none;">
5
[% INCLUDE 'patron-search-box.inc' %]
50
	<p class="tip">Enter patron card number or partial name:</p>
6
51
    <form action="/cgi-bin/koha/circ/circulation.pl" method="post" autocomplete="off">
52
    [% IF ( CircAutocompl ) %]
53
    <div class="autocomplete">
54
            <div id="borrowerautocomplete" class="autocomplete">
55
                <input autocomplete="off" id="findborrower" name="findborrower" type="text" />
56
                <div id="yborrowercontainer"></div>
57
                <input id="ysearchsubmit" type="submit" class="submit" value="Submit" />
58
                <input name="branch" value="[% branch %]" type="hidden" />
59
                <input name="printer" value="" type="hidden" />
60
            </div>
61
        </div>
62
	[% ELSE %]
63
            <input id="findborrower" name="findborrower" size="40" type="text" />
64
            <input name="branch" value="[% branch %]" type="hidden" />
65
            <input name="printer" value="" type="hidden" />
66
            <input value="Submit" class="submit" type="submit" />
67
	[% END %]
68
    </form>
69
	</div>
70
	[% END %]
71
	
72
[% IF ( CAN_user_circulate ) %]
7
[% IF ( CAN_user_circulate ) %]
73
<div id="checkin_search" class="residentsearch" style="display:none;">
8
<div id="checkin_search" class="residentsearch" style="display:none;">
74
    <p class="tip">Scan a barcode to check in:</p>
9
    <p class="tip">Scan a barcode to check in:</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/cities-admin-search.inc (-66 / +3 lines)
Lines 1-49 Link Here
1
<div id="header" class="gradient">
1
<div id="header" class="gradient">
2
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Cities Resident Search Box -->
2
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Cities Resident Search Box -->
3
[% IF ( CAN_user_circulate ) %][% IF ( CircAutocompl ) %]<script type="text/javascript">
4
//<![CDATA[
5
YAHOO.util.Event.onContentReady("header_search", function() {
6
    new function() {
7
        // Define a custom formatter function
8
        this.fnCustomFormatter = function(oResultItem, sQuery) {
9
            var name        = oResultItem[0];
10
            var cardnumber  = oResultItem[1];
11
            var address     = oResultItem[2];
12
            var city        = oResultItem[3];
13
            var zip         = oResultItem[4];
14
            var aMarkup = [
15
                "<div class=\"sample-result\">",
16
                name,
17
                " (",
18
                cardnumber,
19
                ")<small> -- ",
20
                address,
21
                ", ",
22
                city,
23
                "<\/small>",
24
                "<\/div>"];
25
            return (aMarkup.join(""));
26
        };
27
28
        // Instantiate one XHR DataSource and define schema as an array:
29
        //     ["Record Delimiter",
30
        //     "Field Delimiter"]
31
        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
32
        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
33
        this.oACDS.maxCacheEntries = 60;
34
        this.oACDS.queryMatchSubset = true;
35
    
36
        // Instantiate first AutoComplete
37
        var myInput = document.getElementById('findborrower');
38
        var myContainer = document.getElementById('yborrowercontainer');
39
        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
40
        //this.oAutoComp.delimChar = ";";
41
        //this.oAutoComp.queryDelay = 1;
42
        this.oAutoComp.formatResult = this.fnCustomFormatter;
43
}
44
});    
45
//]]>
46
</script>[% END %][% END %]
47
<div id="header_search">
3
<div id="header_search">
48
	<div id="city_search" class="residentsearch">
4
	<div id="city_search" class="residentsearch">
49
    <p class="tip">City search:</p>
5
    <p class="tip">City search:</p>
Lines 52-79 YAHOO.util.Event.onContentReady("header_search", function() { Link Here
52
		<input type="submit" name="submit" value="OK" class="submit" />
8
		<input type="submit" name="submit" value="OK" class="submit" />
53
	</form>
9
	</form>
54
	</div>
10
	</div>
55
	[% IF ( CAN_user_circulate ) %]
11
56
	<div id="circ_search" class="residentsearch" style="display:none;">
12
    [% INCLUDE 'patron-search-box.inc' %]
57
	<p class="tip">Enter patron card number or partial name:</p>
13
58
    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
59
    [% IF ( CircAutocompl ) %]
60
    <div class="autocomplete">
61
            <div id="borrowerautocomplete" class="autocomplete">
62
                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
63
                <div id="yborrowercontainer"></div>
64
                <input id="ysearchsubmit" type="submit" class="submit" value="Submit" />
65
                <input name="branch" value="[% branch %]" type="hidden" />
66
                <input name="printer" value="" type="hidden" />
67
            </div>
68
        </div>
69
	[% ELSE %]
70
            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
71
            <input name="branch" value="[% branch %]" type="hidden" />
72
            <input name="printer" value="" type="hidden" />
73
            <input value="Submit" class="submit" type="submit" />
74
	[% END %]
75
    </form>
76
	</div>[% END %]
77
	[% IF ( CAN_user_catalogue ) %]
14
	[% IF ( CAN_user_catalogue ) %]
78
	<div id="catalog_search" class="residentsearch" style="display:none;">
15
	<div id="catalog_search" class="residentsearch" style="display:none;">
79
	<p class="tip">Enter search keywords:</p>
16
	<p class="tip">Enter search keywords:</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/contracts-admin-search.inc (-65 / +3 lines)
Lines 1-49 Link Here
1
1
2
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Patrons Admin Resident Search Box -->
2
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Patrons Admin Resident Search Box -->
3
[% IF ( CAN_user_circulate ) %][% IF ( CircAutocompl ) %]<script type="text/javascript">
4
//<![CDATA[
5
YAHOO.util.Event.onContentReady("header_search", function() {
6
    new function() {
7
        // Define a custom formatter function
8
        this.fnCustomFormatter = function(oResultItem, sQuery) {
9
            var name        = oResultItem[0];
10
            var cardnumber  = oResultItem[1];
11
            var address     = oResultItem[2];
12
            var city        = oResultItem[3];
13
            var zip         = oResultItem[4];
14
            var aMarkup = [
15
                "<div class=\"sample-result\">",
16
                name,
17
                " (",
18
                cardnumber,
19
                ")<small> -- ",
20
                address,
21
                ", ",
22
                city,
23
                "</small>",
24
                "</div>"];
25
            return (aMarkup.join(""));
26
        };
27
3
28
        // Instantiate one XHR DataSource and define schema as an array:
29
        //     ["Record Delimiter",
30
        //     "Field Delimiter"]
31
        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
32
        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
33
        this.oACDS.maxCacheEntries = 60;
34
        this.oACDS.queryMatchSubset = true;
35
    
36
        // Instantiate first AutoComplete
37
        var myInput = document.getElementById('findborrower');
38
        var myContainer = document.getElementById('yborrowercontainer');
39
        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
40
        //this.oAutoComp.delimChar = ";";
41
        //this.oAutoComp.queryDelay = 1;
42
        this.oAutoComp.formatResult = this.fnCustomFormatter;
43
}
44
});    
45
//]]>
46
</script>[% END %][% END %]
47
<div id="header_search">
4
<div id="header_search">
48
	<div id="contract_description_search" class="residentsearch">
5
	<div id="contract_description_search" class="residentsearch">
49
	<p class="tip">Search by contract name or/and description:</p>
6
	<p class="tip">Search by contract name or/and description:</p>
Lines 52-79 YAHOO.util.Event.onContentReady("header_search", function() { Link Here
52
		<input type="submit" class="submit" name="search" value="Search" />
9
		<input type="submit" class="submit" name="search" value="Search" />
53
	</form>	
10
	</form>	
54
	</div>
11
	</div>
55
	[% IF ( CAN_user_circulate ) %]
12
56
	<div id="circ_search" class="residentsearch" style="display:none;">
13
    [% INCLUDE 'patron-search-box.inc' %]
57
	<p class="tip">Enter patron card number or partial name:</p>
14
58
    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
59
    [% IF ( CircAutocompl ) %]
60
    <div class="autocomplete">
61
            <div id="borrowerautocomplete" class="autocomplete">
62
                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
63
                <div id="yborrowercontainer"></div>
64
                <input id="ysearchsubmit" type="submit" class="submit" value="Submit" />
65
                <input name="branch" value="[% branch %]" type="hidden" />
66
                <input name="printer" value="" type="hidden" />
67
            </div>
68
        </div>
69
	[% ELSE %]
70
            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
71
            <input name="branch" value="[% branch %]" type="hidden" />
72
            <input name="printer" value="" type="hidden" />
73
            <input value="Submit" class="submit" type="submit" />
74
	[% END %]
75
    </form>
76
	</div>	[% END %]
77
	[% IF ( CAN_user_catalogue ) %]
15
	[% IF ( CAN_user_catalogue ) %]
78
	<div id="catalog_search" class="residentsearch" style="display:none;">
16
	<div id="catalog_search" class="residentsearch" style="display:none;">
79
	<p class="tip">Enter search keywords:</p>
17
	<p class="tip">Enter search keywords:</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/doc-head-close.inc (+2 lines)
Lines 1-5 Link Here
1
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
1
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
2
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% themelang %]/includes/favicon.ico[% END %]" type="image/x-icon" />
2
<link rel="shortcut icon" href="[% IF ( IntranetFavicon ) %][% IntranetFavicon %][% ELSE %][% themelang %]/includes/favicon.ico[% END %]" type="image/x-icon" />
3
<link rel="stylesheet" type="text/css" href="[% themelang %]/lib/jquery/jquery-ui.css" />
3
<link rel="stylesheet" type="text/css" href="[% themelang %]/lib/jquery/plugins/ui.tabs.css" />
4
<link rel="stylesheet" type="text/css" href="[% themelang %]/lib/jquery/plugins/ui.tabs.css" />
4
<link rel="stylesheet" type="text/css" media="print" href="[% themelang %]/css/print.css" />
5
<link rel="stylesheet" type="text/css" media="print" href="[% themelang %]/css/print.css" />
5
[% IF ( intranetstylesheet ) %]
6
[% IF ( intranetstylesheet ) %]
Lines 10-15 Link Here
10
[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
11
[% IF ( IntranetUserCSS ) %]<style type="text/css">[% IntranetUserCSS %]</style>[% END %]
11
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery.js"></script>
12
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery.js"></script>
12
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/ui.tabs.js"></script>
13
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/ui.tabs.js"></script>
14
<script type="text/javascript" src="[% themelang %]/lib/jquery/jquery-ui.js"></script>
13
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.hotkeys.min.js"></script>
15
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.hotkeys.min.js"></script>
14
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.cookie.min.js"></script>
16
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.cookie.min.js"></script>
15
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.highlight-3.js"></script>
17
<script type="text/javascript" src="[% themelang %]/lib/jquery/plugins/jquery.highlight-3.js"></script>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search-box.inc (-44 / +21 lines)
Lines 1-55 Link Here
1
[% IF ( CAN_user_circulate ) %][% IF ( CircAutocompl ) %]<script type="text/javascript">
1
[% IF ( CAN_user_circulate ) %][% IF ( CircAutocompl ) %]<script type="text/javascript">
2
//<![CDATA[
2
//<![CDATA[
3
YAHOO.util.Event.onContentReady("header_search", function() {
3
$(document).ready(function(){
4
    new function() {
4
    $( "#findborrower" ).autocomplete({
5
        // Define a custom formatter function
5
        source: "/cgi-bin/koha/circ/ysearch.pl",
6
        this.fnCustomFormatter = function(oResultItem, sQuery) {
6
        minLength: 3,
7
            var name        = oResultItem[0];
7
        select: function( event, ui ) {
8
            var cardnumber  = oResultItem[1];
8
            $( "#findborrower" ).val( ui.item.cardnumber );
9
            var address     = oResultItem[2];
9
            $("#patronsearch").submit();
10
            var city        = oResultItem[3];
10
            return false;
11
            var zip         = oResultItem[4];
11
        }
12
            var aMarkup = [
12
    })
13
                "<div class=\"sample-result\">",
13
    .data( "autocomplete" )._renderItem = function( ul, item ) {
14
                name,
14
        return $( "<li></li>" )
15
                " (",
15
        .data( "item.autocomplete", item )
16
                cardnumber,
16
        .append( "<a>" + item.surname + ", " + item.firstname + " (" + item.cardnumber + ") <small>" + item.address + " " + item.city + " " + item.zipcode + " " + item.country + "</small></a>" )
17
                ")<small> -- ",
17
        .appendTo( ul );
18
                address,
18
    };
19
                ", ",
20
                city,
21
                "<\/small>",
22
                "<\/div>"];
23
            return (aMarkup.join(""));
24
        };
25
19
26
        // Instantiate one XHR DataSource and define schema as an array:
20
});
27
        //     ["Record Delimiter",
28
        //     "Field Delimiter"]
29
        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
30
        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
31
        this.oACDS.maxCacheEntries = 60;
32
        this.oACDS.queryMatchSubset = true;
33
    
34
        // Instantiate first AutoComplete
35
        var myInput = document.getElementById('findborrower');
36
        var myContainer = document.getElementById('yborrowercontainer');
37
        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
38
        //this.oAutoComp.delimChar = ";";
39
        //this.oAutoComp.queryDelay = 1;
40
        this.oAutoComp.formatResult = this.fnCustomFormatter;
41
}
42
});    
43
//]]>
21
//]]>
44
</script>[% END %]
22
</script>[% END %]
45
	<div id="circ_search" class="residentsearch" style="display:none;">
23
    <div id="circ_search" class="residentsearch">
46
	<p class="tip">Enter patron card number or partial name:</p>
24
    <p class="tip">Enter patron card number or partial name:</p>
47
    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
25
    <form action="/cgi-bin/koha/circ/circulation.pl" id="patronsearch" method="post">
48
    [% IF ( CircAutocompl ) %]
26
    [% IF ( CircAutocompl ) %]
49
    <div class="autocomplete">
27
    <div class="autocomplete">
50
            <div id="borrowerautocomplete" class="autocomplete">
28
            <div id="borrowerautocomplete" class="autocomplete">
51
                <input autocomplete="off" id="findborrower" name="findborrower" size="40" class="focus" type="text" /> <input id="ysearchsubmit" type="submit" class="submit" value="Submit" />
29
                <input autocomplete="off" id="findborrower" name="findborrower" size="40" class="focus" type="text" /> <input id="autocsubmit" type="submit" class="submit" value="Submit" />
52
                <div id="yborrowercontainer"></div>
53
                <input name="branch" value="[% branch %]" type="hidden" />
30
                <input name="branch" value="[% branch %]" type="hidden" />
54
                <input name="printer" value="" type="hidden" />
31
                <input name="printer" value="" type="hidden" />
55
            [% IF ( stickyduedate ) %]
32
            [% IF ( stickyduedate ) %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-66 / +3 lines)
Lines 1-49 Link Here
1
<div class="gradient">
1
<div class="gradient">
2
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Patrons Resident Search Box -->
2
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Patrons Resident Search Box -->
3
[% IF ( CAN_user_circulate ) %][% IF ( CircAutocompl ) %]<script type="text/javascript">
4
//<![CDATA[
5
YAHOO.util.Event.onContentReady("header_search", function() {
6
    new function() {
7
        // Define a custom formatter function
8
        this.fnCustomFormatter = function(oResultItem, sQuery) {
9
            var name        = oResultItem[0];
10
            var cardnumber  = oResultItem[1];
11
            var address     = oResultItem[2];
12
            var city        = oResultItem[3];
13
            var zip         = oResultItem[4];
14
            var aMarkup = [
15
                "<div class=\"sample-result\">",
16
                name,
17
                " (",
18
                cardnumber,
19
                ")<small> -- ",
20
                address,
21
                ", ",
22
                city,
23
                "<\/small>",
24
                "<\/div>"];
25
            return (aMarkup.join(""));
26
        };
27
28
        // Instantiate one XHR DataSource and define schema as an array:
29
        //     ["Record Delimiter",
30
        //     "Field Delimiter"]
31
        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
32
        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
33
        this.oACDS.maxCacheEntries = 60;
34
        this.oACDS.queryMatchSubset = true;
35
36
        // Instantiate first AutoComplete
37
        var myInput = document.getElementById('findborrower');
38
        var myContainer = document.getElementById('yborrowercontainer');
39
        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
40
        //this.oAutoComp.delimChar = ";";
41
        //this.oAutoComp.queryDelay = 1;
42
        this.oAutoComp.formatResult = this.fnCustomFormatter;
43
}
44
});
45
//]]>
46
</script>[% END %][% END %]
47
<div id="header_search">
3
<div id="header_search">
48
	<div id="patron_search" class="residentsearch">
4
	<div id="patron_search" class="residentsearch">
49
	<p class="tip">Enter patron card number or partial name:</p>
5
	<p class="tip">Enter patron card number or partial name:</p>
Lines 85-112 YAHOO.util.Event.onContentReady("header_search", function() { Link Here
85
	[% END %]
41
	[% END %]
86
</form>
42
</form>
87
	</div>
43
	</div>
88
	[% IF ( CAN_user_circulate ) %]
44
89
	<div id="circ_search" class="residentsearch" style="display:none;">
45
    [% INCLUDE 'patron-search-box.inc' %]
90
	<p class="tip">Enter patron card number or partial name:</p>
46
91
    <form action="/cgi-bin/koha/circ/circulation.pl" method="post" autocomplete="off">
92
    [% IF ( CircAutocompl ) %]
93
    <div class="autocomplete">
94
            <div id="borrowerautocomplete" class="autocomplete">
95
                <input autocomplete="off" id="findborrower" name="findborrower" type="text" />
96
                <div id="yborrowercontainer"></div>
97
                <input id="ysearchsubmit" type="submit" class="submit" value="Submit" />
98
                <input name="branch" value="[% branch %]" type="hidden" />
99
                <input name="printer" value="" type="hidden" />
100
            </div>
101
        </div>
102
	[% ELSE %]
103
            <input id="findborrower" name="findborrower" size="40" type="text" />
104
            <input name="branch" value="[% branch %]" type="hidden" />
105
            <input name="printer" value="" type="hidden" />
106
            <input value="Submit" class="submit" type="submit" />
107
	[% END %]
108
    </form>
109
	</div>[% END %]
110
	[% IF ( CAN_user_catalogue ) %]
47
	[% IF ( CAN_user_catalogue ) %]
111
	<div id="catalog_search" class="residentsearch" style="display:none;">
48
	<div id="catalog_search" class="residentsearch" style="display:none;">
112
	<p class="tip">Enter search keywords:</p>
49
	<p class="tip">Enter search keywords:</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/roadtype-admin-search.inc (-67 / +3 lines)
Lines 1-50 Link Here
1
1
2
<div id="header" class="gradient">
2
<div id="header" class="gradient">
3
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Roads Resident Search Box -->
3
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Roads Resident Search Box -->
4
[% IF ( CAN_user_circulate ) %][% IF ( CircAutocompl ) %]<script type="text/javascript">
5
//<![CDATA[
6
YAHOO.util.Event.onContentReady("header_search", function() {
7
    new function() {
8
        // Define a custom formatter function
9
        this.fnCustomFormatter = function(oResultItem, sQuery) {
10
            var name        = oResultItem[0];
11
            var cardnumber  = oResultItem[1];
12
            var address     = oResultItem[2];
13
            var city        = oResultItem[3];
14
            var zip         = oResultItem[4];
15
            var aMarkup = [
16
                "<div class=\"sample-result\">",
17
                name,
18
                " (",
19
                cardnumber,
20
                ")<small> -- ",
21
                address,
22
                ", ",
23
                city,
24
                "<\/small>",
25
                "<\/div>"];
26
            return (aMarkup.join(""));
27
        };
28
29
        // Instantiate one XHR DataSource and define schema as an array:
30
        //     ["Record Delimiter",
31
        //     "Field Delimiter"]
32
        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
33
        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
34
        this.oACDS.maxCacheEntries = 60;
35
        this.oACDS.queryMatchSubset = true;
36
    
37
        // Instantiate first AutoComplete
38
        var myInput = document.getElementById('findborrower');
39
        var myContainer = document.getElementById('yborrowercontainer');
40
        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
41
        //this.oAutoComp.delimChar = ";";
42
        //this.oAutoComp.queryDelay = 1;
43
        this.oAutoComp.formatResult = this.fnCustomFormatter;
44
}
45
});    
46
//]]>
47
</script>[% END %][% END %]
48
<div id="header_search">
4
<div id="header_search">
49
     <div id="roadtype_search" class="residentsearch ui-tabs-panel">
5
     <div id="roadtype_search" class="residentsearch ui-tabs-panel">
50
        <p class="tip">Road type search:</p>
6
        <p class="tip">Road type search:</p>
Lines 53-81 YAHOO.util.Event.onContentReady("header_search", function() { Link Here
53
		<input type="submit" name="submit" value="OK" class="submit" />
9
		<input type="submit" name="submit" value="OK" class="submit" />
54
	</form>
10
	</form>
55
	</div>
11
	</div>
56
	[% IF ( CAN_user_circulate ) %]
12
57
	<div id="circ_search" class="residentsearch" style="display:none;">
13
    [% INCLUDE 'patron-search-box.inc' %]
58
	<p class="tip">Enter patron card number or partial name:</p>
14
59
    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
60
    [% IF ( CircAutocompl ) %]
61
    <div class="autocomplete">
62
            <div id="borrowerautocomplete" class="autocomplete">
63
                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
64
                <div id="yborrowercontainer"></div>
65
                <input id="ysearchsubmit" type="submit" class="submit" value="Submit" />
66
                <input name="branch" value="[% branch %]" type="hidden" />
67
                <input name="printer" value="" type="hidden" />
68
            </div>
69
        </div>
70
	[% ELSE %]
71
            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
72
            <input name="branch" value="[% branch %]" type="hidden" />
73
            <input name="printer" value="" type="hidden" />
74
            <input value="Submit" class="submit" type="submit" />
75
	[% END %]
76
    </form>
77
	</div>
78
	[% END %]
79
	[% IF ( CAN_user_catalogue ) %]
15
	[% IF ( CAN_user_catalogue ) %]
80
	<div id="catalog_search" class="residentsearch" style="display:none;">
16
	<div id="catalog_search" class="residentsearch" style="display:none;">
81
	<p class="tip">Enter search keywords:</p>
17
	<p class="tip">Enter search keywords:</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/suggestions-add-search.inc (-67 / +3 lines)
Lines 1-49 Link Here
1
1
2
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Suggestions Resident Search Box -->
2
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin Suggestions Resident Search Box -->
3
[% IF ( CAN_user_circulate ) %][% IF ( CircAutocompl ) %]<script type="text/javascript">
4
//<![CDATA[
5
YAHOO.util.Event.onContentReady("header_search", function() {
6
    new function() {
7
        // Define a custom formatter function
8
        this.fnCustomFormatter = function(oResultItem, sQuery) {
9
            var name        = oResultItem[0];
10
            var cardnumber  = oResultItem[1];
11
            var address     = oResultItem[2];
12
            var city        = oResultItem[3];
13
            var zip         = oResultItem[4];
14
            var aMarkup = [
15
                "<div class=\"sample-result\">",
16
                name,
17
                " (",
18
                cardnumber,
19
                ")<small> -- ",
20
                address,
21
                ", ",
22
                city,
23
                "</small>",
24
                "</div>"];
25
            return (aMarkup.join(""));
26
        };
27
28
        // Instantiate one XHR DataSource and define schema as an array:
29
        //     ["Record Delimiter",
30
        //     "Field Delimiter"]
31
        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
32
        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
33
        this.oACDS.maxCacheEntries = 60;
34
        this.oACDS.queryMatchSubset = true;
35
    
36
        // Instantiate first AutoComplete
37
        var myInput = document.getElementById('findborrower');
38
        var myContainer = document.getElementById('yborrowercontainer');
39
        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
40
        //this.oAutoComp.delimChar = ";";
41
        //this.oAutoComp.queryDelay = 1;
42
        this.oAutoComp.formatResult = this.fnCustomFormatter;
43
}
44
});
45
 //]]>
46
 </script>  [% END %][% END %]
47
<div id="header_search">
3
<div id="header_search">
48
	<div id="suggestions_search" class="residentsearch">
4
	<div id="suggestions_search" class="residentsearch">
49
    <p class="tip">Suggestions search:</p>
5
    <p class="tip">Suggestions search:</p>
Lines 55-83 YAHOO.util.Event.onContentReady("header_search", function() { Link Here
55
    <input type="submit" class="submit" value="Search" />
11
    <input type="submit" class="submit" value="Search" />
56
        </form>
12
        </form>
57
	</div>
13
	</div>
58
[% IF ( CAN_user_circulate ) %]
14
59
<div id="circ_search" class="residentsearch" style="display:none;">
15
    [% INCLUDE 'patron-search-box.inc' %]
60
	<p class="tip">Enter patron card number or partial name:</p>
16
61
    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
62
    [% IF ( CircAutocompl ) %]
63
    <div class="autocomplete">
64
            <div id="borrowerautocomplete" class="autocomplete">
65
                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
66
                <div id="yborrowercontainer"></div>
67
                <input id="ysearchsubmit" type="submit" class="submit" value="Submit" />
68
                <input name="branch" value="[% branch %]" type="hidden" />
69
                <input name="printer" value="" type="hidden" />
70
            </div>
71
        </div>
72
	[% ELSE %]
73
            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
74
            <input name="branch" value="[% branch %]" type="hidden" />
75
            <input name="printer" value="" type="hidden" />
76
            <input value="Submit" class="submit" type="submit" />
77
	[% END %]
78
    </form>
79
</div>
80
	[% END %]
81
	[% IF ( CAN_user_catalogue ) %]
17
	[% IF ( CAN_user_catalogue ) %]
82
	<div id="catalog_search" class="residentsearch" style="display:none;">
18
	<div id="catalog_search" class="residentsearch" style="display:none;">
83
	<p class="tip">Enter search keywords:</p>
19
	<p class="tip">Enter search keywords:</p>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/z3950-admin-search.inc (-67 / +4 lines)
Lines 1-49 Link Here
1
<div id="header" class="gradient">
1
<div id="header" class="gradient">
2
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin z3950 Admin Resident Search Box -->
2
<h1 id="logo"><a href="/cgi-bin/koha/mainpage.pl">[% LibraryName %]</a></h1><!-- Begin z3950 Admin Resident Search Box -->
3
[% IF ( CAN_user_circulate ) %][% IF ( CircAutocompl ) %]<script type="text/javascript">
4
//<![CDATA[
5
YAHOO.util.Event.onContentReady("header_search", function() {
6
    new function() {
7
        // Define a custom formatter function
8
        this.fnCustomFormatter = function(oResultItem, sQuery) {
9
            var name        = oResultItem[0];
10
            var cardnumber  = oResultItem[1];
11
            var address     = oResultItem[2];
12
            var city        = oResultItem[3];
13
            var zip         = oResultItem[4];
14
            var aMarkup = [
15
                "<div class=\"sample-result\">",
16
                name,
17
                " (",
18
                cardnumber,
19
                ")<small> -- ",
20
                address,
21
                ", ",
22
                city,
23
                "</small>",
24
                "</div>"];
25
            return (aMarkup.join(""));
26
        };
27
28
        // Instantiate one XHR DataSource and define schema as an array:
29
        //     ["Record Delimiter",
30
        //     "Field Delimiter"]
31
        this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ysearch.pl", ["\n", "\t"]);
32
        this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
33
        this.oACDS.maxCacheEntries = 60;
34
        this.oACDS.queryMatchSubset = true;
35
    
36
        // Instantiate first AutoComplete
37
        var myInput = document.getElementById('findborrower');
38
        var myContainer = document.getElementById('yborrowercontainer');
39
        this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
40
        //this.oAutoComp.delimChar = ";";
41
        //this.oAutoComp.queryDelay = 1;
42
        this.oAutoComp.formatResult = this.fnCustomFormatter;
43
}
44
});    
45
//]]>
46
</script>[% END %][% END %]
47
<div id="header_search">
3
<div id="header_search">
48
	<div id="z3950_search" class="residentsearch">
4
	<div id="z3950_search" class="residentsearch">
49
    <p class="tip">Z39.50 server search:</p>
5
    <p class="tip">Z39.50 server search:</p>
Lines 52-80 YAHOO.util.Event.onContentReady("header_search", function() { Link Here
52
                <input type="submit" class="submit" name="search" value="Search" />
8
                <input type="submit" class="submit" name="search" value="Search" />
53
        </form>
9
        </form>
54
	</div>
10
	</div>
55
	[% IF ( CAN_user_circulate ) %]
11
56
<div id="circ_search" class="residentsearch" style="display:none;">
12
    [% INCLUDE 'patron-search-box.inc' %]
57
	<p class="tip">Enter patron card number or partial name:</p>
13
58
    <form action="/cgi-bin/koha/circ/circulation.pl" method="post">
59
 [% IF ( CircAutocompl ) %]
60
    <div class="autocomplete">
61
            <div id="borrowerautocomplete" class="autocomplete">
62
                <input autocomplete="off" id="findborrower" name="findborrower" class="focus" type="text" />
63
                <div id="yborrowercontainer"></div>
64
                <input id="ysearchsubmit" type="submit" class="submit" value="Submit" />
65
                <input name="branch" value="[% branch %]" type="hidden" />
66
                <input name="printer" value="" type="hidden" />
67
            </div>
68
        </div>
69
	[% ELSE %]
70
            <input id="findborrower" name="findborrower" size="40" class="focus" type="text" />
71
            <input name="branch" value="[% branch %]" type="hidden" />
72
            <input name="printer" value="" type="hidden" />
73
            <input value="Submit" class="submit" type="submit" />
74
	[% END %]
75
    </form>
76
</div>
77
	[% END %]
78
	[% IF ( CAN_user_catalogue ) %]
14
	[% IF ( CAN_user_catalogue ) %]
79
	<div id="catalog_search" class="residentsearch" style="display:none;">
15
	<div id="catalog_search" class="residentsearch" style="display:none;">
80
	<p class="tip">Enter search keywords:</p>
16
	<p class="tip">Enter search keywords:</p>
Lines 92-94 YAHOO.util.Event.onContentReady("header_search", function() { Link Here
92
</div>
28
</div>
93
</div>
29
</div>
94
<!-- End Members Resident Search Box -->
30
<!-- End Members Resident Search Box -->
31
curr
(-)a/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/jquery-ui.css (+339 lines)
Line 0 Link Here
1
/*
2
 * jQuery UI CSS Framework 1.8.18
3
 *
4
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5
 * Dual licensed under the MIT or GPL Version 2 licenses.
6
 * http://jquery.org/license
7
 *
8
 * http://docs.jquery.com/UI/Theming/API
9
 */
10
11
/* Layout helpers
12
----------------------------------*/
13
.ui-helper-hidden { display: none; }
14
.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
15
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
16
.ui-helper-clearfix:before, .ui-helper-clearfix:after { content: ""; display: table; }
17
.ui-helper-clearfix:after { clear: both; }
18
.ui-helper-clearfix { zoom: 1; }
19
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
20
21
22
/* Interaction Cues
23
----------------------------------*/
24
.ui-state-disabled { cursor: default !important; }
25
26
27
/* Icons
28
----------------------------------*/
29
30
/* states and images */
31
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
32
33
34
/* Misc visuals
35
----------------------------------*/
36
37
/* Overlays */
38
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
39
40
41
/*
42
 * jQuery UI CSS Framework 1.8.18
43
 *
44
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
45
 * Dual licensed under the MIT or GPL Version 2 licenses.
46
 * http://jquery.org/license
47
 *
48
 * http://docs.jquery.com/UI/Theming/API
49
 *
50
 * To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana,Arial,sans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=cccccc&bgTextureHeader=03_highlight_soft.png&bgImgOpacityHeader=75&borderColorHeader=aaaaaa&fcHeader=222222&iconColorHeader=222222&bgColorContent=ffffff&bgTextureContent=01_flat.png&bgImgOpacityContent=75&borderColorContent=aaaaaa&fcContent=222222&iconColorContent=222222&bgColorDefault=e6e6e6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=75&borderColorDefault=d3d3d3&fcDefault=555555&iconColorDefault=888888&bgColorHover=dadada&bgTextureHover=02_glass.png&bgImgOpacityHover=75&borderColorHover=999999&fcHover=212121&iconColorHover=454545&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=aaaaaa&fcActive=212121&iconColorActive=454545&bgColorHighlight=fbf9ee&bgTextureHighlight=02_glass.png&bgImgOpacityHighlight=55&borderColorHighlight=fcefa1&fcHighlight=363636&iconColorHighlight=2e83ff&bgColorError=fef1ec&bgTextureError=02_glass.png&bgImgOpacityError=95&borderColorError=cd0a0a&fcError=cd0a0a&iconColorError=cd0a0a&bgColorOverlay=aaaaaa&bgTextureOverlay=01_flat.png&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=aaaaaa&bgTextureShadow=01_flat.png&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
51
 */
52
53
54
/* Component containers
55
----------------------------------*/
56
.ui-widget { font-family: Verdana,Arial,sans-serif; font-size: 1.1em; }
57
.ui-widget .ui-widget { font-size: 1em; }
58
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Verdana,Arial,sans-serif; font-size: 1em; }
59
.ui-widget-content { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_flat_75_ffffff_40x100.png) 50% 50% repeat-x; color: #222222; }
60
.ui-widget-content a { color: #222222; }
61
.ui-widget-header { border: 1px solid #aaaaaa; background: #cccccc url(images/ui-bg_highlight-soft_75_cccccc_1x100.png) 50% 50% repeat-x; color: #222222; font-weight: bold; }
62
.ui-widget-header a { color: #222222; }
63
64
/* Interaction states
65
----------------------------------*/
66
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #d3d3d3; background: #e6e6e6 url(images/ui-bg_glass_75_e6e6e6_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #555555; }
67
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #555555; text-decoration: none; }
68
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #999999; background: #dadada url(images/ui-bg_glass_75_dadada_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; }
69
.ui-state-hover a, .ui-state-hover a:hover { color: #212121; text-decoration: none; }
70
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #aaaaaa; background: #ffffff url(images/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: normal; color: #212121; }
71
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #212121; text-decoration: none; }
72
.ui-widget :active { outline: none; }
73
74
/* Interaction Cues
75
----------------------------------*/
76
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight  {border: 1px solid #fcefa1; background: #fbf9ee url(images/ui-bg_glass_55_fbf9ee_1x400.png) 50% 50% repeat-x; color: #363636; }
77
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
78
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #fef1ec url(images/ui-bg_glass_95_fef1ec_1x400.png) 50% 50% repeat-x; color: #cd0a0a; }
79
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #cd0a0a; }
80
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #cd0a0a; }
81
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
82
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary,  .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
83
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
84
85
/* Icons
86
----------------------------------*/
87
88
/* states and images */
89
.ui-icon { width: 16px; height: 16px; background-image: url(images/ui-icons_222222_256x240.png); }
90
.ui-widget-content .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
91
.ui-widget-header .ui-icon {background-image: url(images/ui-icons_222222_256x240.png); }
92
.ui-state-default .ui-icon { background-image: url(images/ui-icons_888888_256x240.png); }
93
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
94
.ui-state-active .ui-icon {background-image: url(images/ui-icons_454545_256x240.png); }
95
.ui-state-highlight .ui-icon {background-image: url(images/ui-icons_2e83ff_256x240.png); }
96
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(images/ui-icons_cd0a0a_256x240.png); }
97
98
/* positioning */
99
.ui-icon-carat-1-n { background-position: 0 0; }
100
.ui-icon-carat-1-ne { background-position: -16px 0; }
101
.ui-icon-carat-1-e { background-position: -32px 0; }
102
.ui-icon-carat-1-se { background-position: -48px 0; }
103
.ui-icon-carat-1-s { background-position: -64px 0; }
104
.ui-icon-carat-1-sw { background-position: -80px 0; }
105
.ui-icon-carat-1-w { background-position: -96px 0; }
106
.ui-icon-carat-1-nw { background-position: -112px 0; }
107
.ui-icon-carat-2-n-s { background-position: -128px 0; }
108
.ui-icon-carat-2-e-w { background-position: -144px 0; }
109
.ui-icon-triangle-1-n { background-position: 0 -16px; }
110
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
111
.ui-icon-triangle-1-e { background-position: -32px -16px; }
112
.ui-icon-triangle-1-se { background-position: -48px -16px; }
113
.ui-icon-triangle-1-s { background-position: -64px -16px; }
114
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
115
.ui-icon-triangle-1-w { background-position: -96px -16px; }
116
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
117
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
118
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
119
.ui-icon-arrow-1-n { background-position: 0 -32px; }
120
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
121
.ui-icon-arrow-1-e { background-position: -32px -32px; }
122
.ui-icon-arrow-1-se { background-position: -48px -32px; }
123
.ui-icon-arrow-1-s { background-position: -64px -32px; }
124
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
125
.ui-icon-arrow-1-w { background-position: -96px -32px; }
126
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
127
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
128
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
129
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
130
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
131
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
132
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
133
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
134
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
135
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
136
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
137
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
138
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
139
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
140
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
141
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
142
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
143
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
144
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
145
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
146
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
147
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
148
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
149
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
150
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
151
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
152
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
153
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
154
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
155
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
156
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
157
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
158
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
159
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
160
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
161
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
162
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
163
.ui-icon-arrow-4 { background-position: 0 -80px; }
164
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
165
.ui-icon-extlink { background-position: -32px -80px; }
166
.ui-icon-newwin { background-position: -48px -80px; }
167
.ui-icon-refresh { background-position: -64px -80px; }
168
.ui-icon-shuffle { background-position: -80px -80px; }
169
.ui-icon-transfer-e-w { background-position: -96px -80px; }
170
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
171
.ui-icon-folder-collapsed { background-position: 0 -96px; }
172
.ui-icon-folder-open { background-position: -16px -96px; }
173
.ui-icon-document { background-position: -32px -96px; }
174
.ui-icon-document-b { background-position: -48px -96px; }
175
.ui-icon-note { background-position: -64px -96px; }
176
.ui-icon-mail-closed { background-position: -80px -96px; }
177
.ui-icon-mail-open { background-position: -96px -96px; }
178
.ui-icon-suitcase { background-position: -112px -96px; }
179
.ui-icon-comment { background-position: -128px -96px; }
180
.ui-icon-person { background-position: -144px -96px; }
181
.ui-icon-print { background-position: -160px -96px; }
182
.ui-icon-trash { background-position: -176px -96px; }
183
.ui-icon-locked { background-position: -192px -96px; }
184
.ui-icon-unlocked { background-position: -208px -96px; }
185
.ui-icon-bookmark { background-position: -224px -96px; }
186
.ui-icon-tag { background-position: -240px -96px; }
187
.ui-icon-home { background-position: 0 -112px; }
188
.ui-icon-flag { background-position: -16px -112px; }
189
.ui-icon-calendar { background-position: -32px -112px; }
190
.ui-icon-cart { background-position: -48px -112px; }
191
.ui-icon-pencil { background-position: -64px -112px; }
192
.ui-icon-clock { background-position: -80px -112px; }
193
.ui-icon-disk { background-position: -96px -112px; }
194
.ui-icon-calculator { background-position: -112px -112px; }
195
.ui-icon-zoomin { background-position: -128px -112px; }
196
.ui-icon-zoomout { background-position: -144px -112px; }
197
.ui-icon-search { background-position: -160px -112px; }
198
.ui-icon-wrench { background-position: -176px -112px; }
199
.ui-icon-gear { background-position: -192px -112px; }
200
.ui-icon-heart { background-position: -208px -112px; }
201
.ui-icon-star { background-position: -224px -112px; }
202
.ui-icon-link { background-position: -240px -112px; }
203
.ui-icon-cancel { background-position: 0 -128px; }
204
.ui-icon-plus { background-position: -16px -128px; }
205
.ui-icon-plusthick { background-position: -32px -128px; }
206
.ui-icon-minus { background-position: -48px -128px; }
207
.ui-icon-minusthick { background-position: -64px -128px; }
208
.ui-icon-close { background-position: -80px -128px; }
209
.ui-icon-closethick { background-position: -96px -128px; }
210
.ui-icon-key { background-position: -112px -128px; }
211
.ui-icon-lightbulb { background-position: -128px -128px; }
212
.ui-icon-scissors { background-position: -144px -128px; }
213
.ui-icon-clipboard { background-position: -160px -128px; }
214
.ui-icon-copy { background-position: -176px -128px; }
215
.ui-icon-contact { background-position: -192px -128px; }
216
.ui-icon-image { background-position: -208px -128px; }
217
.ui-icon-video { background-position: -224px -128px; }
218
.ui-icon-script { background-position: -240px -128px; }
219
.ui-icon-alert { background-position: 0 -144px; }
220
.ui-icon-info { background-position: -16px -144px; }
221
.ui-icon-notice { background-position: -32px -144px; }
222
.ui-icon-help { background-position: -48px -144px; }
223
.ui-icon-check { background-position: -64px -144px; }
224
.ui-icon-bullet { background-position: -80px -144px; }
225
.ui-icon-radio-off { background-position: -96px -144px; }
226
.ui-icon-radio-on { background-position: -112px -144px; }
227
.ui-icon-pin-w { background-position: -128px -144px; }
228
.ui-icon-pin-s { background-position: -144px -144px; }
229
.ui-icon-play { background-position: 0 -160px; }
230
.ui-icon-pause { background-position: -16px -160px; }
231
.ui-icon-seek-next { background-position: -32px -160px; }
232
.ui-icon-seek-prev { background-position: -48px -160px; }
233
.ui-icon-seek-end { background-position: -64px -160px; }
234
.ui-icon-seek-start { background-position: -80px -160px; }
235
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
236
.ui-icon-seek-first { background-position: -80px -160px; }
237
.ui-icon-stop { background-position: -96px -160px; }
238
.ui-icon-eject { background-position: -112px -160px; }
239
.ui-icon-volume-off { background-position: -128px -160px; }
240
.ui-icon-volume-on { background-position: -144px -160px; }
241
.ui-icon-power { background-position: 0 -176px; }
242
.ui-icon-signal-diag { background-position: -16px -176px; }
243
.ui-icon-signal { background-position: -32px -176px; }
244
.ui-icon-battery-0 { background-position: -48px -176px; }
245
.ui-icon-battery-1 { background-position: -64px -176px; }
246
.ui-icon-battery-2 { background-position: -80px -176px; }
247
.ui-icon-battery-3 { background-position: -96px -176px; }
248
.ui-icon-circle-plus { background-position: 0 -192px; }
249
.ui-icon-circle-minus { background-position: -16px -192px; }
250
.ui-icon-circle-close { background-position: -32px -192px; }
251
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
252
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
253
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
254
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
255
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
256
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
257
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
258
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
259
.ui-icon-circle-zoomin { background-position: -176px -192px; }
260
.ui-icon-circle-zoomout { background-position: -192px -192px; }
261
.ui-icon-circle-check { background-position: -208px -192px; }
262
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
263
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
264
.ui-icon-circlesmall-close { background-position: -32px -208px; }
265
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
266
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
267
.ui-icon-squaresmall-close { background-position: -80px -208px; }
268
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
269
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
270
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
271
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
272
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
273
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
274
275
276
/* Misc visuals
277
----------------------------------*/
278
279
/* Corner radius */
280
.ui-corner-all, .ui-corner-top, .ui-corner-left, .ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; -khtml-border-top-left-radius: 4px; border-top-left-radius: 4px; }
281
.ui-corner-all, .ui-corner-top, .ui-corner-right, .ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; -khtml-border-top-right-radius: 4px; border-top-right-radius: 4px; }
282
.ui-corner-all, .ui-corner-bottom, .ui-corner-left, .ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; -khtml-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
283
.ui-corner-all, .ui-corner-bottom, .ui-corner-right, .ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; -khtml-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
284
285
/* Overlays */
286
.ui-widget-overlay { background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); }
287
.ui-widget-shadow { margin: -8px 0 0 -8px; padding: 8px; background: #aaaaaa url(images/ui-bg_flat_0_aaaaaa_40x100.png) 50% 50% repeat-x; opacity: .30;filter:Alpha(Opacity=30); -moz-border-radius: 8px; -khtml-border-radius: 8px; -webkit-border-radius: 8px; border-radius: 8px; }/*
288
 * jQuery UI Autocomplete 1.8.18
289
 *
290
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
291
 * Dual licensed under the MIT or GPL Version 2 licenses.
292
 * http://jquery.org/license
293
 *
294
 * http://docs.jquery.com/UI/Autocomplete#theming
295
 */
296
.ui-autocomplete { position: absolute; cursor: default; }
297
298
/* workarounds */
299
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
300
301
/*
302
 * jQuery UI Menu 1.8.18
303
 *
304
 * Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
305
 * Dual licensed under the MIT or GPL Version 2 licenses.
306
 * http://jquery.org/license
307
 *
308
 * http://docs.jquery.com/UI/Menu#theming
309
 */
310
.ui-menu {
311
	list-style:none;
312
	padding: 2px;
313
	margin: 0;
314
	display:block;
315
	float: left;
316
}
317
.ui-menu .ui-menu {
318
	margin-top: -3px;
319
}
320
.ui-menu .ui-menu-item {
321
	margin:0;
322
	padding: 0;
323
	zoom: 1;
324
	float: left;
325
	clear: left;
326
	width: 100%;
327
}
328
.ui-menu .ui-menu-item a {
329
	text-decoration:none;
330
	display:block;
331
	padding:.2em .4em;
332
	line-height:1.5;
333
	zoom:1;
334
}
335
.ui-menu .ui-menu-item a.ui-state-hover,
336
.ui-menu .ui-menu-item a.ui-state-active {
337
	font-weight: normal;
338
	margin: -1px;
339
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/lib/jquery/jquery-ui.js (+49 lines)
Line 0 Link Here
1
/*!
2
 * jQuery UI 1.8.18
3
 *
4
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
5
 * Dual licensed under the MIT or GPL Version 2 licenses.
6
 * http://jquery.org/license
7
 *
8
 * http://docs.jquery.com/UI
9
 */(function(a,b){function d(b){return!a(b).parents().andSelf().filter(function(){return a.curCSS(this,"visibility")==="hidden"||a.expr.filters.hidden(this)}).length}function c(b,c){var e=b.nodeName.toLowerCase();if("area"===e){var f=b.parentNode,g=f.name,h;if(!b.href||!g||f.nodeName.toLowerCase()!=="map")return!1;h=a("img[usemap=#"+g+"]")[0];return!!h&&d(h)}return(/input|select|textarea|button|object/.test(e)?!b.disabled:"a"==e?b.href||c:c)&&d(b)}a.ui=a.ui||{};a.ui.version||(a.extend(a.ui,{version:"1.8.18",keyCode:{ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91}}),a.fn.extend({propAttr:a.fn.prop||a.fn.attr,_focus:a.fn.focus,focus:function(b,c){return typeof b=="number"?this.each(function(){var d=this;setTimeout(function(){a(d).focus(),c&&c.call(d)},b)}):this._focus.apply(this,arguments)},scrollParent:function(){var b;a.browser.msie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?b=this.parents().filter(function(){return/(relative|absolute|fixed)/.test(a.curCSS(this,"position",1))&&/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0):b=this.parents().filter(function(){return/(auto|scroll)/.test(a.curCSS(this,"overflow",1)+a.curCSS(this,"overflow-y",1)+a.curCSS(this,"overflow-x",1))}).eq(0);return/fixed/.test(this.css("position"))||!b.length?a(document):b},zIndex:function(c){if(c!==b)return this.css("zIndex",c);if(this.length){var d=a(this[0]),e,f;while(d.length&&d[0]!==document){e=d.css("position");if(e==="absolute"||e==="relative"||e==="fixed"){f=parseInt(d.css("zIndex"),10);if(!isNaN(f)&&f!==0)return f}d=d.parent()}}return 0},disableSelection:function(){return this.bind((a.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",function(a){a.preventDefault()})},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),a.each(["Width","Height"],function(c,d){function h(b,c,d,f){a.each(e,function(){c-=parseFloat(a.curCSS(b,"padding"+this,!0))||0,d&&(c-=parseFloat(a.curCSS(b,"border"+this+"Width",!0))||0),f&&(c-=parseFloat(a.curCSS(b,"margin"+this,!0))||0)});return c}var e=d==="Width"?["Left","Right"]:["Top","Bottom"],f=d.toLowerCase(),g={innerWidth:a.fn.innerWidth,innerHeight:a.fn.innerHeight,outerWidth:a.fn.outerWidth,outerHeight:a.fn.outerHeight};a.fn["inner"+d]=function(c){if(c===b)return g["inner"+d].call(this);return this.each(function(){a(this).css(f,h(this,c)+"px")})},a.fn["outer"+d]=function(b,c){if(typeof b!="number")return g["outer"+d].call(this,b);return this.each(function(){a(this).css(f,h(this,b,!0,c)+"px")})}}),a.extend(a.expr[":"],{data:function(b,c,d){return!!a.data(b,d[3])},focusable:function(b){return c(b,!isNaN(a.attr(b,"tabindex")))},tabbable:function(b){var d=a.attr(b,"tabindex"),e=isNaN(d);return(e||d>=0)&&c(b,!e)}}),a(function(){var b=document.body,c=b.appendChild(c=document.createElement("div"));c.offsetHeight,a.extend(c.style,{minHeight:"100px",height:"auto",padding:0,borderWidth:0}),a.support.minHeight=c.offsetHeight===100,a.support.selectstart="onselectstart"in c,b.removeChild(c).style.display="none"}),a.extend(a.ui,{plugin:{add:function(b,c,d){var e=a.ui[b].prototype;for(var f in d)e.plugins[f]=e.plugins[f]||[],e.plugins[f].push([c,d[f]])},call:function(a,b,c){var d=a.plugins[b];if(!!d&&!!a.element[0].parentNode)for(var e=0;e<d.length;e++)a.options[d[e][0]]&&d[e][1].apply(a.element,c)}},contains:function(a,b){return document.compareDocumentPosition?a.compareDocumentPosition(b)&16:a!==b&&a.contains(b)},hasScroll:function(b,c){if(a(b).css("overflow")==="hidden")return!1;var d=c&&c==="left"?"scrollLeft":"scrollTop",e=!1;if(b[d]>0)return!0;b[d]=1,e=b[d]>0,b[d]=0;return e},isOverAxis:function(a,b,c){return a>b&&a<b+c},isOver:function(b,c,d,e,f,g){return a.ui.isOverAxis(b,d,f)&&a.ui.isOverAxis(c,e,g)}}))})(jQuery);/*!
10
 * jQuery UI Widget 1.8.18
11
 *
12
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
13
 * Dual licensed under the MIT or GPL Version 2 licenses.
14
 * http://jquery.org/license
15
 *
16
 * http://docs.jquery.com/UI/Widget
17
 */(function(a,b){if(a.cleanData){var c=a.cleanData;a.cleanData=function(b){for(var d=0,e;(e=b[d])!=null;d++)try{a(e).triggerHandler("remove")}catch(f){}c(b)}}else{var d=a.fn.remove;a.fn.remove=function(b,c){return this.each(function(){c||(!b||a.filter(b,[this]).length)&&a("*",this).add([this]).each(function(){try{a(this).triggerHandler("remove")}catch(b){}});return d.call(a(this),b,c)})}}a.widget=function(b,c,d){var e=b.split(".")[0],f;b=b.split(".")[1],f=e+"-"+b,d||(d=c,c=a.Widget),a.expr[":"][f]=function(c){return!!a.data(c,b)},a[e]=a[e]||{},a[e][b]=function(a,b){arguments.length&&this._createWidget(a,b)};var g=new c;g.options=a.extend(!0,{},g.options),a[e][b].prototype=a.extend(!0,g,{namespace:e,widgetName:b,widgetEventPrefix:a[e][b].prototype.widgetEventPrefix||b,widgetBaseClass:f},d),a.widget.bridge(b,a[e][b])},a.widget.bridge=function(c,d){a.fn[c]=function(e){var f=typeof e=="string",g=Array.prototype.slice.call(arguments,1),h=this;e=!f&&g.length?a.extend.apply(null,[!0,e].concat(g)):e;if(f&&e.charAt(0)==="_")return h;f?this.each(function(){var d=a.data(this,c),f=d&&a.isFunction(d[e])?d[e].apply(d,g):d;if(f!==d&&f!==b){h=f;return!1}}):this.each(function(){var b=a.data(this,c);b?b.option(e||{})._init():a.data(this,c,new d(e,this))});return h}},a.Widget=function(a,b){arguments.length&&this._createWidget(a,b)},a.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",options:{disabled:!1},_createWidget:function(b,c){a.data(c,this.widgetName,this),this.element=a(c),this.options=a.extend(!0,{},this.options,this._getCreateOptions(),b);var d=this;this.element.bind("remove."+this.widgetName,function(){d.destroy()}),this._create(),this._trigger("create"),this._init()},_getCreateOptions:function(){return a.metadata&&a.metadata.get(this.element[0])[this.widgetName]},_create:function(){},_init:function(){},destroy:function(){this.element.unbind("."+this.widgetName).removeData(this.widgetName),this.widget().unbind("."+this.widgetName).removeAttr("aria-disabled").removeClass(this.widgetBaseClass+"-disabled "+"ui-state-disabled")},widget:function(){return this.element},option:function(c,d){var e=c;if(arguments.length===0)return a.extend({},this.options);if(typeof c=="string"){if(d===b)return this.options[c];e={},e[c]=d}this._setOptions(e);return this},_setOptions:function(b){var c=this;a.each(b,function(a,b){c._setOption(a,b)});return this},_setOption:function(a,b){this.options[a]=b,a==="disabled"&&this.widget()[b?"addClass":"removeClass"](this.widgetBaseClass+"-disabled"+" "+"ui-state-disabled").attr("aria-disabled",b);return this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_trigger:function(b,c,d){var e,f,g=this.options[b];d=d||{},c=a.Event(c),c.type=(b===this.widgetEventPrefix?b:this.widgetEventPrefix+b).toLowerCase(),c.target=this.element[0],f=c.originalEvent;if(f)for(e in f)e in c||(c[e]=f[e]);this.element.trigger(c,d);return!(a.isFunction(g)&&g.call(this.element[0],c,d)===!1||c.isDefaultPrevented())}}})(jQuery);/*!
18
 * jQuery UI Mouse 1.8.18
19
 *
20
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
21
 * Dual licensed under the MIT or GPL Version 2 licenses.
22
 * http://jquery.org/license
23
 *
24
 * http://docs.jquery.com/UI/Mouse
25
 *
26
 * Depends:
27
 *	jquery.ui.widget.js
28
 */(function(a,b){var c=!1;a(document).mouseup(function(a){c=!1}),a.widget("ui.mouse",{options:{cancel:":input,option",distance:1,delay:0},_mouseInit:function(){var b=this;this.element.bind("mousedown."+this.widgetName,function(a){return b._mouseDown(a)}).bind("click."+this.widgetName,function(c){if(!0===a.data(c.target,b.widgetName+".preventClickEvent")){a.removeData(c.target,b.widgetName+".preventClickEvent"),c.stopImmediatePropagation();return!1}}),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName)},_mouseDown:function(b){if(!c){this._mouseStarted&&this._mouseUp(b),this._mouseDownEvent=b;var d=this,e=b.which==1,f=typeof this.options.cancel=="string"&&b.target.nodeName?a(b.target).closest(this.options.cancel).length:!1;if(!e||f||!this._mouseCapture(b))return!0;this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){d.mouseDelayMet=!0},this.options.delay));if(this._mouseDistanceMet(b)&&this._mouseDelayMet(b)){this._mouseStarted=this._mouseStart(b)!==!1;if(!this._mouseStarted){b.preventDefault();return!0}}!0===a.data(b.target,this.widgetName+".preventClickEvent")&&a.removeData(b.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(a){return d._mouseMove(a)},this._mouseUpDelegate=function(a){return d._mouseUp(a)},a(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),b.preventDefault(),c=!0;return!0}},_mouseMove:function(b){if(a.browser.msie&&!(document.documentMode>=9)&&!b.button)return this._mouseUp(b);if(this._mouseStarted){this._mouseDrag(b);return b.preventDefault()}this._mouseDistanceMet(b)&&this._mouseDelayMet(b)&&(this._mouseStarted=this._mouseStart(this._mouseDownEvent,b)!==!1,this._mouseStarted?this._mouseDrag(b):this._mouseUp(b));return!this._mouseStarted},_mouseUp:function(b){a(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,b.target==this._mouseDownEvent.target&&a.data(b.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(b));return!1},_mouseDistanceMet:function(a){return Math.max(Math.abs(this._mouseDownEvent.pageX-a.pageX),Math.abs(this._mouseDownEvent.pageY-a.pageY))>=this.options.distance},_mouseDelayMet:function(a){return this.mouseDelayMet},_mouseStart:function(a){},_mouseDrag:function(a){},_mouseStop:function(a){},_mouseCapture:function(a){return!0}})})(jQuery);/*
29
 * jQuery UI Position 1.8.18
30
 *
31
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
32
 * Dual licensed under the MIT or GPL Version 2 licenses.
33
 * http://jquery.org/license
34
 *
35
 * http://docs.jquery.com/UI/Position
36
 */(function(a,b){a.ui=a.ui||{};var c=/left|center|right/,d=/top|center|bottom/,e="center",f={},g=a.fn.position,h=a.fn.offset;a.fn.position=function(b){if(!b||!b.of)return g.apply(this,arguments);b=a.extend({},b);var h=a(b.of),i=h[0],j=(b.collision||"flip").split(" "),k=b.offset?b.offset.split(" "):[0,0],l,m,n;i.nodeType===9?(l=h.width(),m=h.height(),n={top:0,left:0}):i.setTimeout?(l=h.width(),m=h.height(),n={top:h.scrollTop(),left:h.scrollLeft()}):i.preventDefault?(b.at="left top",l=m=0,n={top:b.of.pageY,left:b.of.pageX}):(l=h.outerWidth(),m=h.outerHeight(),n=h.offset()),a.each(["my","at"],function(){var a=(b[this]||"").split(" ");a.length===1&&(a=c.test(a[0])?a.concat([e]):d.test(a[0])?[e].concat(a):[e,e]),a[0]=c.test(a[0])?a[0]:e,a[1]=d.test(a[1])?a[1]:e,b[this]=a}),j.length===1&&(j[1]=j[0]),k[0]=parseInt(k[0],10)||0,k.length===1&&(k[1]=k[0]),k[1]=parseInt(k[1],10)||0,b.at[0]==="right"?n.left+=l:b.at[0]===e&&(n.left+=l/2),b.at[1]==="bottom"?n.top+=m:b.at[1]===e&&(n.top+=m/2),n.left+=k[0],n.top+=k[1];return this.each(function(){var c=a(this),d=c.outerWidth(),g=c.outerHeight(),h=parseInt(a.curCSS(this,"marginLeft",!0))||0,i=parseInt(a.curCSS(this,"marginTop",!0))||0,o=d+h+(parseInt(a.curCSS(this,"marginRight",!0))||0),p=g+i+(parseInt(a.curCSS(this,"marginBottom",!0))||0),q=a.extend({},n),r;b.my[0]==="right"?q.left-=d:b.my[0]===e&&(q.left-=d/2),b.my[1]==="bottom"?q.top-=g:b.my[1]===e&&(q.top-=g/2),f.fractions||(q.left=Math.round(q.left),q.top=Math.round(q.top)),r={left:q.left-h,top:q.top-i},a.each(["left","top"],function(c,e){a.ui.position[j[c]]&&a.ui.position[j[c]][e](q,{targetWidth:l,targetHeight:m,elemWidth:d,elemHeight:g,collisionPosition:r,collisionWidth:o,collisionHeight:p,offset:k,my:b.my,at:b.at})}),a.fn.bgiframe&&c.bgiframe(),c.offset(a.extend(q,{using:b.using}))})},a.ui.position={fit:{left:function(b,c){var d=a(window),e=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft();b.left=e>0?b.left-e:Math.max(b.left-c.collisionPosition.left,b.left)},top:function(b,c){var d=a(window),e=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop();b.top=e>0?b.top-e:Math.max(b.top-c.collisionPosition.top,b.top)}},flip:{left:function(b,c){if(c.at[0]!==e){var d=a(window),f=c.collisionPosition.left+c.collisionWidth-d.width()-d.scrollLeft(),g=c.my[0]==="left"?-c.elemWidth:c.my[0]==="right"?c.elemWidth:0,h=c.at[0]==="left"?c.targetWidth:-c.targetWidth,i=-2*c.offset[0];b.left+=c.collisionPosition.left<0?g+h+i:f>0?g+h+i:0}},top:function(b,c){if(c.at[1]!==e){var d=a(window),f=c.collisionPosition.top+c.collisionHeight-d.height()-d.scrollTop(),g=c.my[1]==="top"?-c.elemHeight:c.my[1]==="bottom"?c.elemHeight:0,h=c.at[1]==="top"?c.targetHeight:-c.targetHeight,i=-2*c.offset[1];b.top+=c.collisionPosition.top<0?g+h+i:f>0?g+h+i:0}}}},a.offset.setOffset||(a.offset.setOffset=function(b,c){/static/.test(a.curCSS(b,"position"))&&(b.style.position="relative");var d=a(b),e=d.offset(),f=parseInt(a.curCSS(b,"top",!0),10)||0,g=parseInt(a.curCSS(b,"left",!0),10)||0,h={top:c.top-e.top+f,left:c.left-e.left+g};"using"in c?c.using.call(b,h):d.css(h)},a.fn.offset=function(b){var c=this[0];if(!c||!c.ownerDocument)return null;if(b)return this.each(function(){a.offset.setOffset(this,b)});return h.call(this)}),function(){var b=document.getElementsByTagName("body")[0],c=document.createElement("div"),d,e,g,h,i;d=document.createElement(b?"div":"body"),g={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},b&&a.extend(g,{position:"absolute",left:"-1000px",top:"-1000px"});for(var j in g)d.style[j]=g[j];d.appendChild(c),e=b||document.documentElement,e.insertBefore(d,e.firstChild),c.style.cssText="position: absolute; left: 10.7432222px; top: 10.432325px; height: 30px; width: 201px;",h=a(c).offset(function(a,b){return b}).offset(),d.innerHTML="",e.removeChild(d),i=h.top+h.left+(b?2e3:0),f.fractions=i>21&&i<22}()})(jQuery);/*
37
 * jQuery UI Autocomplete 1.8.18
38
 *
39
 * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
40
 * Dual licensed under the MIT or GPL Version 2 licenses.
41
 * http://jquery.org/license
42
 *
43
 * http://docs.jquery.com/UI/Autocomplete
44
 *
45
 * Depends:
46
 *	jquery.ui.core.js
47
 *	jquery.ui.widget.js
48
 *	jquery.ui.position.js
49
 */(function(a,b){var c=0;a.widget("ui.autocomplete",{options:{appendTo:"body",autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null},pending:0,_create:function(){var b=this,c=this.element[0].ownerDocument,d;this.element.addClass("ui-autocomplete-input").attr("autocomplete","off").attr({role:"textbox","aria-autocomplete":"list","aria-haspopup":"true"}).bind("keydown.autocomplete",function(c){if(!b.options.disabled&&!b.element.propAttr("readOnly")){d=!1;var e=a.ui.keyCode;switch(c.keyCode){case e.PAGE_UP:b._move("previousPage",c);break;case e.PAGE_DOWN:b._move("nextPage",c);break;case e.UP:b._move("previous",c),c.preventDefault();break;case e.DOWN:b._move("next",c),c.preventDefault();break;case e.ENTER:case e.NUMPAD_ENTER:b.menu.active&&(d=!0,c.preventDefault());case e.TAB:if(!b.menu.active)return;b.menu.select(c);break;case e.ESCAPE:b.element.val(b.term),b.close(c);break;default:clearTimeout(b.searching),b.searching=setTimeout(function(){b.term!=b.element.val()&&(b.selectedItem=null,b.search(null,c))},b.options.delay)}}}).bind("keypress.autocomplete",function(a){d&&(d=!1,a.preventDefault())}).bind("focus.autocomplete",function(){b.options.disabled||(b.selectedItem=null,b.previous=b.element.val())}).bind("blur.autocomplete",function(a){b.options.disabled||(clearTimeout(b.searching),b.closing=setTimeout(function(){b.close(a),b._change(a)},150))}),this._initSource(),this.response=function(){return b._response.apply(b,arguments)},this.menu=a("<ul></ul>").addClass("ui-autocomplete").appendTo(a(this.options.appendTo||"body",c)[0]).mousedown(function(c){var d=b.menu.element[0];a(c.target).closest(".ui-menu-item").length||setTimeout(function(){a(document).one("mousedown",function(c){c.target!==b.element[0]&&c.target!==d&&!a.ui.contains(d,c.target)&&b.close()})},1),setTimeout(function(){clearTimeout(b.closing)},13)}).menu({focus:function(a,c){var d=c.item.data("item.autocomplete");!1!==b._trigger("focus",a,{item:d})&&/^key/.test(a.originalEvent.type)&&b.element.val(d.value)},selected:function(a,d){var e=d.item.data("item.autocomplete"),f=b.previous;b.element[0]!==c.activeElement&&(b.element.focus(),b.previous=f,setTimeout(function(){b.previous=f,b.selectedItem=e},1)),!1!==b._trigger("select",a,{item:e})&&b.element.val(e.value),b.term=b.element.val(),b.close(a),b.selectedItem=e},blur:function(a,c){b.menu.element.is(":visible")&&b.element.val()!==b.term&&b.element.val(b.term)}}).zIndex(this.element.zIndex()+1).css({top:0,left:0}).hide().data("menu"),a.fn.bgiframe&&this.menu.element.bgiframe(),b.beforeunloadHandler=function(){b.element.removeAttr("autocomplete")},a(window).bind("beforeunload",b.beforeunloadHandler)},destroy:function(){this.element.removeClass("ui-autocomplete-input").removeAttr("autocomplete").removeAttr("role").removeAttr("aria-autocomplete").removeAttr("aria-haspopup"),this.menu.element.remove(),a(window).unbind("beforeunload",this.beforeunloadHandler),a.Widget.prototype.destroy.call(this)},_setOption:function(b,c){a.Widget.prototype._setOption.apply(this,arguments),b==="source"&&this._initSource(),b==="appendTo"&&this.menu.element.appendTo(a(c||"body",this.element[0].ownerDocument)[0]),b==="disabled"&&c&&this.xhr&&this.xhr.abort()},_initSource:function(){var b=this,d,e;a.isArray(this.options.source)?(d=this.options.source,this.source=function(b,c){c(a.ui.autocomplete.filter(d,b.term))}):typeof this.options.source=="string"?(e=this.options.source,this.source=function(d,f){b.xhr&&b.xhr.abort(),b.xhr=a.ajax({url:e,data:d,dataType:"json",context:{autocompleteRequest:++c},success:function(a,b){this.autocompleteRequest===c&&f(a)},error:function(){this.autocompleteRequest===c&&f([])}})}):this.source=this.options.source},search:function(a,b){a=a!=null?a:this.element.val(),this.term=this.element.val();if(a.length<this.options.minLength)return this.close(b);clearTimeout(this.closing);if(this._trigger("search",b)!==!1)return this._search(a)},_search:function(a){this.pending++,this.element.addClass("ui-autocomplete-loading"),this.source({term:a},this.response)},_response:function(a){!this.options.disabled&&a&&a.length?(a=this._normalize(a),this._suggest(a),this._trigger("open")):this.close(),this.pending--,this.pending||this.element.removeClass("ui-autocomplete-loading")},close:function(a){clearTimeout(this.closing),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.deactivate(),this._trigger("close",a))},_change:function(a){this.previous!==this.element.val()&&this._trigger("change",a,{item:this.selectedItem})},_normalize:function(b){if(b.length&&b[0].label&&b[0].value)return b;return a.map(b,function(b){if(typeof b=="string")return{label:b,value:b};return a.extend({label:b.label||b.value,value:b.value||b.label},b)})},_suggest:function(b){var c=this.menu.element.empty().zIndex(this.element.zIndex()+1);this._renderMenu(c,b),this.menu.deactivate(),this.menu.refresh(),c.show(),this._resizeMenu(),c.position(a.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(new a.Event("mouseover"))},_resizeMenu:function(){var a=this.menu.element;a.outerWidth(Math.max(a.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(b,c){var d=this;a.each(c,function(a,c){d._renderItem(b,c)})},_renderItem:function(b,c){return a("<li></li>").data("item.autocomplete",c).append(a("<a></a>").text(c.label)).appendTo(b)},_move:function(a,b){if(!this.menu.element.is(":visible"))this.search(null,b);else{if(this.menu.first()&&/^previous/.test(a)||this.menu.last()&&/^next/.test(a)){this.element.val(this.term),this.menu.deactivate();return}this.menu[a](b)}},widget:function(){return this.menu.element}}),a.extend(a.ui.autocomplete,{escapeRegex:function(a){return a.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")},filter:function(b,c){var d=new RegExp(a.ui.autocomplete.escapeRegex(c),"i");return a.grep(b,function(a){return d.test(a.label||a.value||a)})}})})(jQuery),function(a){a.widget("ui.menu",{_create:function(){var b=this;this.element.addClass("ui-menu ui-widget ui-widget-content ui-corner-all").attr({role:"listbox","aria-activedescendant":"ui-active-menuitem"}).click(function(c){!a(c.target).closest(".ui-menu-item a").length||(c.preventDefault(),b.select(c))}),this.refresh()},refresh:function(){var b=this,c=this.element.children("li:not(.ui-menu-item):has(a)").addClass("ui-menu-item").attr("role","menuitem");c.children("a").addClass("ui-corner-all").attr("tabindex",-1).mouseenter(function(c){b.activate(c,a(this).parent())}).mouseleave(function(){b.deactivate()})},activate:function(a,b){this.deactivate();if(this.hasScroll()){var c=b.offset().top-this.element.offset().top,d=this.element.scrollTop(),e=this.element.height();c<0?this.element.scrollTop(d+c):c>=e&&this.element.scrollTop(d+c-e+b.height())}this.active=b.eq(0).children("a").addClass("ui-state-hover").attr("id","ui-active-menuitem").end(),this._trigger("focus",a,{item:b})},deactivate:function(){!this.active||(this.active.children("a").removeClass("ui-state-hover").removeAttr("id"),this._trigger("blur"),this.active=null)},next:function(a){this.move("next",".ui-menu-item:first",a)},previous:function(a){this.move("prev",".ui-menu-item:last",a)},first:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},last:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},move:function(a,b,c){if(!this.active)this.activate(c,this.element.children(b));else{var d=this.active[a+"All"](".ui-menu-item").eq(0);d.length?this.activate(c,d):this.activate(c,this.element.children(b))}},nextPage:function(b){if(this.hasScroll()){if(!this.active||this.last()){this.activate(b,this.element.children(".ui-menu-item:first"));return}var c=this.active.offset().top,d=this.element.height(),e=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-c-d+a(this).height();return b<10&&b>-10});e.length||(e=this.element.children(".ui-menu-item:last")),this.activate(b,e)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.last()?":first":":last"))},previousPage:function(b){if(this.hasScroll()){if(!this.active||this.first()){this.activate(b,this.element.children(".ui-menu-item:last"));return}var c=this.active.offset().top,d=this.element.height();result=this.element.children(".ui-menu-item").filter(function(){var b=a(this).offset().top-c+d-a(this).height();return b<10&&b>-10}),result.length||(result=this.element.children(".ui-menu-item:first")),this.activate(b,result)}else this.activate(b,this.element.children(".ui-menu-item").filter(!this.active||this.first()?":last":":first"))},hasScroll:function(){return this.element.height()<this.element[a.fn.prop?"prop":"attr"]("scrollHeight")},select:function(a){this._trigger("selected",a,{item:this.active})}})}(jQuery);
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/overdue.tt (-56 / +44 lines)
Lines 1-73 Link Here
1
[% INCLUDE 'doc-head-open.inc' %]
1
[% INCLUDE 'doc-head-open.inc' %]
2
<title>Koha &rsaquo; Circulation &rsaquo; Items overdue as of [% todaysdate %]</title>
2
<title>Koha &rsaquo; Circulation &rsaquo; Items overdue as of [% todaysdate %]</title>
3
[% INCLUDE 'doc-head-close.inc' %]
3
[% INCLUDE 'doc-head-close.inc' %]
4
<script type="text/JavaScript" language="JavaScript">
4
<script type="text/javascript">
5
//<![CDATA[
5
 //<![CDATA[
6
    function clone_parent(node) {
6
     function clone_parent(node) {
7
        var parent = node.parentNode;
7
        var parent = node.parentNode;
8
		var clone = parent.cloneNode(true);
8
        var clone = parent.cloneNode(true);
9
        parent.parentNode.insertBefore(clone, parent.nextSibling);
9
        $("a", clone).attr("style", "visibility: visible");
10
        $("a", clone).attr("style", "visibility: visible");
10
        $("input", clone).attr("value", "");
11
        $("input", clone).attr("value", "");
11
12
12
		var theid = $("span", clone).attr("id") || "";
13
		var parts = theid.match(/^pattrodue-getready-(.*)$/);
14
		if (parts && parts.length > 1)
15
		{
16
			var appendid = "-" + Math.floor(Math.random()*1000+1);
17
			$("span", clone).attr("id",theid+appendid);
18
13
19
			theid = $("input", clone).attr("id");
14
        var theid = $("span", clone).attr("id") || "";
20
			$("input", clone).attr("id",theid+appendid);
15
        var theid = $("span", clone).attr("id") || "";
16
        var parts = theid.match(/^pattrodue-getready-(.*)$/);
17
        if (parts && parts.length > 1)
18
        {
19
            var appendid = "-" + Math.floor(Math.random()*1000+1);
20
            $("span", clone).attr("id",theid+appendid);
21
21
22
			theid = $("div[id]", clone).attr("id");
22
            theid = $("input", clone).attr("id");
23
			$("div[id]", clone).attr("id",theid+appendid);
23
            $("input", clone).attr("id",theid+appendid);
24
24
25
			var attrcode = $("script", clone).attr("x-code");
25
            theid = $("div[id]", clone).attr("id");
26
			var newsuffix = parts[1] + appendid;
26
            $("div[id]", clone).attr("id",theid+appendid);
27
            [% IF ( CircAutocompl ) %]
27
28
                create_auto_completion_responder(newsuffix,attrcode);
28
            var attrcode = $("script", clone).attr("x-code");
29
            [% END %]
29
            var newsuffix = parts[1] + appendid;
30
		}
30
            create_auto_completion_responder(newsuffix,attrcode);
31
        }
31
32
32
        parent.parentNode.insertBefore(clone, parent.nextSibling);
33
    }
33
    }
34
35
34
    function delete_parent(node) {
36
    function delete_parent(node) {
35
        var parent = node.parentNode;
37
        var parent = node.parentNode;
36
        parent.parentNode.removeChild(parent);
38
        parent.parentNode.removeChild(parent);
37
    }
39
    }
38
    [% IF ( CircAutocompl ) %]
39
	function create_auto_completion_responder(uniqueid,attrcode) {
40
		YAHOO.util.Event.onContentReady("pattrodue-getready-"+uniqueid, function() {
41
			new function() {
42
				// Define a custom formatter function
43
				this.fnCustomFormatter = function(oResultItem, sQuery) {
44
					var description = oResultItem[0];
45
					var authorised_value = oResultItem[1];
46
					var aMarkup = [
47
						"<div class='pattrodue-result'>",
48
						description,
49
						" (",
50
						authorised_value,
51
						")",
52
						"</div>"];
53
					return (aMarkup.join(""));
54
				};
55
56
				// Instantiate an XHR DataSource
57
				this.oACDS = new YAHOO.widget.DS_XHR("/cgi-bin/koha/circ/ypattrodue-attr-search-authvalue.pl/"+attrcode, ["\n", "\t"]);
58
				this.oACDS.responseType = YAHOO.widget.DS_XHR.TYPE_FLAT;
59
				this.oACDS.maxCacheEntries = 60;
60
				this.oACDS.queryMatchSubset = true;
61
40
62
				// Instantiate an AutoComplete Widget with uniqueid
41
    function create_auto_completion_responder(uniqueid,attrcode) {
63
				var myInput = document.getElementById('pattrodue-input-'+uniqueid);
42
       $("#pattrodue-getready-" + uniqueid).ready(function(){
64
				var myContainer = document.getElementById('pattrodue-container-'+uniqueid);
43
            $( "#pattrodue-input-" + uniqueid ).autocomplete({
65
				this.oAutoComp = new YAHOO.widget.AutoComplete(myInput,myContainer,this.oACDS);
44
                source: "/cgi-bin/koha/circ/ypattrodue-attr-search-authvalue.pl/"+attrcode,
66
				this.oAutoComp.formatResult = this.fnCustomFormatter;
45
                select: function( event, ui ) {
67
			}
46
                    $( "#pattrodue-input-"+uniqueid ).val( ui.item.description );
68
		});
47
                    return false;
48
                }
49
            })
50
            .data( "autocomplete" )._renderItem = function( ul, item ) {
51
                return $( "<li></li>" )
52
                .data( "item.autocomplete", item )
53
                .append( "<a>" + item.description + " (" + item.authorised_value + ")</a>" )
54
                .appendTo( ul )
55
                .css("font-size","90%").css("width","13em");
56
            };
57
        });
69
	}
58
	}
70
    [% END %]
71
//]]>
59
//]]>
72
</script>
60
</script>
73
<style type="text/css">
61
<style type="text/css">
Lines 95-101 Link Here
95
83
96
[% ELSE %]
84
[% ELSE %]
97
85
98
<h2>[% nnoverdue %] [% IF ( noverdue_is_plural ) %]items[% ELSE %]item[% END %] overdue as of [% todaysdate %][% IF ( isfiltered ) %] (filtered)[% END %]</h2>
86
<h2>[% nnoverdue %] [% IF ( noverdue_is_plural ) %]Items[% ELSE %]Item[% END %]
87
overdue as of [% todaysdate %][% IF ( isfiltered ) %] <span style="font-size:70%;">(Filtered. <a href="/cgi-bin/koha/circ/overdue.pl">Reset filter</a>)</span>[% END %]</h2>
99
88
100
<p>
89
<p>
101
    [% IF ( isfiltered ) %]
90
    [% IF ( isfiltered ) %]
Lines 193-204 Link Here
193
		<!-- domid cgivalue ismany isclone ordinal code description repeatable authorised_value_category -->
182
		<!-- domid cgivalue ismany isclone ordinal code description repeatable authorised_value_category -->
194
		<li>
183
		<li>
195
			<label>[% patron_attr_filter_loo.description %]:</label>
184
			<label>[% patron_attr_filter_loo.description %]:</label>
196
            [% IF ( patron_attr_filter_loo.authorised_value_category AND CircAutocompl) %]
185
            [% IF ( patron_attr_filter_loo.authorised_value_category ) %]
197
                <script type="text/JavaScript" language="JavaScript" x-code="[% patron_attr_filter_loo.code |html %]">create_auto_completion_responder([% patron_attr_filter_loo.domid %],"[% patron_attr_filter_loo.code |html %]");</script>
186
                <script type="text/javascript" x-code="[% patron_attr_filter_loo.code |html %]">create_auto_completion_responder([% patron_attr_filter_loo.domid %],"[% patron_attr_filter_loo.code |html %]");</script>
198
				<span id="pattrodue-getready-[% patron_attr_filter_loo.domid %]">
187
				<span id="pattrodue-getready-[% patron_attr_filter_loo.domid %]">
199
						<div class="pattrodue-autocomplete">
188
						<div class="pattrodue-autocomplete">
200
							<input autocomplete="off" id="pattrodue-input-[% patron_attr_filter_loo.domid %]" name="patron_attr_filter_[% patron_attr_filter_loo.code |html %]" value="[% patron_attr_filter_loo.cgivalue |html %]"  class="pattrodue-input" type="text" />
189
							<input autocomplete="off" id="pattrodue-input-[% patron_attr_filter_loo.domid %]" name="patron_attr_filter_[% patron_attr_filter_loo.code |html %]" value="[% patron_attr_filter_loo.cgivalue |html %]"  class="pattrodue-input" type="text" />
201
							<div id="pattrodue-container-[% patron_attr_filter_loo.domid %]" class="pattrodue-container"></div>
202
						</div>
190
						</div>
203
				</span>
191
				</span>
204
			[% ELSE %]
192
			[% ELSE %]

Return to bug 7747