From 62a5b72f3e70244c3a1968b994b397a7f90db2e4 Mon Sep 17 00:00:00 2001 From: Matthias Meusburger Date: Tue, 4 Aug 2015 14:59:45 +0200 Subject: [PATCH] Bug 14560 [Follow-up]: Compatible with DOM indexing. --- C4/AuthoritiesRameau.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/C4/AuthoritiesRameau.pm b/C4/AuthoritiesRameau.pm index 66c8272..c1ad3f4 100644 --- a/C4/AuthoritiesRameau.pm +++ b/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; -- 1.7.10.4