1 [% PROCESS "opac/parts/header.tt2";
2 PROCESS "opac/parts/misc_util.tt2";
3 WRAPPER "opac/parts/myopac/base.tt2";
5 limit = ctx.circ_history_limit;
6 offset = ctx.circ_history_offset;
9 <div style="padding:0px;">
11 <div id="acct_checked_tabs">
13 <a href='[% mkurl('circs') %]'>[% l("Current Items Checked Out") %]</a>
15 <div class="align selected">
16 <a href="#">[% l("Check Out History") %]</a>
20 <div class="header_middle">
21 <span class="float-left">[% l('Previously Checked Out Items') %]</span>
22 <span class='float-left' style='padding-left: 10px;'>
23 <a href='[% mkurl('circ_history', {limit => limit, offset => (offset - limit)}) %]'
24 [% IF offset == 0 %] class='invisible' [% END %]><span class="nav_arrow_fix">◄</span>[% l('Previous') %]</a>
25 [%# TODO: get total to prevent paging off then end of the list.. %]
26 <a href='[% mkurl('circ_history', {limit => limit, offset => (offset + limit)}) %]'
27 [% IF ctx.circs.size < limit %] class='invisible' [% END %] >[% l('Next') %]<span class="nav_arrow_fix">►</span></a>
29 <span class="float-left">
30 <form action="[% mkurl(ctx.opac_root _ '/myopac/circ_history/export') %]" method="post">
32 [%- INCLUDE "opac/parts/preserve_params.tt2" %]
33 <input type="hidden" name="filename" value="[% l('circ_history.csv') %]"/>
34 <button type="submit">[% l('Download CSV') %]</button>
39 <div class="clear-both"></div>
41 [% IF ctx.circs.size < 1 %]
42 <div class="warning_box">[% l('There are no items in your circulation history.') %]</div>
45 <div id='checked_main'>
46 <table id="acct_checked_main_header">
49 <th>[% l('Title / Author') %]</th>
50 <th>[% l('Checkout Date') %]</th>
51 <th>[% l('Due Date') %]</th>
52 <th>[% l('Date Returned') %]</th>
53 <th>[% l('Barcode') %]</th>
54 <th>[% l('Call Number') %]</th>
58 [% FOR circ IN ctx.circs;
59 attrs = {marc_xml => circ.marc_xml};
60 PROCESS get_marc_attrs args=attrs; %]
63 <a href="[% mkurl(ctx.opac_root _ '/record/' _ circ.circ.target_copy.call_number.record.id) %]"
64 name="[% l('Catalog record') %]">[% attrs.title | html %]</a>
65 [% IF attrs.author %] /
66 <a href="[% mkurl(ctx.opac_root _ '/results',
67 {qtype => 'author', query => attrs.author.replace('[,\.:;]', '')}
68 )%]">[% attrs.author | html %]</a>
72 [% date.format(ctx.parse_datetime(circ.circ.xact_start),DATE_FORMAT); %]
75 [% date.format(ctx.parse_datetime(circ.circ.due_date),DATE_FORMAT); %]
79 IF circ.circ.checkin_time;
80 date.format(ctx.parse_datetime(circ.circ.checkin_time),DATE_FORMAT);
82 <span style='color:blue;'>*</span><!-- meh -->
85 <td>[% circ.circ.target_copy.barcode | html %]</td>
86 <td>[% circ.circ.target_copy.call_number.label | html %]</td>