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

(-)a/Koha/Biblioitem.pm (-2 / +2 lines)
Lines 1-4 Link Here
1
package Koha::Biblioitem;
1
package Koha::BiblioItem;
2
2
3
# This file is part of Koha.
3
# This file is part of Koha.
4
#
4
#
Lines 25-31 use base qw(Koha::Object); Link Here
25
25
26
=head1 NAME
26
=head1 NAME
27
27
28
Koha::Biblioitem - Koha Biblioitem Object class
28
Koha::BiblioItem - Koha BiblioItem Object class
29
29
30
=head1 API
30
=head1 API
31
31
(-)a/Koha/Biblioitems.pm (-4 / +4 lines)
Lines 1-4 Link Here
1
package Koha::Biblioitems;
1
package Koha::BiblioItems;
2
2
3
# This file is part of Koha.
3
# This file is part of Koha.
4
#
4
#
Lines 21-33 use Carp; Link Here
21
21
22
use Koha::Database;
22
use Koha::Database;
23
23
24
use Koha::Biblioitem;
24
use Koha::BiblioItem;
25
25
26
use base qw(Koha::Objects);
26
use base qw(Koha::Objects);
27
27
28
=head1 NAME
28
=head1 NAME
29
29
30
Koha::Biblioitem - Koha Biblioitem Object class
30
Koha::BiblioItem - Koha BiblioItem Object class
31
31
32
=head1 API
32
=head1 API
33
33
Lines 44-50 sub _type { Link Here
44
}
44
}
45
45
46
sub object_class {
46
sub object_class {
47
    return 'Koha::Biblioitem';
47
    return 'Koha::BiblioItem';
48
}
48
}
49
49
50
1;
50
1;
(-)a/misc/export_records.pl (-2 / +2 lines)
Lines 27-33 use C4::Context; Link Here
27
use C4::Csv;
27
use C4::Csv;
28
use C4::Record;
28
use C4::Record;
29
29
30
use Koha::Biblioitems;
30
use Koha::BiblioItems;
31
use Koha::Database;
31
use Koha::Database;
32
use Koha::Exporter::Record;
32
use Koha::Exporter::Record;
33
use Koha::DateUtils qw( dt_from_string output_pref );
33
use Koha::DateUtils qw( dt_from_string output_pref );
Lines 149-155 if ( $record_type eq 'bibs' ) { Link Here
149
            ),
149
            ),
150
150
151
        };
151
        };
152
        my $biblioitems = Koha::Biblioitems->search( $conditions, { join => 'items' } );
152
        my $biblioitems = Koha::BiblioItems->search( $conditions, { join => 'items' } );
153
        while ( my $biblioitem = $biblioitems->next ) {
153
        while ( my $biblioitem = $biblioitems->next ) {
154
            push @record_ids, $biblioitem->biblionumber;
154
            push @record_ids, $biblioitem->biblionumber;
155
        }
155
        }
(-)a/tools/export.pl (-3 / +2 lines)
Lines 27-33 use C4::Koha; # GetItemTypes Link Here
27
use C4::Output;
27
use C4::Output;
28
28
29
use Koha::Authority::Types;
29
use Koha::Authority::Types;
30
use Koha::Biblioitems;
30
use Koha::BiblioItems;
31
use Koha::Database;
31
use Koha::Database;
32
use Koha::DateUtils qw( dt_from_string output_pref );
32
use Koha::DateUtils qw( dt_from_string output_pref );
33
use Koha::Exporter::Record;
33
use Koha::Exporter::Record;
Lines 148-154 if ( $op eq "export" ) { Link Here
148
                    ),
148
                    ),
149
149
150
                };
150
                };
151
                my $biblioitems = Koha::Biblioitems->search( $conditions, { join => 'items' } );
151
                my $biblioitems = Koha::BiblioItems->search( $conditions, { join => 'items' } );
152
                while ( my $biblioitem = $biblioitems->next ) {
152
                while ( my $biblioitem = $biblioitems->next ) {
153
                    push @record_ids, $biblioitem->biblionumber;
153
                    push @record_ids, $biblioitem->biblionumber;
154
                }
154
                }
155
- 

Return to bug 8483