Bug 6720 follow-up: use authtypetext instead of summary

Although auth_types.summary contains a string describing the type of
authority in MARC21, it does not in UNIMARC. auth_types.authtypetext
contains the proper label in both marcflavours.

Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Jared Camins-Esakov 2012-07-15 09:55:30 -04:00 committed by Paul Poulain
parent ca7fa487c6
commit 049d13e24d

View file

@ -353,8 +353,8 @@ sub SearchAuthorities {
}
my $thisauthtype = GetAuthType(GetAuthTypeCode($authid));
$newline{authtype} = defined ($thisauthtype) ?
$thisauthtype->{'summary'} :
GetAuthType($authtypecode)->{'summary'};
$thisauthtype->{'authtypetext'} :
GetAuthType($authtypecode)->{'authtypetext'};
$newline{summary} = $summary;
$newline{even} = $counter % 2;
$newline{reported_tag} = $reported_tag;