From c99383cd9121e41580295d315ba42ea7fe48897e 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 070be517d6..565f5555d0 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt @@ -1537,11 +1537,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.30.2