From 67c472eeac145ce79dd4cab1bf93d260f21a6778 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 30 Oct 2023 17:11:44 +0100 Subject: [PATCH] Bug 33568: Restore link to patron MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Laurence Rault Signed-off-by: Emily Lamancusa Signed-off-by: Tomás Cohen Arazi Signed-off-by: Katrin Fischer --- .../html_helpers/tables/items/catalogue_detail.inc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc index c81c16402e..ad07f341b7 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc @@ -448,11 +448,11 @@ nodes += ''; if ( row.checkout.onsite_checkout ) { - let patron_to_html = $patron_to_html(row.checkout.patron); + let patron_to_html = $patron_to_html(row.checkout.patron, { url: true }); nodes += _("Currently in local use by %s").format(patron_to_html); } else { nodes += ''; - let patron_to_html = $patron_to_html(row.checkout.patron); + let patron_to_html = $patron_to_html(row.checkout.patron, { url: true }); nodes += _("Checked out to %s").format(patron_to_html); } nodes += ': '; @@ -498,7 +498,7 @@ [%# Hacky for patron_to_html in case we simply want to display the patron's library name %] row.first_hold.patron.library = { name: libraries_names.get(row.first_hold.patron.library_id) }; - let patron_to_html = $patron_to_html(row.first_hold.patron); [%# FIXME What about hide_patron_infos_if_needed?? %] + let patron_to_html = $patron_to_html(row.first_hold.patron, { url: true }); nodes += ' %s'.format(_("Hold for: %s").format(patron_to_html)); } [% END %] @@ -515,7 +515,7 @@ [%# Hacky for patron_to_html in case we simply want to display the patron's library name %] row.recall.patron.library = { name: libraries_names.get(row.recall.patron.library_id) }; - let patron_to_html = $patron_to_html(row.recall.patron); + let patron_to_html = $patron_to_html(row.recall.patron, {url: true }); nodes += '%s'.format(_("recalled by %s on %s").format(patron_to_html, $date(row.recall.created_date))) } } -- 2.39.5