From 326d3fb20a5358736ddf952570ea7038052385ca Mon Sep 17 00:00:00 2001 From: Alex Buckley Date: Wed, 29 Jul 2020 01:13:06 +0000 Subject: [PATCH] Bug 26079: Import all authority records into default auth type if syspref enabled --- C4/AuthoritiesMarc.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index bd25837c36..90ef489c49 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -331,6 +331,7 @@ Get the record and tries to guess the adequate authtypecode from its content. sub GuessAuthTypeCode { my ($record, $heading_fields) = @_; return unless defined $record; + return '' if C4::Preferences('UseAuthority008AsAuthType'); $heading_fields //= { "MARC21"=>{ '100'=>{authtypecode=>'PERSO_NAME'}, -- 2.11.0