From a2b75987dec5b8b84781a9e5ba0ab53506477066 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 9 Apr 2026 14:29:21 +0200 Subject: [PATCH] Bug 42190: Use num-html for itemnumber and biblionumber columns Signed-off-by: Michaela Sieber Signed-off-by: Andrew Fuerste Henry Signed-off-by: Lucas Gass --- .../prog/en/modules/reports/guided_reports_start.tt | 4 ++-- koha-tmpl/intranet-tmpl/prog/js/datatables.js | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt index fe9a12319c..c83c494100 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/reports/guided_reports_start.tt @@ -1318,13 +1318,13 @@ [% FOREACH header_ro IN header_row %] [% IF header_ro.has_itemnumbers && ( header_ro.cell == 'itemnumber' || header_types.item( header_ro.cell ) == 'itemnumber' ) %] - [% header_ro.cell | html %] + [% header_ro.cell | html %] [% ELSIF header_ro.has_biblionumbers && ( header_ro.cell == 'biblionumber' || header_types.item( header_ro.cell ) == 'biblionumber' ) %] [% header_ro.cell | html %] [% ELSIF header_ro.cell == 'cardnumber' || header_types.item( header_ro.cell ) == 'cardnumber' %] [% header_ro.cell | html %] [% ELSIF header_ro.cell == 'borrowernumber' || header_types.item( header_ro.cell ) == 'borrowernumber' %] - [% header_ro.cell | html %] + [% header_ro.cell | html %] [% ELSE %] [% header_ro.cell | html %] [% END %] diff --git a/koha-tmpl/intranet-tmpl/prog/js/datatables.js b/koha-tmpl/intranet-tmpl/prog/js/datatables.js index 065875f0f8..ad979f6735 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/datatables.js +++ b/koha-tmpl/intranet-tmpl/prog/js/datatables.js @@ -1511,6 +1511,7 @@ function update_search_description( var default_column_defs = [ { targets: ["string-sort"], type: "string" }, { targets: ["anti-the"], type: "anti-the" }, + { targets: ["num-html"], type: "num-html" }, { targets: ["no-sort"], orderable: false, searchable: false }, ]; if (settings["columnDefs"] === undefined) {