Bug 3580

Summary: Control order in which facet categories display
Product: Koha Reporter: Jane Wagner <jwagner>
Component: SearchingAssignee: Galen Charlton <gmcharlt>
Status: CLOSED FIXED QA Contact:
Severity: enhancement    
Priority: PATCH-Sent (DO NOT USE) CC: chris, fcapovilla, fridolin.somers, katrin.fischer, koha.sekjal, paul.poulain
Version: master   
Hardware: PC   
OS: All   
See Also: http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4891
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Bug Depends on:    
Bug Blocks: 25701    
Attachments: Sort the facets categories so they don't move every search.
patch signed-off

Description Chris Cormack 2010-05-21 01:12:30 UTC

---- Reported by jwagner@ptfs.com 2009-09-04 13:33:39 ----

The search facets do not always display in the same order (e.g., Author, Topic, Series, etc.), but it's not clear what controls the order they do show in.  In discussion on the IRC today, it was first thought that the category with the fewest number of entries would display first, but upon further investigation that did not seem to be the case.  I poked around in the template file and in Koha.pm and Search.pm, but could not figure out what controls the order.

I think libraries should be given the option to specify the order of the categories, so that, for example, Author would always be first, Topic second, Series third, etc.

--- Bug imported by chris@bigballofwax.co.nz 2010-05-21 01:12 UTC  ---

This bug was previously known as _bug_ 3580 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3580

Unknown operating system Windows 2000. Setting to default OS "All".
Actual time not defined. Setting to 0.0
The original reporter of this bug does not have
   an account here. Reassigning to the person who moved
   it here: chris@bigballofwax.co.nz.
   Previous reporter was jwagner@ptfs.com.

Comment 1 Frédérick Capovilla 2011-02-24 17:36:13 UTC Comment hidden (obsolete)
Comment 2 Paul Poulain 2011-05-11 15:53:24 UTC
Created attachment 4075 [details] [review]
patch signed-off
Comment 3 Ian Walls 2011-05-25 12:30:43 UTC
Simple patch to read, marking as passed QA
Comment 4 Chris Cormack 2011-05-25 20:54:35 UTC
Pushed and merged to master, please test
Comment 5 Katrin Fischer 2011-08-05 17:45:05 UTC
Looks good to me. Marking fixed.