From 7834bb6cfe21b39e0a89bd65b4795078fafdd0c2 Mon Sep 17 00:00:00 2001 From: Ian Walls Date: Thu, 16 Sep 2010 13:13:50 -0400 Subject: [PATCH] Fixes bug 5231: bad call to GetAuthType in BiblioAddAuthorities() Content-Type: text/plain; charset="utf-8" If systempreference BiblioAddsAuthorities is on, this could lead to error messages when trying to add records to a basket from an external source. Signed-off-by: Nicole Engard --- C4/Search.pm | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/C4/Search.pm b/C4/Search.pm index 8434886..2cc2dfb 100644 --- a/C4/Search.pm +++ b/C4/Search.pm @@ -2573,7 +2573,7 @@ AND (authtypecode IS NOT NULL AND authtypecode<>\"\")|); #There are no results, build authority record, add it to Authorities, get authid and add it to 9 ###NOTICE : This is only valid if a subfield is linked to one and only one authtypecode ###NOTICE : This can be a problem. We should also look into other types and rejected forms. - my $authtypedata=C4::AuthoritiesMarc->GetAuthType($data->{authtypecode}); + my $authtypedata=C4::AuthoritiesMarc::GetAuthType($data->{authtypecode}); next unless $authtypedata; my $marcrecordauth=MARC::Record->new(); my $authfield=MARC::Field->new($authtypedata->{auth_tag_to_report},'','',"a"=>"".$field->subfield('a')); -- 1.5.6.5