Commit b62fa15c authored by Ricco Førgaard's avatar Ricco Førgaard

Use a URI as identifier in DC results.

parent d7166829
......@@ -11,8 +11,11 @@ import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import javax.xml.xpath.XPathExpressionException;
import nesstar.api.common.EGMSResource;
import org.apache.log4j.Logger;
import org.w3c.dom.Document;
import com.nesstar.api.NesstarObject;
import com.nesstar.api.NotAuthorizedException;
import com.nesstar.oaipmh.result.GetRecordResult;
import com.nesstar.oaipmh.view.OAINameSpacePrefixMapper;
import com.nesstar.oaipmh.xml.dublincore.ElementType;
......@@ -20,18 +23,6 @@ import com.nesstar.oaipmh.xml.dublincore.OaiDcType;
import com.nesstar.oaipmh.xml.dublincore.ObjectFactory;
import com.nesstar.oaipmh.xml.oaipmh.MetadataType;
import org.apache.log4j.Logger;
import org.w3c.dom.Document;
import com.nesstar.api.ComplexDdiElement;
import com.nesstar.api.DdiElement;
import com.nesstar.api.DdiList;
import com.nesstar.api.NesstarObject;
import com.nesstar.api.NotAuthorizedException;
import com.nesstar.api.SimpleDdiElement;
import com.nesstar.api.Study;
import com.nesstar.api.impl.SimpleDdiElementImpl;
public class DublinCoreRecordBuilder extends RecordBuilder {
private static Logger logger = Logger.getLogger(DublinCoreRecordBuilder.class);
protected ObjectFactory dcObjectFactory;
......@@ -147,7 +138,7 @@ public class DublinCoreRecordBuilder extends RecordBuilder {
}
protected void createIdentifierElement() throws NotAuthorizedException, XPathExpressionException, IOException {
String identifier = result.getDDIidentifier();
String identifier = result.getIdentifier();
ElementType elementType = getNewElementType(identifier);
JAXBElement<ElementType> element = dcObjectFactory.createIdentifier(elementType);
documentElements.add(element);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment