I believe that the reason this is not working for me is because of some
local customizations I did to the DOI code.  I turned off my doi code and I
saw the handles behave the way I was  hoping:

Version 1 was 1234/1.2
Version 2 was 1234/1

Basically the  most current version, retained the original handle.

Now, I was looking at the DOI table, and saw that the most current version
has a doi now with a ".2", and the original version has the original DOI.
I was hoping that the second version would retain the original DOI.  This
could all be because of some changes I have made to the code, so my
question is, with dspace 6.3 out of the box  is this possible? That is, to
have the most current version retain the original DOI?

Thank you!
-Jose

On Thu, Oct 14, 2021 at 10:10 AM Jose Blanco <[email protected]> wrote:

> I am using Dspace 6.3 and want to use 
> VersionedHandleIdentifierWithCanonicalHandles,
> but I'm not having success.
>
> I edited this file: config/spring/api/identifier-service.xml
>
> This is commented out:
>
>     <!--
>
>     <bean id="org.dspace.identifier.HandleIdentifierProvider"
> class="org.dspace.identifier.VersionedHandleIdentifierProvider"
> scope="singleton">
>
>         <property name="configurationService"
> ref="org.dspace.services.ConfigurationService"/>
>
>     </bean>
>
>     -->
>
>
> I enabled this by uncommenting it:
>
>
>     <bean id="org.dspace.identifier.HandleIdentifierProvider"
> class="org.dspace.identifier.VersionedHandleIdentifierProviderWithCanonicalHandles"
> scope="singleton">
>
>         <property name="configurationService"
> ref="org.dspace.services.ConfigurationService"/>
>
>     </bean>
>
>
> I put some logging in both files, and can see that both are being used.
>
>
>
> 2021-10-13 20:41:55,400 INFO  
> org.dspace.identifier.VersionedHandleIdentifierProvider
> @ Version original:  lookup
>
> 2021-10-13 20:41:55,407 INFO  
> org.dspace.identifier.VersionedHandleIdentifierProviderWithCanonicalHandles
> @ Version: in lookup
>
>
>
> I see that when I create a new version I have a brand new handle. I was
> expecting the new version to keep the handle and for the previous version
> to have a ".1" appended to the handle.
>
>
> I'm wondering if something has to be changed in this file:
>
>
>
> https://github.com/DSpace/DSpace/blob/dspace-6_x/dspace-api/src/main/resources/spring/spring-dspace-core-services.xml#L25
>
>
> To get this to work?
>
>
> Any thoughts?
>
>
> Thank you!
>
> -Jose
>
>
>
>
>

-- 
All messages to this mailing list should adhere to the Code of Conduct: 
https://www.lyrasis.org/about/Pages/Code-of-Conduct.aspx
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dspace-tech/CAK%3DKc-vEYSxB7sZiZwEh8jO3Tzrwtz6iZ3PG24tULo5acpmE%2Bg%40mail.gmail.com.

Reply via email to