Changeset 31137


Ignore:
Timestamp:
11/22/16 11:24:48 (4 years ago)
Author:
kjdon
Message:

can't use a HashMap to store two params with the same name. doh. lets just add them individually

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/Action.java

    r30835 r31137  
    148148        //ADD SITE METADATA
    149149        Element metadata_request = GSXML.createBasicRequest(doc, GSXML.REQUEST_TYPE_DESCRIBE, "", userContext);
    150         //create a hashmap of params
    151         HashMap subset_params = new HashMap(2);
    152         subset_params.put(GSXML.SUBSET_PARAM, GSXML.METADATA_ELEM + GSXML.LIST_MODIFIER);
    153         subset_params.put(GSXML.SUBSET_PARAM, GSXML.DISPLAY_TEXT_ELEM + GSXML.LIST_MODIFIER);
    154150        //create the element to put the params in
    155151        Element param_list = doc.createElement(GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER);
    156         //put them in
    157         GSXML.addParametersToList(param_list, subset_params);
     152        // want to get metadataList and displayItemList
     153        GSXML.addParameterToList(param_list, GSXML.SUBSET_PARAM , GSXML.METADATA_ELEM + GSXML.LIST_MODIFIER);
     154        GSXML.addParameterToList(param_list, GSXML.SUBSET_PARAM , GSXML.DISPLAY_TEXT_ELEM  + GSXML.LIST_MODIFIER);
     155       
    158156        metadata_request.appendChild(param_list);
    159157        //create the message
     
    165163        Element metadata_response = (Element) GSXML.getChildByTagName(metadata_response_message, GSXML.RESPONSE_ELEM);
    166164        //merge in metadata
    167         // *************** need to merge the displayITem lists too
     165        // *************** need to merge the displayItem lists too
    168166        GSXML.mergeMetadataLists(element, metadata_response);
    169167        GSXML.mergeSpecifiedLists(element, metadata_response, GSXML.DISPLAY_TEXT_ELEM);
Note: See TracChangeset for help on using the changeset viewer.