mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 21:13:19 +00:00
115693: DataCiteConnector fallback for blank metadata doi
This commit is contained in:
@@ -15,6 +15,7 @@ import java.util.HashMap;
|
|||||||
import java.util.Iterator;
|
import java.util.Iterator;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
|
|
||||||
|
import org.apache.commons.lang.StringUtils;
|
||||||
import org.apache.http.HttpEntity;
|
import org.apache.http.HttpEntity;
|
||||||
import org.apache.http.HttpResponse;
|
import org.apache.http.HttpResponse;
|
||||||
import org.apache.http.StatusLine;
|
import org.apache.http.StatusLine;
|
||||||
@@ -410,7 +411,7 @@ public class DataCiteConnector
|
|||||||
}
|
}
|
||||||
|
|
||||||
String metadataDOI = extractDOI(root);
|
String metadataDOI = extractDOI(root);
|
||||||
if (null == metadataDOI) {
|
if (StringUtils.isBlank(metadataDOI)) {
|
||||||
// The DOI will be saved as metadata of dso after successful
|
// The DOI will be saved as metadata of dso after successful
|
||||||
// registration. To register a doi it has to be part of the metadata
|
// registration. To register a doi it has to be part of the metadata
|
||||||
// sent to DataCite. So we add it to the XML we'll send to DataCite
|
// sent to DataCite. So we add it to the XML we'll send to DataCite
|
||||||
|
Reference in New Issue
Block a user