Changeset 30161

Show
Ignore:
Timestamp:
02.09.2015 11:32:11 (4 years ago)
Author:
kjdon
Message:

need to make the metadata_list element before adding something to itsvn diff src/java/org/greenstone/gsdl3/service/CrossCollectionSearch.java

Files:
1 modified

Legend:

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

    r30150 r30161  
    253253        // just send back num docs returned. Too hard to work out number of matches etc as each index type 
    254254        // does it differently 
     255        Element metadata_list = result_doc.createElement(GSXML.METADATA_ELEM + GSXML.LIST_MODIFIER);  
     256        result.appendChild(metadata_list); 
    255257        GSXML.addMetadata(metadata_list, "numDocsReturned", "" + num_docs); 
    256258        return result;