Ignore:
Timestamp:
2012-08-30T16:06:00+12:00 (12 years ago)
Author:
sjm84
Message:

Some more fixes to help the editor work with simple documents

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/java/org/greenstone/gsdl3/action/DocumentAction.java

    r26044 r26140  
    597597                dummy_node.appendChild(this.doc.importNode(dc_response_doc_content, true));
    598598                // hack for simple type
    599                 if (document_type.equals("simple"))
     599                if (document_type.equals(GSXML.DOC_TYPE_SIMPLE))
    600600                {
    601601                    // we dont want the internal docNode, just want the content and metadata in the document
     
    618618                    }
    619619                }
     620               
     621                the_document.setAttribute(GSXML.NODE_ID_ATT, modified_doc_id);
    620622            }
    621623            else
Note: See TracChangeset for help on using the changeset viewer.