Changeset 30958

Show
Ignore:
Timestamp:
27.10.2016 11:43:24 (3 years ago)
Author:
kjdon
Message:

in DocumentMetadataRetrieve?, this was creating a paramlist with metadata=Title as the only parameter./Greenstone-3.08-candidate-2016.10.25-linux-x64 we need to use the param list from the original request so that we can get all metadata that is asked for.

Files:
1 modified

Legend:

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

    r30630 r30958  
    3737 
    3838/** 
    39  *  
     39 * This ServiceRack gets specified in siteConfig.xml. So it is loaded by the MessaegRouter, and two services get activated: TextQuery, DocumentMetadataRetrieve. 
     40These are located at MR level, not inside a collection. QueryAction will send messages to "TextQuery", rather than eg "mgppdemo/TextQuery". 
     41These two services will requery the MR for search results/document metadata based on collections or documents listed. 
    4042 */ 
    4143 
     
    444446        Document msg_doc = XMLConverter.newDOM(); 
    445447        Element meta_request_message = msg_doc.createElement(GSXML.MESSAGE_ELEM); 
    446         // get all the metadata params 
    447         Element new_param_list = msg_doc.createElement(GSXML.PARAM_ELEM + GSXML.LIST_MODIFIER); 
    448         Element param = GSXML.createParameter(msg_doc, "metadata", "Title"); 
    449         new_param_list.appendChild(param); 
    450448 
    451449        Set mapping_set = coll_map.entrySet(); 
     
    459457            Element meta_request = GSXML.createBasicRequest(msg_doc, GSXML.REQUEST_TYPE_PROCESS, GSPath.appendLink(cname, DOCUMENT_METADATA_RETRIEVE_SERVICE), userContext); 
    460458            meta_request.appendChild(msg_doc.importNode(doc_nodes, true)); 
    461             meta_request.appendChild(new_param_list.cloneNode(true)); 
     459            meta_request.appendChild(msg_doc.importNode(param_list, true)); 
    462460            meta_request_message.appendChild(meta_request); 
    463461