From 57997263b22f12e91032b5225d38527e45431774 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=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 | 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 8ee98b918b..09aeb5af13 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.39.5