From d6b1b653e0c3c6332024dea971d9d799d9f4aad0 Mon Sep 17 00:00:00 2001 From: Josef Moravec Date: Mon, 25 Jun 2018 11:27:03 +0000 Subject: [PATCH] Bug 19902: (follow-up) Deal with patron column regarding on intranetreadinghistory setting Test plan: Try it with intranetreadinghistory allowed and not allowed and it should still work in both cases Signed-off-by: Jonathan Druart Signed-off-by: Nick Clemens --- .../prog/en/modules/catalogue/issuehistory.tt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) 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 3900344f86..8509387baa 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/issuehistory.tt @@ -26,12 +26,14 @@

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

[% IF biblio.author %]

by [% biblio.author %]

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

Checked out [% checkouts.size %] times

- [% IF Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %] + [% IF show_patron_column %] [% END %] @@ -44,7 +46,7 @@ [% FOREACH checkout IN checkouts %] - [% IF Koha.Preference('intranetreadinghistory') AND CAN_user_circulate_circulate_remaining_permissions %] + [% IF show_patron_column %] [% END %]
PatronBarcode
[% INCLUDE 'patron-title.inc' patron => checkout.patron hide_patron_infos_if_needed=1 %] @@ -103,6 +105,10 @@