}
}
}
-
+
+ return undef if $copy->isdeleted;
+
# go through the stat cat update/create process
for my $entry (@$entries) {
next unless $entry;
next if( grep{$_->stat_cat_entry == $entry->id} @$maps );
my $new_map = Fieldmapper::asset::stat_cat_entry_copy_map->new();
+
+ my $sc = ref($entry->stat_cat) ? $entry->stat_cat->id : $entry->stat_cat;
- $new_map->stat_cat( $entry->stat_cat );
+ $new_map->stat_cat( $sc );
$new_map->stat_cat_entry( $entry->id );
$new_map->owning_copy( $copy->id );
my( $override, $editor, $vol ) = @_;
my $evt;
-
# first lets see if there are any collisions
my $vols = $editor->search_asset_call_number( {
owning_lib => $vol->owning_lib,