From ecf5dcdbfad35dbdf81843274049113907620a10 Mon Sep 17 00:00:00 2001 From: Marcel de Rooy Date: Fri, 6 Jan 2017 11:21:10 +0100 Subject: [PATCH] Bug 17736: [Follow-up] Resolve inherited AUTOLOAD for non-method errors Like: Use of inherited AUTOLOAD for non-method Koha::Biblio::GetMarcBiblio() is deprecated at /usr/share/koha/masterclone/Koha/Biblio.pm line 60. Use of inherited AUTOLOAD for non-method Koha::Biblio::GetRecordValue() is deprecated at /usr/share/koha/masterclone/Koha/Biblio.pm line 60. Resolved by not importing them but fully qualifying them. Signed-off-by: Marcel de Rooy Signed-off-by: Martin Renvoize Signed-off-by: Kyle M Hall --- Koha/Biblio.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Koha/Biblio.pm b/Koha/Biblio.pm index f0c8308202..aad43437e3 100644 --- a/Koha/Biblio.pm +++ b/Koha/Biblio.pm @@ -21,7 +21,7 @@ use Modern::Perl; use Carp; -use C4::Biblio qw( GetRecordValue GetMarcBiblio GetFrameworkCode ); +use C4::Biblio qw(); use Koha::Database; use Koha::DateUtils qw( dt_from_string ); @@ -58,7 +58,7 @@ Keyword to MARC mapping for subtitle must be set for this method to return any p sub subtitles { my ( $self ) = @_; - return map { $_->{subfield} } @{ GetRecordValue( 'subtitle', GetMarcBiblio( $self->id ), $self->frameworkcode ) }; + return map { $_->{subfield} } @{ C4::Biblio::GetRecordValue( 'subtitle', C4::Biblio::GetMarcBiblio( $self->id ), $self->frameworkcode ) }; } =head3 can_article_request -- 2.39.5