|
Lines 254-262
if ($op eq "show"){
Link Here
|
| 254 |
|
254 |
|
| 255 |
@contentlist = uniq @contentlist; |
255 |
@contentlist = uniq @contentlist; |
| 256 |
if ($filecontent eq 'barcode_file') { |
256 |
if ($filecontent eq 'barcode_file') { |
| 257 |
my $existing_items = Koha::Items->search({ itemnumber => \@contentlist }); |
257 |
my $existing_items = Koha::Items->search({ barcode => \@contentlist }); |
| 258 |
@itemnumbers = $existing_items->get_column('itemnumber'); |
258 |
@itemnumbers = $existing_items->get_column('itemnumber'); |
| 259 |
my %exists = map {$_=>1} @{$existing_items->get_column('barcode')}; |
259 |
my %exists = map {$_=>1} $existing_items->get_column('barcode'); |
| 260 |
@notfoundbarcodes = grep { !$exists{$_} } @contentlist; |
260 |
@notfoundbarcodes = grep { !$exists{$_} } @contentlist; |
| 261 |
} |
261 |
} |
| 262 |
elsif ( $filecontent eq 'itemid_file') { |
262 |
elsif ( $filecontent eq 'itemid_file') { |
| 263 |
- |
|
|