mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-19 07:53:08 +00:00
[CSTPER-221] DOI Collection/Community exclusion
This commit is contained in:
@@ -169,6 +169,9 @@ public class DOIIdentifierProvider
|
||||
@Override
|
||||
public String register(Context context, DSpaceObject dso)
|
||||
throws IdentifierException {
|
||||
if (!(dso instanceof Item)) {
|
||||
return null;
|
||||
}
|
||||
String doi = mint(context, dso);
|
||||
// register tries to reserve doi if it's not already.
|
||||
// So we don't have to reserve it here.
|
||||
@@ -179,6 +182,9 @@ public class DOIIdentifierProvider
|
||||
@Override
|
||||
public void register(Context context, DSpaceObject dso, String identifier)
|
||||
throws IdentifierException {
|
||||
if (!(dso instanceof Item)) {
|
||||
return;
|
||||
}
|
||||
String doi = doiService.formatIdentifier(identifier);
|
||||
DOI doiRow = null;
|
||||
|
||||
|
Reference in New Issue
Block a user