Project

General

Profile

« Previous | Next » 

Revision 1484

Added by Jing Tao over 21 years ago

Add a new method to get docid from inline data id.

View differences:

src/edu/ucsb/nceas/metacat/MetaCatUtil.java
485 485
     return replicationServerName;
486 486
       
487 487
   }
488
   
489
   /**
490
    * Method to get docidwithrev from eml2 inline data id
491
    * The eml inline data id would look like eml.200.2.3
492
    */
493
   public static String getDocIdWithRevFromInlineDataID(String inlineDataID)
494
   {
495
     String docidWithRev = null;
496
     String seperator = MetaCatUtil.getOption("accNumSeparator");
497
     int    index     = inlineDataID.lastIndexOf(seperator);
498
     docidWithRev     = inlineDataID.substring(0, index);
499
     MetaCatUtil.debugMessage("docid with rev from inlinedata id: " + 
500
                               docidWithRev, 25);
501
     return docidWithRev;
502
     
503
   }
488 504
  
489 505
}

Also available in: Unified diff