Value builder plugins such as e.g. stocknumberam123.pl can be triggered while in batch item modification. This is a problem because it will cause the batch of items to take the new value, overwriting previously saved values in the items. We should try to not trigger value builder plugins while in batch item modification, only in normal item modification / item creation. To reproduce: 1. Find an example biblio and note which framework it was catalogued in (Edit -> Edit Record -> Check which framework is selected in the "Settings" dropdown at the top of the editing page) 2. Go to Administration -> MARC bibliographic framework -> on that framework, "Actions -> MARC Structure" 3. Find MARC fields 952$ -> "Actions -> Edit subfields" 4. Edit subfield 952$i 5. Select the value builder plugin stocknumberam123.pl 6. save 7. Go back to your example biblio, add an item, add a new stock number to field 952$i, save 8. Find barcodes of other items of biblios from your chosen framework and add them to a batch item modification 9. in the batch item modification template, click into the "Inventory number" field and then click somewhere else - the field will be incremented. At this point, there is no way to stop the field from incrementing. Even if you delete the value from the field, if you save the modification, it will still save the incremented value for all items in the batch.
After testing on ktd, apparently this was fixed at some point. The script to increment the inventory number is no longer loaded in batch modification, only in item entry. Closing the bug as it's no longer applicable.
In Bug 28445 a no_plugin flag is introduced to prevent value builder plugins being loaded in batchMod.pl batchMod-edit.tt because they won't work as jquery is loaded at the end of the page. If that's being changed somehow, this bug will arise again.