Changeset 32547

Show
Ignore:
Timestamp:
29.10.2018 14:10:29 (3 weeks ago)
Author:
kjdon
Message:

paramDefault elements for searching can now go in the format element instead. This makes them in hte same place as for display. Also means you can edit them in gli

Location:
main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service
Files:
2 modified

Legend:

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

    r32453 r32547  
    292292    boolean found_f_case = false; 
    293293    boolean found_f_accent = false; 
    294     NodeList param_defaults_list = GSXML.getChildrenByTagName(search_elem, GSXML.PARAM_DEFAULT_ELEM); 
     294    NodeList param_defaults_list = search_elem.getElementsByTagName(GSXML.PARAM_DEFAULT_ELEM); //GSXML.getChildrenByTagName(search_elem, GSXML.PARAM_DEFAULT_ELEM); 
    295295    for (int i=0; i<param_defaults_list.getLength(); i++) { 
    296296      Element paramdef = (Element)param_defaults_list.item(i); 
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/service/AbstractSearch.java

    r32453 r32547  
    192192  protected void getSearchParamDefaults(Element search_elem) { 
    193193 
    194     NodeList param_defaults_list = GSXML.getChildrenByTagName(search_elem, GSXML.PARAM_DEFAULT_ELEM); 
     194    NodeList param_defaults_list = search_elem.getElementsByTagName(GSXML.PARAM_DEFAULT_ELEM); //GSXML.getChildrenByTagName(search_elem, GSXML.PARAM_DEFAULT_ELEM); 
    195195    for (int i=0; i<param_defaults_list.getLength(); i++) { 
    196196      Element paramdef = (Element)param_defaults_list.item(i);