Lines 253-261
sub AddItemBatchFromMarc {
Link Here
|
253 |
my $item_object = Koha::Item->new($item)->store; |
253 |
my $item_object = Koha::Item->new($item)->store; |
254 |
push @itemnumbers, $item_object->itemnumber; # FIXME not checking error |
254 |
push @itemnumbers, $item_object->itemnumber; # FIXME not checking error |
255 |
|
255 |
|
256 |
logaction("CATALOGUING", "ADD", $item->itemnumber, "item") if C4::Context->preference("CataloguingLog"); |
256 |
logaction("CATALOGUING", "ADD", $item_object->itemnumber, "item") if C4::Context->preference("CataloguingLog"); |
257 |
|
257 |
|
258 |
my $new_item_marc = _marc_from_item_hash($item->unblessed, $frameworkcode, $unlinked_item_subfields); |
258 |
my $new_item_marc = _marc_from_item_hash($item_object->unblessed, $frameworkcode, $unlinked_item_subfields); |
259 |
$item_field->replace_with($new_item_marc->field($itemtag)); |
259 |
$item_field->replace_with($new_item_marc->field($itemtag)); |
260 |
} |
260 |
} |
261 |
|
261 |
|
262 |
- |
|
|