Bugzilla – Attachment 3208 Details for
Bug 3580
Control order in which facet categories display
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Sort the facets categories so they don't move every search.
0001-Sort-the-facets-categories-so-they-don-t-move-every.patch (text/plain), 841 bytes, created by
Frédérick Capovilla
on 2011-02-24 17:36:13 UTC
(
hide
)
Description:
Sort the facets categories so they don't move every search.
Filename:
MIME Type:
Creator:
Frédérick Capovilla
Created:
2011-02-24 17:36:13 UTC
Size:
841 bytes
patch
obsolete
>From 8d898032ed791d8678e6bb39300a2e7064e3b2bf Mon Sep 17 00:00:00 2001 >From: =?utf-8?q?Fr=C3=A9d=C3=A9rick=20Capovilla?= <frederick.capovilla@sys-tech.net> >Date: Thu, 24 Feb 2011 12:30:09 -0500 >Subject: [PATCH] Sort the facets categories so they don't move every search. > >--- > opac/opac-search.pl | 1 + > 1 files changed, 1 insertions(+), 0 deletions(-) > >diff --git a/opac/opac-search.pl b/opac/opac-search.pl >index 745817c..2f40d8e 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -426,6 +426,7 @@ if ($facets) { > foreach my $f (@$facets) { > $f->{facets} = [ sort { uc($a->{facet_title_value}) cmp uc($b->{facet_title_value}) } @{ $f->{facets} } ]; > } >+ @$facets = sort {$a->{expand} cmp $b->{expand}} @$facets; > } > > # use Data::Dumper; print STDERR "-" x 25, "\n", Dumper($results_hashref); >-- >1.5.6.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 3580
:
3208
|
4075