From: Dan Wells <dbw2@calvin.edu> Date: Fri, 13 Sep 2013 20:30:55 +0000 (-0400) Subject: Trivial changes to configurable bookbag paging X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=09cf487b30cc458a2975e0c6b7d3a13addbcc65e;p=evergreen%2Fpines.git Trivial changes to configurable bookbag paging 1) use class for highlight styling of current page 2) correct minor logic error ('<=' should be '<') Signed-off-by: Dan Wells <dbw2@calvin.edu> --- diff --git a/Open-ILS/src/templates/opac/myopac/lists.tt2 b/Open-ILS/src/templates/opac/myopac/lists.tt2 index 22b3bd9313..392a5281b0 100644 --- a/Open-ILS/src/templates/opac/myopac/lists.tt2 +++ b/Open-ILS/src/templates/opac/myopac/lists.tt2 @@ -86,18 +86,18 @@ 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>