Bugzilla – Attachment 145667 Details for
Bug 32726
Authority search result display and relator terms in 22.05
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 32726: Authority search result display and relator term
Bug-32726-Authority-search-result-display-and-rela.patch (text/plain), 2.63 KB, created by
Marius
on 2023-01-25 17:40:55 UTC
(
hide
)
Description:
Bug 32726: Authority search result display and relator term
Filename:
MIME Type:
Creator:
Marius
Created:
2023-01-25 17:40:55 UTC
Size:
2.63 KB
patch
obsolete
>From 870460120783ef82aaeee8bb0a4fb129bf7d3dd6 Mon Sep 17 00:00:00 2001 >From: Marius Mandrescu <marius.mandrescu@inLibro.com> >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 @@ > <div class="authorizedheading"> > [% FOREACH authorize IN summary.authorized %] > <span class="authorizedheading [% IF auth_preview %]authority_preview[% END %]"> >- <a data-authid="[% authid | html %]" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | uri %]">[% authorize.heading | html %]</a> >+ <a data-authid="[% authid | html %]" href="/cgi-bin/koha/authorities/detail.pl?authid=[% authid | uri %]">[% authorize.heading | html %] [% authorize.relator | html %]</a> > </span> > [% UNLESS loop.last %] | [% END %] > [% END %] >-- >2.34.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 32726
: 145667 |
145757