Skip to main content
ExLibris
  • Subscribe by RSS
  • Ex Libris Knowledge Center

    How to Configure Order of Search Results in GUI

     

    • Product: Aleph
    • Product Version: 20, 21, 22, 23
    • Relevant for Installation Type: Dedicated-Direct, Direct, Local, Total Care

     


    Description:
    When I view records in the brief list of my GUI (in the upper pane), it states "sorted by year ascending then author ascending"  Why is this the default sort order? 
    How can I make the year descending (I want to see newest records first)?

     

    Resolution:
    The sort order in the brief list of the GUI is determined by 2 factors:
    * pc_sort_field in pc_server defaults
    * tab_sort in library/$data_tab 

    You have as follows:
    >> grep "pc_sort_field " $alephe_root/pc_server_defaults
    $alephe_root/pc_server_defaults
    setenv pc_sort_field "01 A02 A"

    This means that it first sorts by sort key 01 in Ascending then by 02 in Ascending.
    The A means ascending. If it was D then it would be descending.

    The key 01 and 02 are determined by tab_sort

    >>grep ^01 $data_tab/tab_sort
    01 95 008 260## c 08 04
    >>grep ^02 $data_tab/tab_sort 
    02 01 1#### a 700## a 00 00

    Above 01 is year (either from 008 or 260 $$c)
    Above 02 is author (either from field 1##### $$a or 700## $$a)
    See header of tab_sort for more information.

    To make the order by year descending change line 
    >>grep "pc_sort_field " $alephe_root/pc_server_defaults
    setenv pc_sort_field "01 A02 A"

    To
    >>grep "pc_sort_field " $alephe_root/pc_server_defaults
    setenv pc_sort_field "01 D02 A"

     

     


    • Article last edited: 12-Mar-2016
    • Was this article helpful?