mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-15 05:53:08 +00:00
CST-12881 mereìge conflicts with main
This commit is contained in:
@@ -68,10 +68,9 @@ public class HandleIdentifierProvider extends IdentifierProvider {
|
||||
try {
|
||||
String id = mint(context, dso);
|
||||
|
||||
// move canonical to point the latest version
|
||||
// Populate metadata
|
||||
if (dso instanceof Item || dso instanceof Collection || dso instanceof Community) {
|
||||
Item item = (Item) dso;
|
||||
populateHandleMetadata(context, item, id);
|
||||
populateHandleMetadata(context, dso, id);
|
||||
}
|
||||
|
||||
return id;
|
||||
@@ -88,8 +87,7 @@ public class HandleIdentifierProvider extends IdentifierProvider {
|
||||
try {
|
||||
handleService.createHandle(context, dso, identifier);
|
||||
if (dso instanceof Item || dso instanceof Collection || dso instanceof Community) {
|
||||
Item item = (Item) dso;
|
||||
populateHandleMetadata(context, item, identifier);
|
||||
populateHandleMetadata(context, dso, identifier);
|
||||
}
|
||||
} catch (IOException | IllegalStateException | SQLException | AuthorizeException e) {
|
||||
log.error(LogHelper.getHeader(context,
|
||||
|
Reference in New Issue
Block a user