This patch restores the display of the authority type summary for
MARC21, where at present the heading type (i.e., "Topical Term",
"Personal Names") come over for display in the template.
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
$summary{authtypecode} = $authref->{authtypecode};
$summary{type} = $authref->{authtypetext};
$summary_template = $authref->{summary};
+ # for MARC21, the authority type summary displays a label meant for
+ # display
+ if (C4::Context->preference('marcflavour') ne 'UNIMARC') {
+ $summary{summary} = $authref->{summary};
+ }
}
my $marc21subfields = 'abcdfghjklmnopqrstuvxyz68';
my %marc21controlrefs = ( 'a' => 'earlier',
[% END %]
[% END %]
[% BLOCK authresult %]
+ [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
<div class="authres_repet">
[% FOREACH repet IN summary.repets %]
<span>[% repet | html %]</span>
[% END %]
[% END %]
[% BLOCK authresult %]
+ [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
<div class="authres_repet">
[% FOREACH repet IN summary.repets %]
<span>[% repet | html %]</span>