|
Lines 209-222
sub GetRecords {
Link Here
|
| 209 |
|
209 |
|
| 210 |
# Get the biblioitem from the biblionumber |
210 |
# Get the biblioitem from the biblionumber |
| 211 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
211 |
my $biblio = Koha::Biblios->find( $biblionumber ); |
| 212 |
my $biblioitem = $biblio->biblioitem; |
212 |
unless ( $biblio ) { |
| 213 |
if ( $biblioitem ) { |
213 |
push @records, { code => "RecordNotFound" }; |
| 214 |
$biblioitem = $biblioitem->unblessed; |
214 |
next; |
| 215 |
} else { |
|
|
| 216 |
$biblioitem->{code} = "RecordNotFound"; |
| 217 |
# FIXME We should not need to process something else; next? |
| 218 |
} |
215 |
} |
| 219 |
|
216 |
|
|
|
217 |
my $biblioitem = $biblio->biblioitem->unblessed; |
| 218 |
|
| 220 |
my $embed_items = 1; |
219 |
my $embed_items = 1; |
| 221 |
my $record = GetMarcBiblio({ |
220 |
my $record = GetMarcBiblio({ |
| 222 |
biblionumber => $biblionumber, |
221 |
biblionumber => $biblionumber, |
| 223 |
- |
|
|