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

(-)a/koha-tmpl/opac-tmpl/bootstrap/en/includes/page-numbers.inc (-10 / +23 lines)
Lines 1-23 Link Here
1
[% USE raw %]
1
[% USE raw %]
2
[% IF ( PAGE_NUMBERS ) %]
2
[% IF ( PAGE_NUMBERS ) %]
3
    <div class="pagination pagination-small noprint">
3
    <nav class="pagination pagination-small noprint" aria-label="Search results pagination">
4
     [% IF hits_to_paginate < total %]<h6>[% hits_to_paginate | html %] of [% total | html %] results loaded, refine your search to view other records</h6>[% END %]
4
        [% IF hits_to_paginate < total %]
5
            <h6>[% hits_to_paginate | html %] of [% total | html %] results loaded, refine your search to view other records</h6>
6
        [% END %]
5
        <ul>
7
        <ul>
6
            [% IF ( previous_page_offset.defined ) %]
8
            [% IF ( previous_page_offset.defined ) %]
7
                <li class="page-first"><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]"><i class="fa fa-fw fa-angle-double-left"></i>  First</a></li>
9
                <li class="page-first">
8
                <li class="page-prev"><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;offset=[% previous_page_offset | uri %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]"> <i class="fa fa-fw fa-angle-left"></i>  Previous</a></li>
10
                    <a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]" aria-label="Go to the first page"><i class="fa fa-fw fa-angle-double-left"></i>  First</a>
11
                </li>
12
                <li class="page-prev">
13
                    <a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;offset=[% previous_page_offset | uri %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]" aria-label="Go to the previous page"> <i class="fa fa-fw fa-angle-left"></i>  Previous</a>
14
                </li>
9
            [% END %]
15
            [% END %]
10
            [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %]
16
            [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %]
11
                [% IF ( PAGE_NUMBER.highlight ) %]
17
                [% IF ( PAGE_NUMBER.highlight ) %]
12
                    <li class="active"><a clas="page-num current" href="#">[% PAGE_NUMBER.pg | html %]</a></li>
18
                    <li class="active">
19
                        <a clas="page-num current" href="#" aria-disabled="true" aria-label="Current page: Page [% PAGE_NUMBER.pg | html %]" aria-current="true">[% PAGE_NUMBER.pg | html %]</a>
20
                    </li>
13
                [% ELSE %]
21
                [% ELSE %]
14
                    <li class="page-num"><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;offset=[% PAGE_NUMBER.offset | uri %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]">[% PAGE_NUMBER.pg | html %]</a></li>
22
                    <li class="page-num">
23
                        <a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;offset=[% PAGE_NUMBER.offset | uri %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]" aria-label="Go to page [% PAGE_NUMBER.pg | html %]">[% PAGE_NUMBER.pg | html %]</a>
24
                    </li>
15
                [% END %]
25
                [% END %]
16
            [% END %]
26
            [% END %]
17
            [% IF ( next_page_offset ) %]
27
            [% IF ( next_page_offset ) %]
18
                <li class="page-next"><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;offset=[% next_page_offset | uri %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]">Next <i class="fa fa-fw fa-angle-double-right"></i></a></li>
28
                <li class="page-next">
19
                <li class="page-last"><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;offset=[% last_page_offset | uri %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]">Last <i class="fa fa-fw fa-angle-double-right"></i></a></li>
29
                    <a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;offset=[% next_page_offset | uri %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]" aria-label="Go to the next page">Next <i class="fa fa-fw fa-angle-double-right"></i></a>
30
                </li>
31
                <li class="page-last">
32
                    <a href="/cgi-bin/koha/opac-search.pl?[% query_cgi | $raw %][% limit_cgi | $raw %]&amp;offset=[% last_page_offset | uri %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by | uri %][% END %][% IF results_per_page %]&amp;count=[% results_per_page | uri %][% END %]" aria-label="Go to the last page">Last <i class="fa fa-fw fa-angle-double-right"></i></a>
33
                </li>
20
            [% END %]
34
            [% END %]
21
        </ul>
35
        </ul>
22
    </div>
36
    </nav>
23
[% END %]
37
[% END %]
24
- 

Return to bug 25234