Bug 7442: (follow-up) restore display of heading type for non-UNIMARC

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>
This commit is contained in:
Galen Charlton 2014-05-05 01:27:33 +00:00
parent ebcb64e9fa
commit 9fe024667f
3 changed files with 7 additions and 0 deletions

View File

@ -896,6 +896,11 @@ sub BuildSummary {
$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',

View File

@ -50,6 +50,7 @@
[% END %]
[% END %]
[% BLOCK authresult %]
[% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
<div class="authres_repet">
[% FOREACH repet IN summary.repets %]
<span>[% repet | html %]</span>

View File

@ -49,6 +49,7 @@
[% END %]
[% END %]
[% BLOCK authresult %]
[% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
<div class="authres_repet">
[% FOREACH repet IN summary.repets %]
<span>[% repet | html %]</span>