Lines 90-96
sub _findLocalAuth {
Link Here
|
90 |
} |
90 |
} |
91 |
if ($rs && $rs->size() == 1) { |
91 |
if ($rs && $rs->size() == 1) { |
92 |
my $zoomauth = $rs->record(0); |
92 |
my $zoomauth = $rs->record(0); |
93 |
my $kohaauth = new_from_usmarc MARC::Record ($zoomauth->raw()); |
93 |
my $kohaauth = C4::Search->can('new_record_from_zebra') ? |
|
|
94 |
C4::Search::new_record_from_zebra('authorityserver', $zoomauth->raw()) : |
95 |
new_from_usmarc MARC::Record ($zoomauth->raw()); |
96 |
|
94 |
my $kohaauthid = $kohaauth->field('001')->data(); |
97 |
my $kohaauthid = $kohaauth->field('001')->data(); |
95 |
$rs->destroy(); |
98 |
$rs->destroy(); |
96 |
return $kohaauthid; |
99 |
return $kohaauthid; |
97 |
- |
|
|