From 32699901b53b448cbdc4ac386ed57d7ef518219b Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Mon, 14 Sep 2009 16:38:27 +0200 Subject: [PATCH] MT 1092 : Items table is now sortable ; Not found barcodes are not displayed as empty lines anymore --- .../prog/en/modules/tools/batchMod.tmpl | 26 ++++++++++++++----- tools/batchMod.pl | 5 ++++ 2 files changed, 25 insertions(+), 6 deletions(-) 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); -- 2.39.5