# create the copy
if ($acn) {
- $item = Fieldmapper::asset::copy->new();
+ $item = Fieldmapper::asset::copy->new();
$item->barcode($item_info->{barcode});
$item->call_number($acn->id());
+ if ($self->{config}->{items}->{circ_as_type}) {
+ $item->circ_as_type($self->{config}->{items}->{circ_as_type});
+ }
$item->circ_lib($self->{session}->{work_ou}->id);
+ if ($self->{config}->{items}->{circ_modifier}) {
+ $item->circ_modifier($self->{config}->{items}->{circ_modifier});
+ }
$item->circulate('t');
if ($self->{config}->{items}->{use_force_holds}) {
$item->holdable('f');
$item->holdable('t');
}
$item->opac_visible('f');
+ if ($self->{config}->{items}->{item_price}) {
+ $item->price($self->{config}->{items}->{item_price});
+ }
$item->deleted('f');
$item->fine_level(OILS_PRECAT_COPY_FINE_LEVEL);
$item->loan_duration(OILS_PRECAT_COPY_LOAN_DURATION);
- $item->location(1);
+ if ($self->{config}->{items}->{shelving_location}) {
+ $item->location($self->{config}->{items}->{shelving_location}->{sid});
+ } else {
+ $item->location(1);
+ }
$item->status(0);
$item->editor($self->{session}->{user}->id);
$item->creator($self->{session}->{user}->id);