From dd858180dbd3e8d2d949ba00366b97193f237278 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 Signed-off-by: Katrin Fischer Signed-off-by: Kyle M Hall Signed-off-by: Tomas Cohen Arazi --- 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 b0fab0f29c..6bd49ae180 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.39.5