- do not display 'null' for Vandelay import errors and
holds table current copy barcodes
- trim leading and trailing whitespace from the items table
call number
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Jane Sandberg <sandbej@linnbenton.edu>
this.cellTextGenerator = {
'+matches': row => row.matches.length + '',
- 'import_error': row => row.import_error,
+ 'import_error': row => (row.import_error == null) ? '' : row.import_error,
'imported_as': row => row.imported_as + ''
};
}
};
this.cellTextGenerator = {
- callnumber: row => `${row.call_number_prefix_label} ` +
- `${row.call_number_label} ${row.call_number_suffix_label}`,
+ callnumber: row => (`${row.call_number_prefix_label} ` +
+ `${row.call_number_label} ${row.call_number_suffix_label}`).trim(),
holdable: row => this.copyContext.holdable(row),
barcode: row => row.barcode
};
// Text-ify function for cells that use display templates.
this.cellTextGenerator = {
title: row => row.title,
- cp_barcode: row => row.cp_barcode
+ cp_barcode: row => (row.cp_barcode == null) ? '' : row.cp_barcode
};
}