@@ -, +, @@ (affects Elastic Search users) being indexed, not the old one. search for this change in Authority (Search entire record). --- C4/AuthoritiesMarc.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) --- a/C4/AuthoritiesMarc.pm +++ a/C4/AuthoritiesMarc.pm @@ -664,7 +664,6 @@ sub AddAuthority { } my $auth_exists=0; - my $oldRecord; if (!$authid) { my $sth=$dbh->prepare("select max(authid) from auth_header"); $sth->execute; @@ -680,7 +679,6 @@ sub AddAuthority { # warn "auth_exists = $auth_exists"; } if ($auth_exists>0){ - $oldRecord=GetAuthority($authid); $record->add_fields('001',$authid) unless ($record->field('001')); # warn "\n\n\n enregistrement".$record->as_formatted; my $sth=$dbh->prepare("update auth_header set authtypecode=?,marc=?,marcxml=? where authid=?"); @@ -693,7 +691,7 @@ sub AddAuthority { $sth->finish; logaction( "AUTHORITIES", "ADD", $authid, "authority" ) if C4::Context->preference("AuthoritiesLog"); } - ModZebra($authid,'specialUpdate',"authorityserver",$oldRecord,$record); + ModZebra( $authid, 'specialUpdate', 'authorityserver', $record ); return ($authid); } --