Tweak the barcode print/csv logic to populate the current_item and
requested_item values using the same logic as the grid.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Terran McCanna <tmccanna@georgialibraries.org>
this.cellTextGenerator = {
title: row => row.title,
cp_barcode: row => (row.cp_barcode == null) ? '' : row.cp_barcode,
- current_item: row => (row.cp_barcode == null) ? '' : row.cp_barcode,
- requested_item: row => (row.cp_barcode == null) ? '' : row.cp_barcode,
+ current_item: row => row.current_copy ? row.cp_barcode : '',
+ requested_item: row => this.isCopyHold(row) ? row.cp_barcode : '',
ucard_barcode: row => row.ucard_barcode
};
}