From 14fe1179154a9af90e9046def0470caaf11c6fe3 Mon Sep 17 00:00:00 2001 From: Julian Maurice Date: Wed, 22 Feb 2023 10:17:57 +0100 Subject: [PATCH] Bug 33035: Add volume column in the item bundle table It can be useful for some kinds of biblio, like comic books Test plan: 1. Create an item bundle (see bug 28854 comment 458) 2. Make sure that a MARC subfield is mapped to biblioitems.volume 3. Create a biblio with the volume's subfield filled, and create an item for this biblio 4. Add this item to the item bundle 5. In the table showing the bundle contents, you should see a new volume column with your data Signed-off-by: Lucas Gass --- .../intranet-tmpl/prog/en/modules/catalogue/detail.tt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 2e20d2e520..d6476a26c5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1683,11 +1683,12 @@ Note that permanent location is a code, and location may be an authval. }, "embed": [ "biblio", + "biblio.biblioitem", "return_claim.patron" ], "order": [[ 1, "asc" ]], "columnDefs": [ { - "targets": [0,1,2,3], + "targets": [0,1,2,3,4], "render": function (data, type, row, meta) { if ( data && type == 'display' ) { return data.escapeHtml(); @@ -1717,6 +1718,12 @@ Note that permanent location is a code, and location may be an authval. "searchable": true, "orderable": true, }, + { + "data": "biblio.biblioitem.volume", + "title": _("Volume"), + "searchable": true, + "orderable": true, + }, { "data": "external_id", "title": _("Barcode"), -- 2.30.2