Bug 13205: Last/first page options for result list paging for OPAC
[koha.git] / koha-tmpl / opac-tmpl / bootstrap / en / includes / page-numbers.inc
blob63e083e8ab3ef0077613a72f7aaf4ef537ae8085
1 [% IF ( PAGE_NUMBERS ) %]
2     <div class="pagination pagination-small noprint">
3         <ul>
4             <li><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |html %][% END %]">First</a></li>
5             [% IF ( previous_page_offset.defined ) %]
6                 <li><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% previous_page_offset %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |html %][% END %]">&laquo; Previous</a></li>
7             [% END %]
8             [% FOREACH PAGE_NUMBER IN PAGE_NUMBERS %]
9                 [% IF ( PAGE_NUMBER.highlight ) %]
10                     <li class="active"><a href="#">[% PAGE_NUMBER.pg %]</a></li>
11                 [% ELSE %]
12                     <li><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% PAGE_NUMBER.offset %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |html%][% END %]">[% PAGE_NUMBER.pg %]</a></li>
13                 [% END %]
14             [% END %]
15             [% IF ( next_page_offset ) %]
16                 <li><a href="/cgi-bin/koha/opac-search.pl?[% query_cgi |html %][% limit_cgi |html %]&amp;offset=[% next_page_offset %][% IF ( sort_by ) %]&amp;sort_by=[% sort_by |html %][% END %]">Next &raquo;</a></li>
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>
19         </ul>
20     </div>
21 [% END %]