From 870460120783ef82aaeee8bb0a4fb129bf7d3dd6 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 0a2a736493..4a07f2a236 100644 --- a/C4/AuthoritiesMarc.pm +++ b/C4/AuthoritiesMarc.pm @@ -998,12 +998,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 819face44c..5d601418ac 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 @@ -65,7 +65,7 @@
[% FOREACH authorize IN summary.authorized %] - [% authorize.heading | html %] + [% authorize.heading | html %] [% authorize.relator | html %] [% UNLESS loop.last %] | [% END %] [% END %] -- 2.34.1