Bug 33568: Display stringified version of copy_number

FIXME - should we apply the same test for other row._strings
occurrences, in case they are not linked with an AV cat?

Signed-off-by: Owen Leonard <oleonard@myacpl.org>

Signed-off-by: Laurence Rault <laurence.rault@biblibre.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2023-04-18 15:07:19 +02:00 committed by Katrin Fischer
parent 93ef24b91a
commit b8c51e998f
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
1 changed files with 1 additions and 1 deletions

View File

@ -2848,7 +2848,7 @@
searchable: true,
orderable: true,
render: function (data, type, row, meta) {
return row.copy_number; // FIXME Display str version
return row._strings.copy_number ? row._strings.copy_number.str : row.copy_number;
}
},
{