Bugzilla – Attachment 167237 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.40 KB, created by
Lari Strand
on 2024-05-29 11:02:21 UTC
(
hide
)
Description:
Bug 36982: Collections facet does not get alphabetized based on collection descriptions
Filename:
MIME Type:
Creator:
Lari Strand
Created:
2024-05-29 11:02:21 UTC
Size:
1.40 KB
patch
obsolete
>From 08c8622529c8f0935ce4040dad4c620e7a89949a 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 > >--- > 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.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 36982
:
167237
|
167292
|
168143