From 92a539958970e66326c8b079b24f104ed2df5e5b Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Wed, 15 Dec 2021 11:15:42 +0000 Subject: [PATCH] Bug 28854: Make barcode comparison case insensative --- koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt index cd584071af..aa4398e9cd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -1535,11 +1535,11 @@ $('#verify-items-bundle-contents-barcodes').on('input', function (ev) { let char = ev.target.value.slice(-1); if ( char.match(/\n/) ) { - const barcodes = ev.target.value.split('\n').map(function(s) { return s.trim() }); + const barcodes = ev.target.value.split('\n').map(function(s) { return s.trim().toUpperCase() }); const expected = []; let found = 0; $('#items-bundle-contents-table tbody > tr').each(function () { - const barcode = this.getAttribute('data-barcode'); + const barcode = this.getAttribute('data-barcode').toUpperCase(); expected.push(barcode); if (barcodes.includes(barcode)) { this.classList.add('ok'); -- 2.20.1