Commits

Anonymous committed 5aba8be

do not supply datacite metadata when upadting shadow ark (EZID will reject)

Comments (0)

Files changed (1)

ingest-src/src/main/java/org/cdlib/mrt/ingest/utility/MintUtil.java

 	    }
 	    httpCommand.addHeader("Content-Type", "text/plain");
 	    if (! shadow) {
-		String stringEntity = null;
+	        String stringEntity = null;
 		stringEntity = getMetadata(jobState) + "\n" + context + "\n" + target + coowner;
-		if (profileState.getIdentifierScheme() == Identifier.Namespace.DOI) {
+		if (profileState.getIdentifierScheme() == Identifier.Namespace.DOI && mint) {
 	            for (String dataCite : getDataCiteMetadata(ingestRequest, profileState, jobState)) {
 		        stringEntity = stringEntity + dataCite + "\n";
 		    }