View | Details | Raw Unified | Return to bug 32456
Collapse All | Expand All

(-)a/C4/Items.pm (-1 / +4 lines)
Lines 307-312 sub ModItemFromMarc { Link Here
307
    # to prevent it being blanked by set_or_blank
307
    # to prevent it being blanked by set_or_blank
308
    $item->{onloan} = $item_object->onloan if( $item_object->onloan && !defined $item->{onloan} );
308
    $item->{onloan} = $item_object->onloan if( $item_object->onloan && !defined $item->{onloan} );
309
309
310
    # When importing and replacing items we should not remove the dateacquired so we should set it
311
    # to the existing value
312
    $item->{dateaccessioned} = $item_object->dateaccessioned if( $item_object->dateaccessioned && !defined $item->{dateaccessioned} );
313
310
    my ( $perm_loc_tag, $perm_loc_subfield ) = C4::Biblio::GetMarcFromKohaField( "items.permanent_location" );
314
    my ( $perm_loc_tag, $perm_loc_subfield ) = C4::Biblio::GetMarcFromKohaField( "items.permanent_location" );
311
    my $has_permanent_location = defined $perm_loc_tag && defined $item_marc->subfield( $perm_loc_tag, $perm_loc_subfield );
315
    my $has_permanent_location = defined $perm_loc_tag && defined $item_marc->subfield( $perm_loc_tag, $perm_loc_subfield );
312
316
313
- 

Return to bug 32456