Koha/cataloguing/value_builder
Jonathan Druart 6c0aa43ee1 Bug 7992: New plugin stocknumberAV
Bugzilla description (from delaye):
1 / Create a list of authorised values(INVENTORY_NUMBER). In which the
code is the prefix and the description the last number assigned.

2/A space between the prefix and number.

3 / From a holding record, after indicate the prefix when you click on
the plugin -> koha search the last number from authorised values
assigned in the list and increment n +1 level meter

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Works as advertised (see provisos below). Tested the following:
1) INVENTORY category has only authorised value 'PR' => PR prefix filled
   in, everything else gives an error.
2) INVENTORY category has two authorised values, both work.
3) INVENTORY category has no authorised values, nothing is incremented
4) Barcode contains numbers, nothing is changed.
Two potential gotchas (neither of them significant enough to warrant
changing, in my opinion):
1) Prefixes must consist only of uppercase alphabetical characters.
2) Negative numbers are padded with zeros to the left of the negative
   sign.

Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
2012-10-02 17:19:55 +02:00
..
barcode.pl Bug 8524: Followup FIX an undeclared variable $query 2012-08-31 17:42:46 +02:00
barcode_manual.pl Bug 8524 follow-up: fix Javascript syntax error 2012-08-31 17:42:48 +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
macles.pl Bug 6679 : Tidying changed parts of file 2011-11-06 18:19:19 +01:00
marc21_field_003.pl
marc21_field_005.pl
marc21_field_006.pl
marc21_field_007.pl
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 8627 Followup for removing tabs 2012-09-18 12:29:37 +02:00
marc21_field_040c.pl
marc21_field_040d.pl
marc21_field_245h.pl
marc21_leader.pl
marc21_leader_authorities.pl
marc21_leader_book.pl
marc21_leader_computerfile.pl
marc21_leader_video.pl
marc21_linking_section.pl Bug 6679 Avoid critic failure caused by ambiguous code 2012-09-19 18:47:37 +02:00
normarc_field_007.pl
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
stocknumber.pl Bug 6679: fix missing use strict 2011-12-09 09:49:22 +01:00
stocknumberam123.pl
stocknumberAV.pl Bug 7992: New plugin stocknumberAV 2012-10-02 17:19:55 +02: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
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
unimarc_field_122.pl
unimarc_field_123a.pl
unimarc_field_123d.pl
unimarc_field_123e.pl
unimarc_field_123f.pl
unimarc_field_123g.pl
unimarc_field_123i.pl
unimarc_field_123j.pl
unimarc_field_124.pl
unimarc_field_124a.pl
unimarc_field_124b.pl
unimarc_field_124c.pl
unimarc_field_124d.pl
unimarc_field_124e.pl
unimarc_field_124f.pl
unimarc_field_124g.pl
unimarc_field_125.pl
unimarc_field_125a.pl
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
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
unimarc_field_127.pl
unimarc_field_128a.pl
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
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
unimarc_field_210c.pl Bug 6679: fix missing use strict 2011-12-09 09:49:22 +01:00
unimarc_field_210c_bis.pl
unimarc_field_225a.pl BZ5719: unimarc plugin fixes 2011-08-01 12:23:55 +12:00
unimarc_field_686a.pl
unimarc_field_700-4.pl
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