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

(-)a/Koha/BackgroundJob/BatchDeleteBiblio.pm (+2 lines)
Lines 72-77 RECORD_IDS: for my $record_id ( sort { $a <=> $b } @record_ids ) { Link Here
72
        # If yes, nothing to do
72
        # If yes, nothing to do
73
        my $biblio = Koha::Biblios->find($biblionumber);
73
        my $biblio = Koha::Biblios->find($biblionumber);
74
74
75
        next unless $biblio;
76
75
        # TODO Replace with $biblio->get_issues->count
77
        # TODO Replace with $biblio->get_issues->count
76
        if ( C4::Biblio::CountItemsIssued($biblionumber) ) {
78
        if ( C4::Biblio::CountItemsIssued($biblionumber) ) {
77
            push @messages, {
79
            push @messages, {
(-)a/Koha/BackgroundJob/BatchUpdateAuthority.pm (-1 / +3 lines)
Lines 76-82 RECORD_IDS: for my $record_id ( sort { $a <=> $b } @record_ids ) { Link Here
76
        my $authid = $record_id;
76
        my $authid = $record_id;
77
        my $error  = eval {
77
        my $error  = eval {
78
            my $authority = Koha::MetadataRecord::Authority->get_from_authid($authid);
78
            my $authority = Koha::MetadataRecord::Authority->get_from_authid($authid);
79
            my $record    = $authority->record;
79
            die("Invalid authid: $authid") unless $authority;
80
81
            my $record = $authority->record;
80
            ModifyRecordWithTemplate( $mmtid, $record );
82
            ModifyRecordWithTemplate( $mmtid, $record );
81
            ModAuthority( $authid, $record, $authority->authtypecode, { skip_record_index => 1 } );
83
            ModAuthority( $authid, $record, $authority->authtypecode, { skip_record_index => 1 } );
82
        };
84
        };
(-)a/Koha/BackgroundJob/BatchUpdateBiblio.pm (-1 / +2 lines)
Lines 85-90 RECORD_IDS: for my $biblionumber ( sort { $a <=> $b } @record_ids ) { Link Here
85
        my $error = eval {
85
        my $error = eval {
86
            my $biblio = Koha::Biblios->find($biblionumber);
86
            my $biblio = Koha::Biblios->find($biblionumber);
87
            my $record = $biblio->metadata->record;
87
            my $record = $biblio->metadata->record;
88
            die("Invalid biblionumber: $biblionumber") unless $record;
89
88
            C4::MarcModificationTemplates::ModifyRecordWithTemplate( $mmtid, $record );
90
            C4::MarcModificationTemplates::ModifyRecordWithTemplate( $mmtid, $record );
89
            my $frameworkcode = C4::Biblio::GetFrameworkCode($biblionumber);
91
            my $frameworkcode = C4::Biblio::GetFrameworkCode($biblionumber);
90
92
91
- 

Return to bug 30255