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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/page-numbers.inc (+11 lines)
Lines 15-18 Link Here
15
        <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>
15
        <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>
16
        <li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% last_page_offset %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |url %][% END %]">Last</a></li>
16
        <li><a href="/cgi-bin/koha/catalogue/search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% last_page_offset %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |url %][% END %]">Last</a></li>
17
    [% END %]
17
    [% END %]
18
    <li>&nbsp;&nbsp;<label for="goto_page">Go to page: </label>
19
        <select name="goto_page" id="goto_page">
20
            [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %]
21
                [% IF ( PAGE_NUMBER.highlight ) %]
22
                    <option value="[% PAGE_NUMBER.offset %]" selected>[% PAGE_NUMBER.pg %]</option>
23
                [% ELSE %]
24
                    <option value="[% PAGE_NUMBER.offset %]">[% PAGE_NUMBER.pg %]</option>
25
                [% END %]
26
            [% END %]
27
        </select>
28
    </li>
18
</ul></nav>[% END %]
29
</ul></nav>[% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/results.tt (+4 lines)
Lines 73-78 function cartList(){ Link Here
73
    }
73
    }
74
}
74
}
75
$(document).ready(function() {
75
$(document).ready(function() {
76
$("#goto_page").change(function() {
77
    var offset = $("#goto_page").find("option:selected").attr("value");
78
    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 %]";
79
});
76
$("#cartsubmit").click(function(){
80
$("#cartsubmit").click(function(){
77
    cartList();
81
    cartList();
78
    return false;
82
    return false;
(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/page-numbers.inc (+10 lines)
Lines 17-21 Link Here
17
                <li><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% last_page_offset %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |html %][% END %]">Last</a></li>
17
                <li><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% last_page_offset %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |html %][% END %]">Last</a></li>
18
            [% END %]
18
            [% END %]
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