@@ -, +, @@ modification - Create some items with and without stocknumber - Go to tools > batch item modification - Enter the barcodes of your selected items in the list or upload a file with them - Verify that the stocknumber/inventory number is not showing in the item edit form below - Apply patch - Reload the page - inventory number is there now - Batch edit the inventory number and verify it works as expected --- tools/batchMod.pl | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- a/tools/batchMod.pl +++ a/tools/batchMod.pl @@ -430,9 +430,8 @@ foreach my $tag (sort keys %{$tagslib}) { next if IsMarcStructureInternal( $tagslib->{$tag}{$subfield} ); next if (not $allowAllSubfields and $restrictededition && !grep { $tag . '$' . $subfield eq $_ } @subfieldsToAllow ); next if ($tagslib->{$tag}->{$subfield}->{'tab'} ne "10"); - # barcode and stocknumber are not meant to be batch-modified - next if $tagslib->{$tag}->{$subfield}->{'kohafield'} eq 'items.barcode'; - next if $tagslib->{$tag}->{$subfield}->{'kohafield'} eq 'items.stocknumber'; + # barcode is not meant to be batch-modified + next if $tagslib->{$tag}->{$subfield}->{'kohafield'} eq 'items.barcode'; my %subfield_data; my $index_subfield = int(rand(1000000)); --