Koha/cataloguing
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
..
value_builder Bug 6448 [2/3] Barcodes::EAN13 autoBarcode 2012-08-02 18:41:44 +02:00
addbiblio.pl Bug 6939 DefaultClassificationSource should be default in 942 2012-06-28 09:29:14 +02:00
addbooks.pl Bug 8161 - Cataloging home page should be accessible to users with permission to edit catalog or edit items 2012-06-05 16:52:10 +02:00
additem.pl Bug 8503: Software error in edit items with EasyAnalyticalRecords 2012-08-01 17:31:43 +02:00
linkitem.pl Bug 5528: Analytic records support 2011-10-13 10:03:39 +13:00
merge.pl Bug 6210 - Follow up, Choose framework on merge 2012-02-01 17:40:45 +01:00
merge_ajax.pl Bug 2505 - Add commented use warnings where missing in the cataloguing/ directory 2010-04-21 20:27:05 +12:00
moveitem.pl Bug 5718 : fix permission of moveitem = edit_items needed 2011-02-09 09:33:36 +13:00
plugin_launcher.pl Bug 7356 - Fix various typos and mis-spellings 2012-01-13 11:51:26 +01:00
ysearch.pl Bug 7400: Add auto-completion on auth_finder 2012-03-19 18:20:30 +01:00
z3950_search.pl Bug 8116 : Fixing warn in error log 2012-06-05 15:53:07 +02:00