[CSTPER-221] Minor changes and cleanup

This commit is contained in:
Alessandro Martelli
2020-10-30 18:41:04 +01:00
parent 28273ce292
commit b878b0a7e0
6 changed files with 9 additions and 14 deletions

View File

@@ -170,6 +170,7 @@ public class DOIIdentifierProvider
public String register(Context context, DSpaceObject dso)
throws IdentifierException {
if (!(dso instanceof Item)) {
// DOI are currently assigned only to Item
return null;
}
String doi = mint(context, dso);
@@ -183,6 +184,7 @@ public class DOIIdentifierProvider
public void register(Context context, DSpaceObject dso, String identifier)
throws IdentifierException {
if (!(dso instanceof Item)) {
// DOI are currently assigned only to Item
return;
}
String doi = doiService.formatIdentifier(identifier);