offset => (offset - limit)
}) %]'>[% ((offset - limit) / limit) + 1 %]</a>
[%- END; -%]
- <span style="color:red;" >[% (offset / limit) + 1 %]</span>
- [%- IF (offset + limit) <= ctx.bookbag_count -%]
+ <span class="bookbag-paginator-selected" >[% (offset / limit) + 1 %]</span>
+ [%- IF (offset + limit) < ctx.bookbag_count -%]
<a href='[% mkurl(ctx.opac_root _ '/myopac/lists', {
offset => (offset + limit)
}) %]'>[% ((offset + limit) / limit) + 1 %]</a>
[%- END; -%]
- [%- IF (offset + (limit * 2)) <= ctx.bookbag_count -%]
+ [%- IF (offset + (limit * 2)) < ctx.bookbag_count -%]
<a href='[% mkurl(ctx.opac_root _ '/myopac/lists', {
offset => (offset + (limit * 2))
}) %]'>[% ((offset + (limit * 2)) / limit) + 1 %]</a>
[%- END; -%]
- [%- IF (offset + (limit * 3)) <= ctx.bookbag_count -%]
+ [%- IF (offset + (limit * 3)) < ctx.bookbag_count -%]
<a href='[% mkurl(ctx.opac_root _ '/myopac/lists', {
offset => (offset + (limit * 3))
}) %]'>[% ((offset + (limit * 3)) / limit) + 1 %]</a>