Koha/cataloguing/value_builder
Dobrica Pavlinusic 28e5427c60 Bug 6448 [2/3] Barcodes::EAN13 autoBarcode
Implement auto-incrementing EAN-13 barcodes

To make this work, C4::Barcodes::next was modified to call process_tail with
new incremented value so that process_tail can generate correct checksum.
Since process_tail is currenlty not used by any barcodes, this change is safe.

C4::Barcodes is used by addbiblio.pl when adding multiple records, while value_builder
is used in all other cases.

Test scenario:

1. prove t/Barcodes_EAN13.t

2. KOHA_CONF=/etc/koha/sites/fer/koha-conf.xml prove t/db_dependent/Barcodes.t
   this will check C4::Barcode implementataion

3. in systempreference change autoBarcode to incremental EAN-13 barcode

4. edit two items of any biblio assigning barcodes and verify that numbers
   are increasing. Have in mind that last digit is check digit, and it
   doesn't increment, but is calculated from barcode itself. Example with
   checksum in brackets: 000000086275[2], 000000086276[9], 000000086277[6]

5. Add Item and verify that it gets assigned next barcode

6. Add & Duplicate item and verify barcode increase

7. Add Multiple Copies and verify that barcode increase for each copy

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
2012-08-02 18:41:44 +02:00
..
barcode.pl Bug 6448 [2/3] Barcodes::EAN13 autoBarcode 2012-08-02 18:41:44 +02:00
callnumber-KU.pl bug_7458: Correct existing existing call numbers retrieval 2012-03-12 18:20:22 +01:00
callnumber.pl Bug #6139 Automatic incrementation of call number does not work if prefix contains ' 2011-08-14 20:27:17 +12:00
dateaccessioned.pl Bug 6125: repairs dateaccessioned plugin 2012-03-22 16:18:38 +01:00
labs_theses.pl Fix for Bug 2947, value_builder scripts using authnotrequired 2010-10-06 08:20:23 -04:00
macles.pl Bug 6679 : Tidying changed parts of file 2011-11-06 18:19:19 +01:00
marc21_field_003.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
marc21_field_005.pl Bug 5374 (update transaction date when saving biblio) RESENT with small fix 2011-01-05 08:42:47 +13:00
marc21_field_006.pl Bug 6167 - can't use 008 or 006 plugin in cataloging 2011-04-12 09:12:09 +12:00
marc21_field_007.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
marc21_field_008.pl Bug 7601 - Preference for default language for field 008 Range 35-37 (instead of hard coded "eng") 2012-06-10 10:53:14 +02:00
marc21_field_008_authorities.pl Bug 4839: Adjust default values for MARC21 authority Fixed-Length Data Elements 2011-08-04 09:58:42 +12:00
marc21_field_040c.pl Bug 2505 - Add commented use warnings where missing in the cataloguing/ directory 2010-04-21 20:27:05 +12:00
marc21_field_040d.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
marc21_field_245h.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
marc21_leader.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
marc21_leader_authorities.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
marc21_leader_book.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
marc21_leader_computerfile.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
marc21_leader_video.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
normarc_field_007.pl Bug 3644 Add support for NORMARC 2011-03-30 10:13:37 +02:00
normarc_field_008.pl Bug 7601 - Preference for default language for field 008 Range 35-37 (instead of hard coded "eng") 2012-06-10 10:53:14 +02:00
normarc_leader.pl Bug 3644 Add support for NORMARC 2011-03-30 10:13:37 +02:00
stocknumber.pl Bug 6679: fix missing use strict 2011-12-09 09:49:22 +01:00
stocknumberam123.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_4XX.pl Bug 6679: fix missing use strict 2011-12-09 09:49:22 +01:00
unimarc_field_010.pl BZ5719: unimarc plugin fixes 2011-08-01 12:23:55 +12:00
unimarc_field_100.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_105.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_106.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_110.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_115a.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_115b.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_116.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_117.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_120.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_121a.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_121b.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_122.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_123a.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_123d.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_123e.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_123f.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_123g.pl Bug 5385: POD Cleanups (part 2) 2010-11-12 10:06:56 +13:00
unimarc_field_123i.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_123j.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124a.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124b.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124c.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124d.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124e.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124f.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_124g.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_125.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_125a.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_125b.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_126.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_126a.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_126b.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_127.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_128a.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_128b.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_128c.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_130.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_135a.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_140.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00
unimarc_field_141.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_210c.pl Bug 6679: fix missing use strict 2011-12-09 09:49:22 +01:00
unimarc_field_210c_bis.pl Bug 5692 : Adds an alternative cataloguing plugin for 210$c 2011-04-13 15:48:42 +12:00
unimarc_field_225a.pl BZ5719: unimarc plugin fixes 2011-08-01 12:23:55 +12:00
unimarc_field_686a.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_field_700-4.pl Fix for Bug 3081, Url's contain spaces 2010-06-03 20:59:31 -04:00
unimarc_leader.pl Bug 6465 - Errors in UNIMARC plugins for fixed length fields (for | and space) (T::T issue) 2011-09-26 14:32:32 +13:00