1. merritt
  2. Untitled project
  3. mrt-ingest

Commits

mark...@ucop.edu  committed 5aba8be

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

  • Participants
  • Parent commits ad0fb53
  • Branches default

Comments (0)

Files changed (1)

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

View file
  • Ignore whitespace
 	    }
 	    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";
 		    }