Bugzilla – Attachment 180844 Details for
Bug 39503
Linker should always respect thesaurus with LinkerConsiderThesaurus on
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39503: [alternate] Collapse thesaurus if value in 008/_11 and 040
Bug-39503-alternate-Collapse-thesaurus-if-value-in.patch (text/plain), 1.26 KB, created by
Nick Clemens (kidclamp)
on 2025-04-11 12:36:58 UTC
(
hide
)
Description:
Bug 39503: [alternate] Collapse thesaurus if value in 008/_11 and 040
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2025-04-11 12:36:58 UTC
Size:
1.26 KB
patch
obsolete
>From 6e97d624f0183c032cebe5d85c041be8a243eaab Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 11 Apr 2025 12:36:40 +0000 >Subject: [PATCH] Bug 39503: [alternate] Collapse thesaurus if value in 008/_11 > and 040 > >--- > Koha/SearchEngine/Elasticsearch.pm | 8 ++++++++ > 1 file changed, 8 insertions(+) > >diff --git a/Koha/SearchEngine/Elasticsearch.pm b/Koha/SearchEngine/Elasticsearch.pm >index 945dcd9e7ad..9098a4eaa3e 100644 >--- a/Koha/SearchEngine/Elasticsearch.pm >+++ b/Koha/SearchEngine/Elasticsearch.pm >@@ -918,6 +918,14 @@ sub marc_records_to_documents { > } > } > >+ if ( $self->index eq $AUTHORITIES_INDEX && scalar @{ $record_document->{'subject-heading-thesaurus'} } > 1 ) { >+ >+ # We should really only have two thesauri defined in the case where 008/_11 = 'z' and 040$f is defined >+ # In that case, we should drop the z >+ @{ $record_document->{'subject-heading-thesaurus'} } = >+ map { $_ eq 'z' ? () : $_ } @{ $record_document->{'subject-heading-thesaurus'} }; >+ } >+ > # Check if there is at least one available item > if ( $self->index eq $BIBLIOS_INDEX ) { > my ( $tag, $code ) = C4::Biblio::GetMarcFromKohaField('biblio.biblionumber'); >-- >2.39.5
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 39503
:
180082
|
180131
|
180200
|
180201
|
180844
|
180902
|
180903
|
180940
|
180941
|
181205
|
182182
|
182183