[% PROCESS "opac/parts/header.tt2"; PROCESS "opac/parts/misc_util.tt2"; WRAPPER "opac/parts/myopac/base.tt2"; myopac_page = "circs" %]
[% l('Current Items Checked Out') %] [% l('Export List') %]
[% IF ctx.circs.size < 1 %]
[% l('You have no items checked out.') %]
[% ELSE %] [% IF ctx.success_renewals %]
[% l("Successfully renewed [_1] item(s)", ctx.success_renewals) %]
[% END %] [% IF ctx.failed_renewals %]
[% l("Failed to renew [_1] item(s)", ctx.failed_renewals) %]
[% END %]
Renewing Help
Title / Author Renews
Left
Due Date barcode call number
[% FOR circ IN ctx.circs; attrs = {marc_xml => circ.marc_xml}; PROCESS get_marc_attrs args=attrs; %] [% due_date = ctx.parse_datetime(circ.circ.due_date); due_class = (date.now > date.format(due_date, '%s')) ? 'error' : ''; %] [% IF circ.renewal_response AND circ.renewal_response.textcode != 'SUCCESS' %] [% END; END %]
[% attrs.title | html %] [% IF attrs.author %] / [% attrs.author | html %] [% END %] [% circ.circ.renewal_remaining %] [% date.format(due_date, DATE_FORMAT) %] [% circ.circ.target_copy.barcode | html %] [% circ.circ.target_copy.call_number.label | html %]
[%# XXX colspan="0" does not work in IE %] [% (circ.renewal_response.desc || circ.renewal_response.payload.fail_part || circ.renewal_response.textcode) | html %]
[% END %]

[% l("Other Circulations") %]
[% l("Circulating Library") %] [% l("Circulation Type") %] [% l("Please return by ...") %]
[% END %]