Koha-clms/cataloguing
nela a86b7a063d
Bug 43650: incremental EAN-13 barcodes produce unexpected sequence
When incremental EAN-13 barcodes are selected for autoBarcode and new item
records are created an unexpected sequence of barcode numbers is produced
instead of a sequence where the barcode is incremented by 1 between each item.
This patch fixes that by adding quote marks in the inline JS, thus treating the
barcode as a string rather than an integer :+)

Test plan:
1. have records imported from somewhere but with no items
2. autoBarcode set to incremental EAN-13 barcodes
3. create a number of new items
4. observe that the item barcodes don't follow the expected sequence
5. apply patch
6. delete item records
7. repeat step 3
8. observe that the item barcodes follow the expected sequence

Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
2026-09-29 16:03:52 +00:00
..
value_builder Bug 43650: incremental EAN-13 barcodes produce unexpected sequence 2026-09-29 16:03:52 +00:00
addbiblio.pl Bug 42512: Pass already checked/cleaned MARC::Record to Metadata Extractor 2026-07-16 10:54:18 +00:00
addbooks.pl Bug 41989: Call getlanguage after get_template_and_user 2026-03-19 10:52:24 +00:00
additem.pl Bug 32773: Add fast cataloging support for multiple frameworks 2026-05-08 16:05:36 -06:00
cataloging-home.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
concerns.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
editor.pl Bug 40841: Implement library limits on Z39.50 searches 2026-03-26 14:21:28 +01:00
linkitem.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
merge.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
merge_ajax.pl Bug 38664: Tidy the whole codebase 2025-02-11 14:58:24 +01:00
moveitem.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
plugin_launcher.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
ysearch.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
z3950_auth_search.pl Bug 40841: Implement library limits on Z39.50 searches 2026-03-26 14:21:28 +01:00
z3950_search.pl Bug 40841: Implement library limits on Z39.50 searches 2026-03-26 14:21:28 +01:00