Project

General

Profile

« Previous | Next » 

Revision 6744

refactor Metacat access handling to be on a per-revision basis so that it more closely aligns with the DataONE approach
http://bugzilla.ecoinformatics.org/show_bug.cgi?id=5560

View differences:

DocumentUtil.java
390 390
     * Method to get docidwithrev from eml2 inline data id The eml inline data
391 391
     * id would look like eml.200.2.3
392 392
     */
393
    public static String getDocIdWithoutRevFromInlineDataID(String inlineDataID)
393
    public static String getDocIdFromInlineDataID(String inlineDataID)
394 394
    {
395 395
        String docidWithoutRev = null;
396 396
        if (inlineDataID == null) { return docidWithoutRev; }
397 397
        char charSeperator = separator;
398
        int targetNumberOfSeperator = 2;// we want to know his index
398
        int targetNumberOfSeperator = 3;// we want to know his index
399 399
        int numberOfSeperator = 0;
400 400
        for (int i = 0; i < inlineDataID.length(); i++) {
401 401
            // meet seperator, increase number of seperator

Also available in: Unified diff