Project

General

Profile

« Previous | Next » 

Revision 2641

Added by Jing Tao over 18 years ago

Change the code to make sure DocumentImpl class's constructor should have rev attached.

View differences:

ContentTypeProvider.java
173 173
    // create xml document
174 174
    try
175 175
    {
176
      xmlDoc = new DocumentImpl(eml2DocId);
176
      String accNumber = eml2DocId + MetaCatUtil.getOption("accNumSeparator") +
177
                    DBUtil.getLatestRevisionInDocumentTable(eml2DocId);
178
      //System.out.println("the acc number is !!!!!!!!!!!!!!!!!"+accNumber);
179
      xmlDoc = new DocumentImpl(accNumber);
177 180
      xmlString = xmlDoc.toString();
181
      //System.out.println("the xml doc is "+xmlDoc);
178 182
      // create dom tree
179 183
      read = new StringReader(xmlString);
180 184
      in = new InputSource(read);
......
528 532
    String xmlDoc = null;
529 533
    try
530 534
    {
531
      DocumentImpl doc = new DocumentImpl(physicalDocid);
535
      String accNumber = physicalDocid + MetaCatUtil.getOption("accNumSeparator") +
536
        DBUtil.getLatestRevisionInDocumentTable(physicalDocid);
537
      //System.out.println("the accenumber is !!!!!!!!!!!!!!!!!!" + accNumber);
538
      DocumentImpl doc = new DocumentImpl(accNumber);
532 539
      xmlDoc = doc.toString();
540
      //System.out.println("The physical xml is "+xmlDoc);
533 541
    }
534 542
    catch (Exception e)
535 543
    {

Also available in: Unified diff