Changeset 32064 for main/trunk

Show
Ignore:
Timestamp:
14.11.2017 13:48:57 (2 years ago)
Author:
kjdon
Message:

for processDocXMLGetSection we need to actually add the section to the result!

Files:
1 modified

Legend:

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

    r28966 r32064  
    345345            String collection = currentSection.getAttribute(GSXML.COLLECTION_ATT); 
    346346 
    347             _GSDM.documentXMLGetSection(oid, collection, userContext); 
     347            Element section = _GSDM.documentXMLGetSection(oid, collection, userContext); 
    348348            if(_GSDM.checkError(result, DOC_XML_GET_SECTION)) 
    349349            { 
    350                 return result; 
    351             } 
     350              logger.error("there was an error getting the archive section for " +oid); 
     351                return result; 
     352            } 
     353            result.appendChild(result_doc.importNode(section,true)); 
    352354        } 
    353355        return result;