[% PROCESS "opac/parts/header.tt2";
PROCESS "opac/parts/misc_util.tt2";
PROCESS "opac/parts/myopac/column_sort_support.tt2";
WRAPPER "opac/parts/myopac/base.tt2";
myopac_page = "circs"
limit = ctx.circ_history_limit;
offset = ctx.circ_history_offset;
%]
[%
# In the sorting case, the size is the size of ALL the circ items. In the non-sorting case,
# the size is simply the size of the chunk passed in. See the TODO below for the still-lingering
# bug.
sort_field = CGI.param('sort');
IF (sort_field);
no_next = ctx.circs.size - offset <= limit;
ELSE;
no_next = ctx.circs.size < limit;
END;
%]
[% IF ctx.circs.size < 1 %]
[% l('There are no items in your circulation history.') %]
[% ELSE %]
[% END %]
[% END %]