I'm using version 6.3. I made a change to my instance to not have the handle and doi created at the end of the submission process. Normally this would happen in this line of code:
So I made a change so that from this line of code:
I have added the following code:
try
{
identifierService.register(context, item);
} catch (IdentifierException e) {
throw new RuntimeException("Can't create an Identifier!", e);
}
And I removed the call to identifierService.register from InstallItemServiceImpl.java. So basically, I'm moving the call to identifierService.register to the start of the submission, rather than have it at the end of the submission (Long story as to why I'm doing this).
I had versioning enabled, without using VersionedHandleIdentifierProviderWithCanonicalHandles, and the handles worked as expected. But I want versioning to use VersionedHandleIdentifierProviderWithCanonicalHandles, and when I enable it, the handle is not retained with the previous version being .1 and so on. If I revert back to out-of-the box, the handles look as I would expect them ( handle is retained and older versions get .x). I'm not sure why this is happening. I must need to do something additionally to get this to work, I just don't know what that would be.
With my code change, enabling VersionedHandleIdentifierProviderWithCanonicalHandles makes no difference. Versioning works the same with or without it.
What is the difference in calling identifierService.register at the start of the submission as opposed to at the end of the submission?
Any ideas?
Thank you!
-Jose