@@ -, +, @@ records commit cb336e633bf7e0cb25051a8ed8157af8486a58d7 Bug 18255: Koha::Biblio - Replace GetBiblioItemByBiblioNumber with Koha::Biblio->biblioitem - Enable ilsdi - hit /cgi-bin/koha/ilsdi.pl?service=GetRecords&id=X --- C4/ILSDI/Services.pm | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) --- a/C4/ILSDI/Services.pm +++ a/C4/ILSDI/Services.pm @@ -209,14 +209,13 @@ sub GetRecords { # Get the biblioitem from the biblionumber my $biblio = Koha::Biblios->find( $biblionumber ); - my $biblioitem = $biblio->biblioitem; - if ( $biblioitem ) { - $biblioitem = $biblioitem->unblessed; - } else { - $biblioitem->{code} = "RecordNotFound"; - # FIXME We should not need to process something else; next? + unless ( $biblio ) { + push @records, { code => "RecordNotFound" }; + next; } + my $biblioitem = $biblio->biblioitem->unblessed; + my $embed_items = 1; my $record = GetMarcBiblio({ biblionumber => $biblionumber, --