From 87d7be37f46138e344088d3978a9408cca05adb1 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 13 Apr 2023 13:03:46 +0200 Subject: [PATCH] Bug 33568: Display string version of coded values + format dates MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Owen Leonard Signed-off-by: Laurence Rault Signed-off-by: Emily Lamancusa Signed-off-by: Tomás Cohen Arazi Signed-off-by: Katrin Fischer --- .../prog/en/modules/catalogue/detail.tt | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index af97ac2864..0f2ed85b7b 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -2495,6 +2495,7 @@ var items_table = $("#table_items").kohaTable({ ajax: { url: table_url }, order: [[ 0, "asc" ]], + embed: ["+strings"], bAutoWidth: false, columns: [ [% IF (StaffDetailItemSelection) %] @@ -2524,7 +2525,7 @@ searchable: true, orderable: true, render: function (data, type, row, meta) { - return row.effective_item_type_id; // FIXME Display the translated description and the image + return row._strings.item_type_id.str; // FIXME Display the image } }, [% END %] @@ -2533,7 +2534,7 @@ searchable: true, orderable: true, render: function (data, type, row, meta) { - return row.holding_library_id; // FIXME Display library name + return row._strings.holding_library_id.str; } }, { @@ -2541,7 +2542,7 @@ searchable: true, orderable: true, render: function (data, type, row, meta) { - return row.home_library_id; // FIXME Display library name + return row._strings.home_library_id.str; } // FIXME Display the shelving location }, @@ -2551,7 +2552,7 @@ searchable: true, orderable: true, render: function (data, type, row, meta) { - return row.collection_code; // FIXME Display str version + return row._strings.collection_code.str; } }, [% END %] @@ -2597,7 +2598,7 @@ searchable: true, orderable: true, render: function (data, type, row, meta) { - return row.last_seen_date; // FIXME Format date + return $date(row.last_seen_date); } }, { @@ -2621,7 +2622,7 @@ searchable: true, orderable: true, render: function (data, type, row, meta) { - return row.acquisition_date; // FIXME Format date + return $date(row.acquisition_date); } }, { @@ -2629,7 +2630,7 @@ searchable: true, orderable: true, render: function (data, type, row, meta) { - return row.last_checkout_date; // FIXME Format date + return $date(row.last_checkout_date); } }, { -- 2.39.5