Bugzilla – Attachment 4075 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]
patch signed-off
0001-Sort-the-facets-categories-so-they-don-t-move-every-.patch (text/plain), 898 bytes, created by
Paul Poulain
on 2011-05-11 15:53:24 UTC
(
hide
)
Description:
patch signed-off
Filename:
MIME Type:
Creator:
Paul Poulain
Created:
2011-05-11 15:53:24 UTC
Size:
898 bytes
patch
obsolete
>From 32ee8abd690b182e2e8a614c9276e740bd80f3ee 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. > > >Signed-off-by: Paul Poulain <paul.poulain@biblibre.com> >--- > 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 68018b6..9b78069 100755 >--- a/opac/opac-search.pl >+++ b/opac/opac-search.pl >@@ -431,6 +431,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.7.4.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 3580
:
3208
| 4075