Bug 10345: Increment copy number when adding multiple copies.
authorBjörn Nylén <bjorn.nylen@ub.lu.se>
Thu, 28 Mar 2019 09:28:29 +0000 (10:28 +0100)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 15 Apr 2019 10:41:01 +0000 (11:41 +0100)
commit625265be742d27fb27e6b501df1e38e65ad1a878
tree9cc33fde2c0f80dac0de811357e26f67fdf85c22
parent8a501d6e6368d7e72e349bf9909d62acfff6dd49
Bug 10345: Increment copy number when adding multiple copies.

To test:
1. Add multiple copies of an item with data in the 'Copy number' field. Note that tha data will be identical for all items.
2. Apply patch.
3. Add multiple copies of an item with a positive integer (ie. only digits) in the 'Copy number' field. Note that the copy number is incremented for each item.
4. Add multiple copies of an item with some other type of data in the 'Copy number' field. Note that the copy number field remains unchanged for the added items.

Signed-off-by: Pierre-Marc Thibault <pierre-marc.thibault@inLibro.com>

Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit 0e0a3173859d4374087e99e1a7cd929c8da61c76)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
cataloguing/additem.pl