X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=koha-tmpl%2Fintranet-tmpl%2Fprog%2Fen%2Fmodules%2Fcatalogue%2Fissuehistory.tt;h=215b40d23ca47292f7ba7110453b2c5bd210e494;hb=7fbd50e3aa07e46f0558d4f52231896937c998bc;hp=14d823c128c3e326970ed407ffbd631001dd0e65;hpb=0486d0c6b781fbda73df19eb825ef330bdc4544a;p=koha.git diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt index 14d823c128..215b40d23c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt @@ -1,13 +1,22 @@ +[% 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 [% title |html %] +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' %] - +
@@ -15,56 +24,67 @@
-

Checkout history for [% title |html %]

-[% IF ( author ) %]

by [% author %]

[% END %] +

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 ( issues ) %] -

Checked out [% total %] times

- + [% IF checkouts %] +

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

+
+ [% IF show_patron_column %] + [% END %] - - - + + + - [% FOREACH issue IN issues %] - [% UNLESS ( loop.odd ) %][% ELSE %][% END %] - - + [% IF show_patron_column %] + + [% END %] + - - - - - [% END %] @@ -72,7 +92,7 @@
PatronBarcode Checked out from RenewedCheckout onDue dateCheckin onCheckout onDue dateCheckin on
[% IF HidePatronName %][% issue.cardnumber %][% ELSE %][% issue.surname %][% IF ( issue.firstname ) %], [% issue.firstname %][% END %][% END %][% IF ( issue.barcode ) %] - [% issue.barcode %] + [% FOREACH checkout IN checkouts %] +
+ [% 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 ( issue.branchcode ) %] - [% issue.branchcode %] + [% IF checkout.branchcode %] + [% Branches.GetName( checkout.branchcode ) | html %] [% ELSE %]   [% END %][% IF ( issue.renewals ) %] - Yes[% IF ( issue.lastreneweddate ) %], last on: [% issue.lastreneweddate %] + [% IF checkout.renewals %] + Yes[% IF checkout.lastreneweddate %], last on: [% checkout.lastreneweddate |$KohaDates with_hours => 1 | html %] [% END %] [% ELSE %] No [% END %][% IF ( issue.issuedate ) %] - [% issue.issuedate %] + [% IF checkout.issuedate %] + [% checkout.issuedate |$KohaDates with_hours => 1 | html %] [% ELSE %] -   + [% END %][% IF ( issue.date_due ) %] - [% issue.date_due %] + [% IF checkout.date_due %] + [% checkout.date_due |$KohaDates with_hours => 1 | html %] [% ELSE %] -   + [% END %][% IF ( issue.returndate ) %] - [% issue.returndate %] + [% IF checkout.returndate %] + [% checkout.returndate |$KohaDates with_hours => 1 | html %] [% ELSE %] -   + Checked out [% END %]
[% ELSE %]

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

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

[% END %]
@@ -83,4 +103,27 @@ [% INCLUDE 'biblio-view-menu.inc' %]
+ +[% MACRO jsinclude BLOCK %] +[% INCLUDE 'datatables.inc' %] +[% INCLUDE 'columns_settings.inc' %] + +[% END %] + [% INCLUDE 'intranet-bottom.inc' %]