Changeset 30731


Ignore:
Timestamp:
08/22/16 11:37:01 (5 years ago)
Author:
kjdon
Message:

if we are setting text, then we just remove the NoText metadata if its there, in case we are adding text where there wasn't any before. Leaving NoText=1 may mean the text doesn't get displayed (depending on the format statement)

File:
1 edited

Legend:

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

    r30704 r30731  
    449449                    String collection = (String) keyValueMap.get("collection");
    450450                    String newContent = (String) keyValueMap.get("text");
    451 
     451                   
    452452                    _GSDM.documentXMLSetText(oid, collection, newContent, userContext);
    453                    
     453                    // make sure NoText metadata is not set (in case we have added text where there was none before)
     454                    _GSDM.documentXMLDeleteMetadata(oid, collection, "NoText", userContext);
    454455                    // only top level doc ids are in database
    455456                    markDocumentInFlatDatabase("R", collection, OID.getTop(oid));
Note: See TracChangeset for help on using the changeset viewer.