mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-14 13:33:08 +00:00
[CSTPER-221] EZIDIdentifierProvider exclusions
This commit is contained in:
@@ -147,7 +147,9 @@ public class EZIDIdentifierProvider
|
|||||||
public String register(Context context, DSpaceObject dso)
|
public String register(Context context, DSpaceObject dso)
|
||||||
throws IdentifierException {
|
throws IdentifierException {
|
||||||
log.debug("register {}", dso);
|
log.debug("register {}", dso);
|
||||||
|
if (!(dso instanceof Item)) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
DSpaceObjectService<DSpaceObject> dsoService = contentServiceFactory.getDSpaceObjectService(dso);
|
DSpaceObjectService<DSpaceObject> dsoService = contentServiceFactory.getDSpaceObjectService(dso);
|
||||||
List<MetadataValue> identifiers = dsoService.getMetadata(dso, MD_SCHEMA, DOI_ELEMENT, DOI_QUALIFIER, null);
|
List<MetadataValue> identifiers = dsoService.getMetadata(dso, MD_SCHEMA, DOI_ELEMENT, DOI_QUALIFIER, null);
|
||||||
for (MetadataValue identifier : identifiers) {
|
for (MetadataValue identifier : identifiers) {
|
||||||
|
Reference in New Issue
Block a user