Changeset 5145


Ignore:
Timestamp:
2003-08-18T12:33:03+12:00 (21 years ago)
Author:
kjdon
Message:

we now keep a language list - read in from teh config file, that lists all teh langs available for the interface - used in preferences page. there may be a better way to do this. also GSCGI replaced by GSParams

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/src/java/org/greenstone/gsdl3/core/TransformingReceptionist.java

    r4989 r5145  
    5353    }
    5454   
    55     Element config_doc = this.converter.getDOM(interface_config_file).getDocumentElement();
     55    Element config_doc = this.converter.getDOM(interface_config_file, "utf-8").getDocumentElement();
    5656    Element action_list = (Element)GSXML.getChildByTagName(config_doc, GSXML.ACTION_ELEM+GSXML.LIST_MODIFIER);
    5757    NodeList actions = action_list.getElementsByTagName(GSXML.ACTION_ELEM);
     
    9393       
    9494    }
    95    
     95    Element lang_list = (Element)GSXML.getChildByTagName(config_doc, "languageList");
     96    if (lang_list == null) {
     97        System.out.println("lang list is null!!");
     98    } else {
     99        this.language_list = (Element) this.doc.importNode(lang_list, true);
     100    }
     101
    96102    return true;
    97103    }
     
    124130    if (cgi_param_list != null) {
    125131        HashMap params = GSXML.extractParams(cgi_param_list, false);
    126         collection = (String)params.get(GSCGI.COLLECTION_ARG);
     132        collection = (String)params.get(GSParams.COLLECTION);
    127133        if (collection == null) collection = "";
    128134    }
Note: See TracChangeset for help on using the changeset viewer.