From: Matthias Meusburger Date: Mon, 14 Sep 2009 14:38:27 +0000 (+0200) Subject: MT 1092 : Items table is now sortable ; Not found barcodes are not displayed as empty... X-Git-Tag: v3.02.00-alpha~54^2~264 X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=32699901b53b448cbdc4ac386ed57d7ef518219b;p=koha.git MT 1092 : Items table is now sortable ; Not found barcodes are not displayed as empty lines anymore --- diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tmpl index 9cee451472..07369d62f1 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/batchMod.tmpl @@ -1,6 +1,14 @@ Koha › Tools › Inventory + + @@ -60,15 +68,21 @@
- - - - - - +
 
Cannot Edit" id="row" checked="checked">
+ + + + + + + + + + +
 
Cannot Edit" id="row" checked="checked" />
diff --git a/tools/batchMod.pl b/tools/batchMod.pl index d97921edcd..bb6300f06a 100755 --- a/tools/batchMod.pl +++ b/tools/batchMod.pl @@ -126,6 +126,8 @@ if ($op eq "show"){ switch ($filecontent) { case "barcode_file" { push @itemnumbers,map{GetItemnumberFromBarcode($_)} @contentlist; + # Remove not found barcodes + @itemnumbers = grep(!/^$/, @itemnumbers); } case "itemid_file" { @@ -136,6 +138,9 @@ if ($op eq "show"){ if ( my $list=$input->param('barcodelist')){ push my @barcodelist, split(/\s\n/, $list); push @itemnumbers,map{GetItemnumberFromBarcode($_)} @barcodelist; + # Remove not found barcodes + @itemnumbers = grep(!/^$/, @itemnumbers); + } } $items_display_hashref=BuildItemsData(@itemnumbers);