From d87f3e7431100cf1a79714b02d23f40b9c650898 Mon Sep 17 00:00:00 2001 From: Marius Mandrescu Date: Wed, 25 Jan 2023 12:34:57 -0500 Subject: [PATCH] Bug 32726: Authority search result display and relator term This pacht displays the relator term in Authority search results in summary column. 1. Go to authorities-home.pl 2. Do a search by personal names (Take one that has no relator term). 3. Edit the authority. 4. Add a Relator term.(100$e) 5. Check in Authority search results the relator term does not appear in summary. 6. Apply patch. 7. Repeat step 5. Now you should be able to see the telator term in summary. --- C4/AuthoritiesMarc.pm | 2 ++ .../prog/en/includes/authorities-search-results.inc | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/C4/AuthoritiesMarc.pm b/C4/AuthoritiesMarc.pm index 8d0c994ad6..f5aa9efb05 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -1071,12 +1071,14 @@ sub BuildSummary { heading => $field->as_string($subfields_to_report), hemain => ( $field->subfield( substr( $subfields_to_report, 0, 1 ) ) // undef ), field => $tag, + relator => ( $field->subfield( 'e' ) // undef ), }; } else { push @authorized, { heading => $field->as_string(), hemain => ( $field->subfield('a') // undef ), field => $tag, + relator => ( $field->subfield( 'e' ) // undef ), }; } } 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 4d862dab27..7a21ebac0a 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 @@ -72,7 +72,7 @@
[% FOREACH authorize IN summary.authorized %] - [% authorize.heading | html %] + [% authorize.heading | html %] [% authorize.relator | html %] [% UNLESS loop.last %]|[% END %] [% END %] -- 2.34.1