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

(-)a/C4/Items.pm (+3 lines)
Lines 415-420 my %default_values_for_mod_from_marc = ( Link Here
415
    itemnotes            => undef, 
415
    itemnotes            => undef, 
416
    itype                => undef, 
416
    itype                => undef, 
417
    location             => undef, 
417
    location             => undef, 
418
    permanent_location   => undef,
418
    materials            => undef, 
419
    materials            => undef, 
419
    notforloan           => 0,
420
    notforloan           => 0,
420
    paidfor              => undef, 
421
    paidfor              => undef, 
Lines 1984-1989 sub _koha_new_item { Link Here
1984
            holdingbranch       = ?,
1985
            holdingbranch       = ?,
1985
            paidfor             = ?,
1986
            paidfor             = ?,
1986
            location            = ?,
1987
            location            = ?,
1988
            permanent_location            = ?,
1987
            onloan              = ?,
1989
            onloan              = ?,
1988
            issues              = ?,
1990
            issues              = ?,
1989
            renewals            = ?,
1991
            renewals            = ?,
Lines 2021-2026 sub _koha_new_item { Link Here
2021
            $item->{'holdingbranch'},
2023
            $item->{'holdingbranch'},
2022
            $item->{'paidfor'},
2024
            $item->{'paidfor'},
2023
            $item->{'location'},
2025
            $item->{'location'},
2026
            $item->{'permanent_location'},
2024
            $item->{'onloan'},
2027
            $item->{'onloan'},
2025
            $item->{'issues'},
2028
            $item->{'issues'},
2026
            $item->{'renewals'},
2029
            $item->{'renewals'},
(-)a/cataloguing/additem.pl (-2 / +5 lines)
Lines 65-76 sub get_item_from_barcode { Link Here
65
65
66
sub set_item_default_location {
66
sub set_item_default_location {
67
    my $itemnumber = shift;
67
    my $itemnumber = shift;
68
    my $item = GetItem( $itemnumber );
68
    if ( C4::Context->preference('NewItemsDefaultLocation') ) {
69
    if ( C4::Context->preference('NewItemsDefaultLocation') ) {
69
        my $item = GetItem( $itemnumber );
70
        $item->{'permanent_location'} = $item->{'location'};
70
        $item->{'permanent_location'} = $item->{'location'};
71
        $item->{'location'} = C4::Context->preference('NewItemsDefaultLocation');
71
        $item->{'location'} = C4::Context->preference('NewItemsDefaultLocation');
72
        ModItem( $item, undef, $itemnumber);
72
        ModItem( $item, undef, $itemnumber);
73
    }
73
    }
74
    else {
75
      $item->{'permanent_location'} = $item->{'location'} if !defined($item->{'permanent_location'});
76
      ModItem( $item, undef, $itemnumber);
77
    }
74
}
78
}
75
79
76
# NOTE: This code is subject to change in the future with the implemenation of ajax based autobarcode code
80
# NOTE: This code is subject to change in the future with the implemenation of ajax based autobarcode code
77
- 

Return to bug 6034