Bugzilla – Attachment 179881 Details for
Bug 32726
Add relator terms to authority search results display
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.65 KB, created by
Hammat wele
on 2025-03-28 19:14:11 UTC
(
hide
)
Description:
Bug 32726: Authority search result display and relator term
Filename:
MIME Type:
Creator:
Hammat wele
Created:
2025-03-28 19:14:11 UTC
Size:
2.65 KB
patch
obsolete
>From d87f3e7431100cf1a79714b02d23f40b9c650898 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 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 @@ > <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
| 179881 |
179882