Fixes bug 5231: bad call to GetAuthType in BiblioAddAuthorities()
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 <nengard@bywatersolutions.com> Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
This commit is contained in:
parent
171802b174
commit
7f40eb3f6b
1 changed files with 1 additions and 1 deletions
|
@ -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'));
|
||||
|
|
Loading…
Reference in a new issue