Project

General

Profile

« Previous | Next » 

Revision 4973

Added by daigle over 15 years ago

Handle extracting a docid from a urn (lsid) during a read action

View differences:

src/edu/ucsb/nceas/metacat/MetaCatServlet.java
97 97
import edu.ucsb.nceas.shared.BaseException;
98 98
import edu.ucsb.nceas.utilities.FileUtil;
99 99
import edu.ucsb.nceas.utilities.GeneralPropertyException;
100
import edu.ucsb.nceas.utilities.LSIDUtil;
100 101
import edu.ucsb.nceas.utilities.PropertyNotFoundException;
101 102

  
102 103
/**
......
1736 1737
    	
1737 1738
        Logger logMetacat = Logger.getLogger(MetaCatServlet.class);
1738 1739
        try {
1740
        	
1741
            if (docid.startsWith("urn:")) {
1742
            	docid = LSIDUtil.getDocId(docid, true);               	
1743
            }
1739 1744
            
1740 1745
            // here is hack for handle docid=john.10(in order to tell mike.jim.10.1
1741 1746
            // mike.jim.10, we require to provide entire docid with rev). But

Also available in: Unified diff