+<div id="tabs" class="toptabs">
+ [% IF Koha.Preference('OnSiteCheckouts') %]
+ <ul>
+ <li><a href="#readingrec" id="tab_all">All</a></li>
+ <li><a href="#readingrec" id="tab_checkout">Checkouts</a></li>
+ <li><a href="#readingrec" id="tab_onsite_checkout">On-site checkouts</a></li>
+ </ul>
+ [% END %]
+ <div id="readingrec" style="overflow:hidden">
+ <table id="table_readingrec">
+ <thead>
+ <th style="display:none;">Type</th>
+ <th class="title-string">Date</th>
+ <th class="anti-the">Title</th>
+ <th>Author</th>
+ <th>Call no.</th>
+ <th>Barcode</th>
+ <th>Number of renewals</th>
+ <th class="title-string">Checked out on</th>
+ <th>Checked out from</th>
+ <th class="title-string">Date due</th>
+ <th class="title-string">Return date</th>
+ </thead>
+ <tbody>
+ [% FOREACH issue IN loop_reading %]
+ [% IF issue.returndate %]<tr>[% ELSE %]<tr class="onissue">[% END %]
+ <td style="display:none;">
+ [% IF issue.onsite_checkout %][% issuetype = 'onsite_checkout' %]
+ [% ELSE %][% issuetype = 'standard_checkout' %]
+ [% END %]
+ [% issuetype %]
+ </td>
+ <td>
+ <span title="[% issue.issuestimestamp %]">[% issue.issuestimestamp | $KohaDates with_hours => 1 %]</span>
+ </td>
+ <td><a href="/cgi-bin/koha/catalogue/detail.pl?biblionumber=[% issue.biblionumber %]">[% issue.title |html %]</a></td>