Lines 210-219
sub AddBiblio {
Link Here
|
210 |
try { |
210 |
try { |
211 |
$schema->txn_do(sub { |
211 |
$schema->txn_do(sub { |
212 |
|
212 |
|
213 |
if (C4::Context->preference('BiblioAddsAuthorities')) { |
|
|
214 |
BiblioAutoLink( $record, $frameworkcode ); |
215 |
} |
216 |
|
217 |
# transform the data into koha-table style data |
213 |
# transform the data into koha-table style data |
218 |
SetUTF8Flag($record); |
214 |
SetUTF8Flag($record); |
219 |
my $olddata = TransformMarcToKoha( $record, $frameworkcode ); |
215 |
my $olddata = TransformMarcToKoha( $record, $frameworkcode ); |
Lines 283-288
sub AddBiblio {
Link Here
|
283 |
# update MARC subfield that stores biblioitems.cn_sort |
279 |
# update MARC subfield that stores biblioitems.cn_sort |
284 |
_koha_marc_update_biblioitem_cn_sort( $record, $olddata, $frameworkcode ); |
280 |
_koha_marc_update_biblioitem_cn_sort( $record, $olddata, $frameworkcode ); |
285 |
|
281 |
|
|
|
282 |
if (C4::Context->preference('BiblioAddsAuthorities')) { |
283 |
BiblioAutoLink( $record, $frameworkcode ); |
284 |
} |
285 |
|
286 |
# now add the record |
286 |
# now add the record |
287 |
ModBiblioMarc( $record, $biblionumber ) unless $defer_marc_save; |
287 |
ModBiblioMarc( $record, $biblionumber ) unless $defer_marc_save; |
288 |
|
288 |
|
289 |
- |
|
|