From 648afa180c8bda1b380e873ca62dff4661c35294 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 30 Oct 2023 16:55:20 +0100 Subject: [PATCH] Bug 33568: Hide 'Host records' if EasyAnalyticalRecords is off MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Laurence Rault Signed-off-by: Emily Lamancusa Signed-off-by: Tomás Cohen Arazi --- .../html_helpers/tables/items/catalogue_detail.inc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 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 8ee98b918b4..09aeb5af134 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 @@ -35,7 +35,7 @@ Materials specified Public notes Non-public notes - Host records + [% IF Koha.Preference('EasyAnalyticalRecords') %]Host records[% END %] [% IF ( analyze ) %]Used in[% END %] [% IF Koha.Preference('UseCourseReserves') %]Course reserves[% END %] [% IF ( SpineLabelShowPrintOnBibDetails ) %]Spine label[% END %] @@ -222,8 +222,10 @@ embed.push('course_item.course_reserves.course'); [% END %] - // For host records - embed.push('biblio.title'); + [% IF Koha.Preference('EasyAnalyticalRecords') %] + // For host records + embed.push('biblio.title'); + [% END %] [% IF analyze %] embed.push('analytics_count'); @@ -659,6 +661,7 @@ return escape_str(row.internal_notes); } }, + [% IF Koha.Preference('EasyAnalyticalRecords') %] { data: "biblio.title", searchable: false, @@ -668,6 +671,7 @@ return '%s'.format(row.biblio_id, row.biblio.title); } }, + [% END %] [% IF analyze %] { data: "analytics_count", -- 2.34.1