From ebb77c8fa99ec910ab95f834d057fc5bc53a27a4 Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 11 Jun 2026 17:42:42 +0100 Subject: [PATCH] Bug 42443: (QA follow-up) Group transfers by sending library using rowGroup MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Martin Renvoize Signed-off-by: Tomás Cohen Arazi Signed-off-by: Pedro Amorim --- .../prog/en/modules/circ/transferstoreceive.tt | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt index fa84028a0a..cf1e7bafcd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/transferstoreceive.tt @@ -84,12 +84,23 @@ }, embed: ["item+strings", "item.biblio", "item.home_library", "item.item_type", "item.first_hold.patron", "item.recall.patron", "from_library"], order: [[1, "asc"]], + orderFixed: { pre: [[0, "asc"]] }, + rowGroup: { + dataSrc: "from_library_id", + startRender: function (rows, group) { + var first = rows.data()[0]; + return first.from_library + ? escape_str(first.from_library.name) + : escape_str(group); + }, + }, + columnDefs: [{ visible: false, targets: [0] }], columns: [ { data: "me.from_library_id", title: _("Sent from"), searchable: true, - orderable: true, + orderable: false, render: function (data, type, row, meta) { return row.from_library ? escape_str(row.from_library.name) : ""; },