Changeset 30669


Ignore:
Timestamp:
08/04/16 11:43:16 (5 years ago)
Author:
kjdon
Message:

adding sortby to use dictionary lookup

File:
1 edited

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);
Note: See TracChangeset for help on using the changeset viewer.