Changeset 30669

Show
Ignore:
Timestamp:
04.08.2016 11:43:16 (3 years ago)
Author:
kjdon
Message:

adding sortby to use dictionary lookup

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/SharedSoleneGS2FieldSearch.java

    r30632 r30669  
    181181        String shortname = sort.getAttribute(GSXML.SHORTNAME_ATT); 
    182182        sort_ids.add(shortname); 
    183         String display_name = getDisplayText(sort, GSXML.DISPLAY_TEXT_NAME, lang, "en"); 
     183        String display_name = getDisplayText(sort, GSXML.DISPLAY_TEXT_NAME, lang, "en", "metadata_names"); 
    184184        if (display_name.equals("")) 
    185185          { 
     186        // use the sort name and look up in dictionary 
    186187        display_name = sort.getAttribute(GSXML.NAME_ATT); 
    187188        if (display_name.equals("")) 
     
    189190            display_name = shortname; 
    190191          } 
     192        else { 
     193          display_name = getTextString("param.sortBy." + display_name, lang); 
     194        } 
    191195          } 
    192196        sort_names.add(display_name);