From 1df7bb8a1c39f641942929b809cb41a67f1fe988 Mon Sep 17 00:00:00 2001 From: Thibaud Guillot Date: Thu, 10 Feb 2022 09:45:26 +0100 Subject: [PATCH] Bug 29173 : (follow-up) replace method to get the record from the authority --- cataloguing/z3950_auth_search.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cataloguing/z3950_auth_search.pl b/cataloguing/z3950_auth_search.pl index 71c5a0b6d6..959eb0cd45 100755 --- a/cataloguing/z3950_auth_search.pl +++ b/cataloguing/z3950_auth_search.pl @@ -35,8 +35,8 @@ my $marcflavour = C4::Context->preference("marcflavour"); my $error = $input->param('error'); my $authid = $input->param('authid') || 0; -my $record = GetAuthority($authid); -my $authobj = Koha::Authorities->find($authid); +my $authority = Koha::Authorities->find($authid); +my $record = $authority->record; my $authtypecode = $authobj ? $authobj->authtypecode : ''; my $authority_type = Koha::Authority::Types->find($authtypecode); my $authtag = $authority_type->auth_tag_to_report; -- 2.25.1