@@ -, +, @@ - Note field (3xx) are not displayed on search result page. We get 'HASH()' text. - Parallel/Other forms (7xx) are not displayed, with language name in front of heading - On result page, seealso form are displayed, and end with '--' --- C4/AuthoritiesMarc.pm | 13 ++++++--- koha-tmpl/opac-tmpl/prog/en/css/opac.css | 4 +++ .../en/includes/authorities-search-results.inc | 29 +++++++++++-------- .../opac-tmpl/prog/en/modules/opac-auth-detail.tt | 24 +++++++++++++--- 4 files changed, 49 insertions(+), 21 deletions(-) --- a/C4/AuthoritiesMarc.pm +++ a/C4/AuthoritiesMarc.pm @@ -1052,10 +1052,15 @@ sub BuildSummary { } } # // form - foreach my $field ($record->field('7..')) { - my $lang = substr($field->subfield('8'),3,3); - push @otherscript, { lang => $lang, term => $field->subfield('a'), direction => 'ltr', field => $field->tag() }; - } + + # Other forms + @otherscript = map { { + lang => $_->subfield('8') || '', + term => $_->subfield('a'), + direction => 'ltr', + field => $_->tag, + } } $record->field('7..'); + } else { # construct MARC21 summary # FIXME - looping over 1XX is questionable --- a/koha-tmpl/opac-tmpl/prog/en/css/opac.css +++ a/koha-tmpl/opac-tmpl/prog/en/css/opac.css @@ -2682,6 +2682,10 @@ ul.ui-tabs-nav li { .authstanzaheading { font-weight: bold; } +div.authorizedheading { + font-weight: bold; + margin-bottom: 5px; +} .authstanza li { margin-left: 0.5em; --- a/koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc +++ a/koha-tmpl/opac-tmpl/prog/en/includes/authorities-search-results.inc @@ -2,15 +2,13 @@ [% IF marcflavour == 'UNIMARC' %] [% SWITCH type %] [% CASE 'broader' %] - [% heading | html %] -- + BT: [% heading | html %] [% CASE 'narrower' %] - [% heading | html %] -- - [% CASE 'narrower' %] - [% heading | html %] -- + NT: [% heading | html %] [% CASE 'seefrom' %] - [% heading | html %] -- + UF: [% heading | html %] [% CASE 'seealso' %] - [% heading | html %] -- + RT: [% heading | html %] [% END %] [% ELSE %] [% IF ( label ) %][% label | html %][% END %] @@ -33,15 +31,22 @@ [% BLOCK authresult %] [% IF ( summary.summary ) %][% summary.summary | html %]:[% END %] [% UNLESS ( summary.summaryonly ) %] - [% FOREACH authorize IN summary.authorized %] +
[% IF ( marcflavour == 'UNIMARC' ) %] - [% FOREACH note IN summary.notes %] - [% note | html %] + [% IF summary.notes %] +