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

(-)a/Koha/Biblio.pm (-1 / +1 lines)
Lines 93-99 It will return C<undef> if the biblio doesn't exist. Link Here
93
sub get_from_biblionumber {
93
sub get_from_biblionumber {
94
    my ($class, $bibnum, %options) = @_;
94
    my ($class, $bibnum, %options) = @_;
95
95
96
    my $marc = get_marc_biblio($bibnum, %options);
96
    my $marc = $class->get_marc_biblio($bibnum, %options);
97
    return $class->new($marc, $bibnum);
97
    return $class->new($marc, $bibnum);
98
}
98
}
99
99
(-)a/misc/search_tools/rebuild_elastic_search.pl (-2 / +1 lines)
Lines 125-131 if ($index_biblios) { Link Here
125
        $next = sub {
125
        $next = sub {
126
            my $r = shift @biblionumbers;
126
            my $r = shift @biblionumbers;
127
            return () unless defined $r;
127
            return () unless defined $r;
128
            return ($r, Koha::Biblio->get_marc_biblio($r, item_data => 1));
128
            return ($r, Koha::Biblio->get_from_biblionumber($r, item_data => 1 ));
129
        };
129
        };
130
    } else {
130
    } else {
131
        my $records = Koha::Biblio->get_all_biblios_iterator();
131
        my $records = Koha::Biblio->get_all_biblios_iterator();
132
- 

Return to bug 12478