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

(-)a/Koha/BackgroundJob/CreateEHoldingsFromBiblios.pm (-1 / +2 lines)
Lines 245-251 sub process { Link Here
245
                : _get_marc21_mapping($biblio);
245
                : _get_marc21_mapping($biblio);
246
246
247
            $eholding_title = Koha::ERM::EHoldings::Title->new($eholding_title)->store;
247
            $eholding_title = Koha::ERM::EHoldings::Title->new($eholding_title)->store;
248
            Koha::ERM::EHoldings::Resource->new({ title_id => $eholding_title->title_id, package_id => $package_id })->store;
248
            Koha::ERM::EHoldings::Resource->new( { title_id => $eholding_title->title_id, package_id => $package_id } )
249
                ->store( { imported_from_list => 1 } );
249
            $report->{total_success}++;
250
            $report->{total_success}++;
250
        } catch {
251
        } catch {
251
            push @messages, {
252
            push @messages, {
(-)a/Koha/ERM/EHoldings/Resource.pm (-2 / +6 lines)
Lines 44-50 Koha::ERM::EHoldings::Resource - Koha EHolding resource Object class Link Here
44
=cut
44
=cut
45
45
46
sub store {
46
sub store {
47
    my ($self) = @_;
47
    my ($self, $params) = @_;
48
49
    if ( $params->{imported_from_list} ){
50
        $self = $self->SUPER::store;
51
        return $self;
52
    }
48
53
49
    # FIXME This is terrible and ugly, we need to:
54
    # FIXME This is terrible and ugly, we need to:
50
    # * Provide a mapping for each attribute of title
55
    # * Provide a mapping for each attribute of title
51
- 

Return to bug 35115