Skip to content

Commit

Permalink
#2438 generate file DOI on publish if blank (DataCite)
Browse files Browse the repository at this point in the history
  • Loading branch information
sekmiller committed May 4, 2018
1 parent 75ae448 commit ff9aa46
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,10 @@ protected HashMap<String, String> getUpdateMetadataFromDataset(Dataset datasetIn

@Override
public boolean publicizeIdentifier(DvObject dvObject) {
logger.log(Level.FINE,"updateIdentifierStatus");
logger.log(Level.FINE,"updateIdentifierStatus");
if(dvObject.getIdentifier() == null || dvObject.getIdentifier().isEmpty() ){
dvObject = generateIdentifier(dvObject);
}
String identifier = getIdentifier(dvObject);
HashMap<String, String> metadata = getUpdateMetadata(dvObject);
metadata.put("_status", "public");
Expand Down

0 comments on commit ff9aa46

Please sign in to comment.