trying to use VersionedHandleIdentifierWithCanonicalHandles

17 views
Skip to first unread message

Jose Blanco

unread,
Oct 14, 2021, 10:11:33 AM10/14/21
to DSpace Technical Support
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




Jose Blanco

unread,
Oct 15, 2021, 1:46:30 PM10/15/21
to DSpace Technical Support
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
Reply all
Reply to author
Forward
0 new messages