Koha-clms/cataloguing/value_builder
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
..
EXAMPLE.pl Bug 42764: Fix spelling errors across the codebase 2026-06-03 16:09:04 +00:00
barcode.pl Bug 43650: incremental EAN-13 barcodes produce unexpected sequence 2026-09-29 16:03:52 +00:00
barcode_manual.pl Bug 40943: Use session_id from userenv instead of cookie for value_builder 2025-11-03 14:13:33 -07:00
callnumber-KU.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
callnumber.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
cn_browser.pl Bug 39880: Add shelving location to cn_browser results 2025-10-14 14:51:58 -06:00
dateaccessioned.pl Bug 40943: Use session_id from userenv instead of cookie for value_builder 2025-11-03 14:13:33 -07:00
marc21_field_005.pl Bug 40943: Use session_id from userenv instead of cookie for value_builder 2025-11-03 14:13:33 -07:00
marc21_field_006.pl Bug 42262: encodeURIComponent for the 006 value 2026-05-18 09:30:21 -06:00
marc21_field_007.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
marc21_field_008.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
marc21_field_008_authorities.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
marc21_field_008_classifications.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
marc21_field_245h.pl Bug 40943: Use session_id from userenv instead of cookie for value_builder 2025-11-03 14:13:33 -07:00
marc21_field_260b.pl Bug 40943: Use session_id from userenv instead of cookie for value_builder 2025-11-03 14:13:33 -07:00
marc21_leader.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
marc21_leader_authorities.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
marc21_linking_section.pl Bug 41454: Remove unused dbh calls 2026-04-15 09:14:51 -06:00
marc21_orgcode.pl Bug 40943: Use session_id from userenv instead of cookie for value_builder 2025-11-03 14:13:33 -07:00
stocknumber.pl Bug 40943: Use session_id from userenv instead of cookie for value_builder 2025-11-03 14:13:33 -07:00
stocknumberAV.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
stocknumberam123.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_4XX.pl Bug 40306: Use GET in form of value_builder/unimarc_field_4XX.pl 2026-03-19 10:42:29 +00:00
unimarc_field_009_ppn.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_010.pl Bug 31717: Value builder unimarc_field_010.pl also use 214$c 2026-03-20 11:54:32 +00:00
unimarc_field_100.pl Bug 41454: Remove unused dbh calls 2026-04-15 09:14:51 -06:00
unimarc_field_100_authorities.pl Bug 41454: Remove unused dbh calls 2026-04-15 09:14:51 -06:00
unimarc_field_105.pl Bug 41454: Remove unused dbh calls 2026-04-15 09:14:51 -06:00
unimarc_field_106.pl Bug 41454: Remove unused dbh calls 2026-04-15 09:14:51 -06:00
unimarc_field_110.pl Bug 41454: Remove unused dbh calls 2026-04-15 09:14:51 -06:00
unimarc_field_115a.pl Bug 41454: Remove unused dbh calls 2026-04-15 09:14:51 -06:00
unimarc_field_115b.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_116.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_117.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_120.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_121a.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_121b.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_122.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_123a.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_123defg.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_123i.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_123j.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_124.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_124a.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_124b.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_124c.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_124d.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_124e.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_124f.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_124g.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_125.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_125a.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_125b.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_126.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_126a.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_126b.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_127.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_128a.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_128b.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_128c.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_130.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_135a.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_140.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_141.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_146a.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_146b.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_146c.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_146d.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_146e.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_146f.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_146h.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_146i.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_181-2.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_181a.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_181b.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_181c.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_182-2.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_182a.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_182c.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_183-2.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_183a.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_210c.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_210c_bis.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_225a.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_225a_bis.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_283-2.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_283a.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_325h.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_325j.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_field_686a.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_leader.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
unimarc_leader_authorities.pl Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
upload.pl Bug 40943: Use session_id from userenv instead of cookie for value_builder 2025-11-03 14:13:33 -07:00
validate_isbn.pl Bug 41060: (QA follow-up) Consistent return for empty string 2026-01-22 10:02:32 -07:00
validate_issn.pl Bug 41060: (QA follow-up) Check in change, trigger once in Blur 2026-01-22 10:02:32 -07:00