Bug 42443: (QA follow-up) Group transfers by sending library using rowGroup

Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Martin Renvoize 2026-06-11 17:42:42 +01:00 committed by Pedro Amorim
parent e5a07ccd25
commit ebb77c8fa9
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 12 additions and 1 deletions

View File

@ -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) : "";
},