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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc (-14 / +29 lines)
Lines 1-14 Link Here
1
[% IF ( PAGE_NUMBERS ) %]<nav><ul class="pagination">
1
[% IF ( PAGE_NUMBERS ) %]
2
    <li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |url %][% END %]">First</a></li>
2
    <nav>
3
    <!-- Row of numbers corresponding to search result pages -->
3
        <ul class="pagination">
4
    [% IF ( previous_page_offset.defined ) %]<li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% previous_page_offset %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |url %][% END %]">&lt;&lt; Previous</a></li>[% END %]
4
            <li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |url %][% END %]">First</a></li>
5
    [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %]
5
            <!-- Row of numbers corresponding to search result pages -->
6
        [% IF ( PAGE_NUMBER.highlight ) %]
6
            [% IF ( previous_page_offset.defined ) %]<li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% previous_page_offset %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |url %][% END %]">&lt;&lt; Previous</a></li>[% END %]
7
            <li class="active"><span>[% PAGE_NUMBER.pg %]</span></li>
7
            [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %]
8
        [% ELSE %]
8
                [% IF ( PAGE_NUMBER.highlight ) %]
9
            <li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% PAGE_NUMBER.offset %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |url %][% END %]">[% PAGE_NUMBER.pg %]</a></li>
9
                    <li class="active"><span>[% PAGE_NUMBER.pg %]</span></li>
10
        [% END %]
10
                [% ELSE %]
11
    [% END %]
11
                    <li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% PAGE_NUMBER.offset %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |url %][% END %]">[% PAGE_NUMBER.pg %]</a></li>
12
    [% IF ( next_page_offset ) %]<li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% next_page_offset %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |url %][% END %]">Next &gt;&gt;</a></li>[% END %]
12
                [% END %]
13
    <li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% last_page %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |url %][% END %]">Last</a></li>
13
            [% END %]
14
</ul></nav>[% END %]
14
            [% IF ( next_page_offset ) %]<li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% next_page_offset %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |url %][% END %]">Next &gt;&gt;</a></li>[% END %]
15
            <li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% last_page %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |url %][% END %]">Last</a></li>
16
            <li>&nbsp;&nbsp;<label for="goto_page">Go to page: </label>
17
                <select name="goto_page" id="goto_page">
18
                    [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %]
19
                        [% IF ( PAGE_NUMBER.highlight ) %]
20
                            <option value="[% PAGE_NUMBER.offset %]" selected>[% PAGE_NUMBER.pg %]</option>
21
                        [% ELSE %]
22
                            <option value="[% PAGE_NUMBER.offset %]">[% PAGE_NUMBER.pg %]</option>
23
                        [% END %]
24
                    [% END %]
25
                </select>
26
            </li>
27
        </ul>
28
    </nav>
29
[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (+4 lines)
Lines 72-77 function cartList(){ Link Here
72
    }
72
    }
73
}
73
}
74
$(document).ready(function() {
74
$(document).ready(function() {
75
$("#goto_page").change(function() {
76
    var offset = $("#goto_page").find("option:selected").attr("value");
77
    window.location="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset="+offset+"[% IF ( sort_by ) %]&amp;sort_by=[% sort_by |url %][% END %]";
78
});
75
$("#cartsubmit").click(function(){
79
$("#cartsubmit").click(function(){
76
    cartList();
80
    cartList();
77
    return false;
81
    return false;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/page-numbers.inc (+10 lines)
Lines 17-21 Link Here
17
            [% END %]
17
            [% END %]
18
            <li><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% last_page %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |html %][% END %]">Last</a></li>
18
            <li><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% last_page %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |html %][% END %]">Last</a></li>
19
        </ul>
19
        </ul>
20
        <label for="goto_page">Go to page: </label>
21
        <select name="goto_page" id="goto_page">
22
            [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %]
23
                [% IF ( PAGE_NUMBER.highlight ) %]
24
                    <option value="[% PAGE_NUMBER.offset %]" selected>[% PAGE_NUMBER.pg %]</option>
25
                [% ELSE %]
26
                    <option value="[% PAGE_NUMBER.offset %]">[% PAGE_NUMBER.pg %]</option>
27
                [% END %]
28
            [% END %]
29
        </select>
20
    </div>
30
    </div>
21
[% END %]
31
[% END %]
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-results.tt (-1 / +6 lines)
Lines 700-705 function highlightOn() { Link Here
700
}
700
}
701
[% END %]
701
[% END %]
702
$(document).ready(function(){
702
$(document).ready(function(){
703
704
    $("#goto_page").change(function() {
705
        var offset = $("#goto_page").find("option:selected").attr("value");
706
        window.location="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset="+offset+"[% IF ( sort_by ) %]&amp;sort_by=[% sort_by |url %][% END %]";
707
    });
708
703
    [% IF ( OpacHighlightedWords ) %]
709
    [% IF ( OpacHighlightedWords ) %]
704
        $('a.title').each(function() {
710
        $('a.title').each(function() {
705
            $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]");
711
            $(this).attr("href", $(this).attr("href") + "&query_desc=[% query_desc | uri %]");
706
- 

Return to bug 18128