Bugzilla – Attachment 2246 Details for
Bug 4891
Order facets in left sidebar of search results
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
proposed patch
0001-bug4891-sort-facets-in-search-sidebar.patch (text/plain), 1.03 KB, created by
Robin Sheat
on 2010-06-13 23:19:48 UTC
(
hide
)
Description:
proposed patch
Filename:
MIME Type:
Creator:
Robin Sheat
Created:
2010-06-13 23:19:48 UTC
Size:
1.03 KB
patch
obsolete
>From a9c878f07e2646a982a78ae3c9bbf85634f55099 Mon Sep 17 00:00:00 2001 >From: Robin Sheat <robin@catalyst.net.nz> >Date: Mon, 14 Jun 2010 11:17:57 +1200 >Subject: [PATCH] bug4891 - sort facets in search sidebar > >--- > catalogue/search.pl | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > >diff --git a/catalogue/search.pl b/catalogue/search.pl >index 920afb7..42f269a 100755 >--- a/catalogue/search.pl >+++ b/catalogue/search.pl >@@ -499,6 +499,12 @@ if (C4::Context->preference('NoZebra')) { > ($error, $results_hashref, $facets) = getRecords($query,$simple_query,\@sort_by,\@servers,$results_per_page,$offset,$expanded_facet,$branches,$query_type,$scan); > }; > } >+# This sorts the facets into alphabetical order >+if ($facets) { >+ foreach my $f (@$facets) { >+ $f->{facets} = [ sort { uc($a->{facet_title_value}) cmp uc($b->{facet_title_value}) } @{ $f->{facets} } ]; >+ } >+} > if ($@ || $error) { > $template->param(query_error => $error.$@); > output_html_with_http_headers $cgi, $cookie, $template->output; >-- >1.7.0.4 >
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 4891
:
2246
|
2869