From 9fe024667f03077cd9e07f3bcb0c7353d4e3cf4f Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Mon, 5 May 2014 01:27:33 +0000 Subject: [PATCH] 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 --- C4/AuthoritiesMarc.pm | 5 +++++ .../prog/en/includes/authorities-search-results.inc | 1 + .../prog/en/includes/authorities-search-results.inc | 1 + 3 files changed, 7 insertions(+) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index 1e843ec314..85982ecb8d 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -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', diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc index 8de56e9254..ceff1a476e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc @@ -50,6 +50,7 @@ [% END %] [% END %] [% BLOCK authresult %] + [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
[% FOREACH repet IN summary.repets %] [% repet | html %] diff --git a/koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc b/koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc index 8efa4ec712..593de2106e 100644 --- a/koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc +++ b/koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc @@ -49,6 +49,7 @@ [% END %] [% END %] [% BLOCK authresult %] + [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %]
[% FOREACH repet IN summary.repets %] [% repet | html %] -- 2.39.5