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:
parent
e5a07ccd25
commit
ebb77c8fa9
|
|
@ -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) : "";
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue