Bug 6720 follow-up: use authtypetext instead of summary
authorJared Camins-Esakov <jcamins@cpbibliography.com>
Sun, 15 Jul 2012 13:55:30 +0000 (09:55 -0400)
committerPaul Poulain <paul.poulain@biblibre.com>
Tue, 17 Jul 2012 13:25:41 +0000 (15:25 +0200)
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>
C4/AuthoritiesMarc.pm

index f209ab1..ece46a3 100644 (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;