[% USE raw %] [% USE Asset %] [% USE Koha %] [% USE KohaDates %] [% USE Branches %] [% USE ColumnsSettings %] [% SET footerjs = 1 %] [% INCLUDE 'doc-head-open.inc' %] Koha › Catalog › Checkout history for [% biblio.title | html %] [% INCLUDE 'doc-head-close.inc' %] [% Asset.css("css/datatables.css") | $raw %] [% INCLUDE 'header.inc' %] [% INCLUDE 'cat-search.inc' %]

Checkout history for [% biblio.title | html %]

[% IF biblio.author %]

by [% biblio.author | html %]

[% END %] [% SET show_patron_column = Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %]
[% IF checkouts %]

Checked out [% checkouts.size | html %] times

[% IF show_patron_column %] [% END %] [% FOREACH checkout IN checkouts %] [% IF show_patron_column %] [% END %] [% END %]
PatronBarcode Checked out from Renewed Checkout on Due date Checkin on
[% IF checkout.patron %][%# Not set for deleted patron records %] [% INCLUDE 'patron-title.inc' patron => checkout.patron hide_patron_infos_if_needed=1 %] [% END %] [% IF checkout.item.barcode %] [%# FIXME This test is not mandatory I think %] [% checkout.item.barcode | html %] [% ELSE %]   [% END %] [% IF checkout.branchcode %] [% Branches.GetName( checkout.branchcode ) | html %] [% ELSE %]   [% END %] [% IF checkout.renewals %] Yes[% IF checkout.lastreneweddate %], last on: [% checkout.lastreneweddate |$KohaDates with_hours => 1 | html %] [% END %] [% ELSE %] No [% END %] [% IF checkout.issuedate %] [% checkout.issuedate |$KohaDates with_hours => 1 | html %] [% ELSE %] [% END %] [% IF checkout.date_due %] [% checkout.date_due |$KohaDates with_hours => 1 | html %] [% ELSE %] [% END %] [% IF checkout.returndate %] [% checkout.returndate |$KohaDates with_hours => 1 | html %] [% ELSE %] Checked out [% END %]
[% ELSE %]

[% biblio.title | html %][% IF biblio.author %], by [% biblio.author | html %][% END %] has never been checked out.

[% END %]
[% INCLUDE 'biblio-view-menu.inc' %]
[% MACRO jsinclude BLOCK %] [% INCLUDE 'datatables.inc' %] [% INCLUDE 'columns_settings.inc' %] [% END %] [% INCLUDE 'intranet-bottom.inc' %]