@@ -, +, @@ --- C4/AuthoritiesRameau.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) --- a/C4/AuthoritiesRameau.pm +++ a/C4/AuthoritiesRameau.pm @@ -90,7 +90,10 @@ sub _findLocalAuth { } if ($rs && $rs->size() == 1) { my $zoomauth = $rs->record(0); - my $kohaauth = new_from_usmarc MARC::Record ($zoomauth->raw()); + my $kohaauth = C4::Search->can('new_record_from_zebra') ? + C4::Search::new_record_from_zebra('authorityserver', $zoomauth->raw()) : + new_from_usmarc MARC::Record ($zoomauth->raw()); + my $kohaauthid = $kohaauth->field('001')->data(); $rs->destroy(); return $kohaauthid; --