|
Lines 240-245
sub AddBiblio {
Link Here
|
| 240 |
} |
240 |
} |
| 241 |
)->store; |
241 |
)->store; |
| 242 |
$biblionumber = $biblio->biblionumber; |
242 |
$biblionumber = $biblio->biblionumber; |
|
|
243 |
Koha::Exceptions::ObjectNotCreated->throw unless $biblio; |
| 243 |
|
244 |
|
| 244 |
my ($cn_sort) = GetClassSort( $olddata->{'biblioitems.cn_source'}, $olddata->{'cn_class'}, $olddata->{'cn_item'} ); |
245 |
my ($cn_sort) = GetClassSort( $olddata->{'biblioitems.cn_source'}, $olddata->{'cn_class'}, $olddata->{'cn_item'} ); |
| 245 |
my $biblioitem = Koha::Biblioitem->new( |
246 |
my $biblioitem = Koha::Biblioitem->new( |
|
Lines 276-281
sub AddBiblio {
Link Here
|
| 276 |
agerestriction => $olddata->{agerestriction}, |
277 |
agerestriction => $olddata->{agerestriction}, |
| 277 |
} |
278 |
} |
| 278 |
)->store; |
279 |
)->store; |
|
|
280 |
Koha::Exceptions::ObjectNotCreated->throw unless $biblioitem; |
| 279 |
$biblioitemnumber = $biblioitem->biblioitemnumber; |
281 |
$biblioitemnumber = $biblioitem->biblioitemnumber; |
| 280 |
|
282 |
|
| 281 |
_koha_marc_update_bib_ids( $record, $frameworkcode, $biblionumber, $biblioitemnumber ); |
283 |
_koha_marc_update_bib_ids( $record, $frameworkcode, $biblionumber, $biblioitemnumber ); |