Bug 7442: (follow-up) restore display of heading type for non-UNIMARC
authorGalen Charlton <gmc@esilibrary.com>
Mon, 5 May 2014 01:27:33 +0000 (01:27 +0000)
committerGalen Charlton <gmc@esilibrary.com>
Mon, 5 May 2014 01:27:33 +0000 (01:27 +0000)
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>
C4/AuthoritiesMarc.pm
koha-tmpl/intranet-tmpl/prog/en/includes/authorities-search-results.inc
koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc

index 1e843ec..85982ec 100644 (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',
index 8de56e9..ceff1a4 100644 (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>
index 8efa4ec..593de21 100644 (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>