Lines 306-311
sub ModItemFromMarc {
Link Here
|
306 |
my $item_object = Koha::Items->find($itemnumber); |
306 |
my $item_object = Koha::Items->find($itemnumber); |
307 |
my $item = TransformMarcToKoha( $localitemmarc, $frameworkcode, 'items' ); |
307 |
my $item = TransformMarcToKoha( $localitemmarc, $frameworkcode, 'items' ); |
308 |
|
308 |
|
|
|
309 |
my $has_permanent_location = $item->{permanent_location}; |
310 |
|
309 |
# Retrieving the values for the fields that are not linked |
311 |
# Retrieving the values for the fields that are not linked |
310 |
my @mapped_fields = Koha::MarcSubfieldStructures->search( |
312 |
my @mapped_fields = Koha::MarcSubfieldStructures->search( |
311 |
{ |
313 |
{ |
Lines 328-333
sub ModItemFromMarc {
Link Here
|
328 |
$item_object = $item_object->set_or_blank($item); |
330 |
$item_object = $item_object->set_or_blank($item); |
329 |
$item_object->cn_sort($existing_cn_sort); # Resetting to the existing value |
331 |
$item_object->cn_sort($existing_cn_sort); # Resetting to the existing value |
330 |
|
332 |
|
|
|
333 |
$item_object->make_column_dirty('permanent_location') if $has_permanent_location; |
334 |
|
331 |
my $unlinked_item_subfields = _get_unlinked_item_subfields( $localitemmarc, $frameworkcode ); |
335 |
my $unlinked_item_subfields = _get_unlinked_item_subfields( $localitemmarc, $frameworkcode ); |
332 |
$item_object->more_subfields_xml(_get_unlinked_subfields_xml($unlinked_item_subfields)); |
336 |
$item_object->more_subfields_xml(_get_unlinked_subfields_xml($unlinked_item_subfields)); |
333 |
$item_object->store({ skip_record_index => $params->{skip_record_index} }); |
337 |
$item_object->store({ skip_record_index => $params->{skip_record_index} }); |
334 |
- |
|
|