Bugzilla – Attachment 167292 Details for
Bug 36982
Collections facet does not get alphabetized based on collection descriptions
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36982: Collections facet does not get alphabetized based on collection descriptions
Bug-36982-Collections-facet-does-not-get-alphabeti.patch (text/plain), 1.44 KB, created by
David Nind
on 2024-05-30 21:21:40 UTC
(
hide
)
Description:
Bug 36982: Collections facet does not get alphabetized based on collection descriptions
Filename:
MIME Type:
Creator:
David Nind
Created:
2024-05-30 21:21:40 UTC
Size:
1.44 KB
patch
obsolete
>From 8d1985db1c68492b0e1489c07073d27b1dde0467 Mon Sep 17 00:00:00 2001 >From: Lari Strand <lari.strand@koha-suomi.fi> >Date: Wed, 29 May 2024 13:53:22 +0300 >Subject: [PATCH] Bug 36982: Collections facet does not get alphabetized based > on collection descriptions > >Signed-off-by: David Nind <david@davidnind.com> >--- > Koha/SearchEngine/Elasticsearch/Search.pm | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/Koha/SearchEngine/Elasticsearch/Search.pm b/Koha/SearchEngine/Elasticsearch/Search.pm >index 54e6e644dc..f4a316345a 100644 >--- a/Koha/SearchEngine/Elasticsearch/Search.pm >+++ b/Koha/SearchEngine/Elasticsearch/Search.pm >@@ -451,10 +451,12 @@ sub _convert_facets { > my @libraries = Koha::Libraries->search->as_list; > my $library_names = { map { $_->branchcode => $_->branchname } @libraries }; > my @locations = Koha::AuthorisedValues->search( { category => 'LOC' } )->as_list; >+ my @collections = Koha::AuthorisedValues->search( { category => 'CCODE' } )->as_list; > my $opac = C4::Context->interface eq 'opac' ; > my %special = ( > itype => { map { $_->itemtype => $_->description } @itypes }, > location => { map { $_->authorised_value => ( $opac ? ( $_->lib_opac || $_->lib ) : $_->lib ) } @locations }, >+ ccode => { map { $_->authorised_value => ( $opac ? ( $_->lib_opac || $_->lib ) : $_->lib ) } @collections }, > holdingbranch => $library_names, > homebranch => $library_names > ); >-- >2.39.2
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 36982
:
167237
|
167292
|
168143