Changeset 30729

Show
Ignore:
Timestamp:
22.08.2016 11:31:31 (3 years ago)
Author:
kjdon
Message:

a couple of change meta functions were not writing out changes back to the file

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/util/GSDocumentModel.java

    r29224 r30729  
    1212import java.util.Vector; 
    1313 
     14import org.apache.log4j.*; 
     15 
    1416import javax.xml.parsers.DocumentBuilder; 
    1517import javax.xml.parsers.DocumentBuilderFactory; 
     
    2830public class GSDocumentModel 
    2931{ 
     32  //static Logger logger = Logger.getLogger(org.greenstone.gsdl3.util.GSDocumentModel.class.getName()); 
    3033    //The two archive databases 
    3134    protected static final String ARCHIVEINFSRC = "archiveinf-src"; 
     
    875878            metadataElems.get(position).getParentNode().removeChild(metadataElems.get(position)); 
    876879        } 
     880 
     881        //Write the new change back into the file 
     882        if (!writeXMLFile(docXML, oid, collection, userContext)) 
     883        { 
     884            _errorStatus = ERROR_COULD_NOT_WRITE_TO_DOC_XML; 
     885        } 
     886 
    877887    } 
    878888 
     
    914924            elem.getParentNode().removeChild(elem); 
    915925        } 
     926 
     927        //Write the new change back into the file 
     928        if (!writeXMLFile(docXML, oid, collection, userContext)) 
     929        { 
     930            _errorStatus = ERROR_COULD_NOT_WRITE_TO_DOC_XML; 
     931        } 
     932 
    916933    } 
    917934