Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the CollectiveAccess support forum! Here the developers and community answer questions related to use of the software. Please include the following information in every new issue posted here:

  1. Version of the software that is used, along with browser and version

  2. If the issue pertains to Providence, Pawtucket or both

  3. What steps you’ve taken to try to resolve the issue

  4. Screenshots demonstrating the issue

  5. The relevant sections of your installation profile or configuration including the codes and settings defined for your local elements.


If your question pertains to data import or export, please also include:

  1. Data sample

  2. Your mapping


Answers may be delayed for posts that do not include sufficient information.

Sort by preferred label in hierarchy view?

It looks like the hierarchy view always sorts by the idno (the parenthetical part).  Is there a way to default to sorting by preferred label instead?  For example, in the attached screenshot, the hierarchy view is sorting by the idno (the "Common Name").  I'd much rather it sort by the preferred label (the "Latin Name").  Thanks!
1019 x 684 - 102K

Comments

  • edited February 13
    You can set this option in the root item from your list (In your case anthropoda).
    You'll have a sort order option (See attachment).

    John
    1003 x 915 - 78K
  • Wow, thanks for the quick reply!  I found the page to edit the setting (screenshot attached).  The Default Sort Order was already set to "By label". I tried changing it (and changing it back), but CA still sorts by idno regardless of what I change the sort order to.
    1046 x 698 - 63K
  • Yes, there is a setting for hierarchy sort by table in app/conf/app.conf
  • edited February 14
    Awesome, thank you! That did it. For anyone curious, the exact thing to do is change is this line:
     

    ca_objects_hierarchy_browser_sort_values = [ca_objects.idno_sort] 

    to this:

    ca_objects_hierarchy_browser_sort_values = [ca_objects.preferred_labels.name_sort]
Sign In or Register to comment.