mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-17 15:03:18 +00:00
fix: add default HandleIdentifierProvider for disabled versioning
Setting versioning.enabled = false in versioning.cfg is not enough to
disable versioning. It is also required to replace the bean class
VersionedHandleIdentifierProvider with a HandleIdentifierProvider
in identifier-service.xml. I've added one that is commented out as by
default versioning is enabled.
(cherry picked from commit 92c38de99e
)
This commit is contained in:

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
fb76988909
commit
4e721bfbb0
@@ -4,7 +4,7 @@
|
|||||||
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
xsi:schemaLocation="http://www.springframework.org/schema/beans
|
||||||
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
|
||||||
|
|
||||||
<!-- Identifier Service Application Interface. Will be autowired with
|
<!-- Identifier Service Application Interface. Will be autowired with
|
||||||
any Identifier Providers present in Spring context.
|
any Identifier Providers present in Spring context.
|
||||||
-->
|
-->
|
||||||
<bean id="org.dspace.identifier.service.IdentifierService"
|
<bean id="org.dspace.identifier.service.IdentifierService"
|
||||||
@@ -12,6 +12,13 @@
|
|||||||
autowire="byType"
|
autowire="byType"
|
||||||
scope="singleton"/>
|
scope="singleton"/>
|
||||||
|
|
||||||
|
<!-- If you disable versioning, you need to use the default HandleIdentifierProvider. -->
|
||||||
|
<!--
|
||||||
|
<bean id="org.dspace.identifier.HandleIdentifierProvider" class="org.dspace.identifier.HandleIdentifierProvider" scope="singleton">
|
||||||
|
<property name="configurationService" ref="org.dspace.services.ConfigurationService"/>
|
||||||
|
</bean>
|
||||||
|
-->
|
||||||
|
|
||||||
<!-- If you enabled versioning, you should use one of the versioned
|
<!-- If you enabled versioning, you should use one of the versioned
|
||||||
handle identifier provider instead of the default one.
|
handle identifier provider instead of the default one.
|
||||||
The VersionedHandleIdentifierProvider creates a new versioned
|
The VersionedHandleIdentifierProvider creates a new versioned
|
||||||
@@ -26,7 +33,7 @@
|
|||||||
a new version is created the previous version gets a new
|
a new version is created the previous version gets a new
|
||||||
handle. This leads to a handle that points always to the
|
handle. This leads to a handle that points always to the
|
||||||
newest version, but there is no permanent handle, that
|
newest version, but there is no permanent handle, that
|
||||||
will always keep pointing to the acutal newest one.
|
will always keep pointing to the actual newest one.
|
||||||
-->
|
-->
|
||||||
<!--
|
<!--
|
||||||
<bean id="org.dspace.identifier.HandleIdentifierProvider" class="org.dspace.identifier.VersionedHandleIdentifierProviderWithCanonicalHandles" scope="singleton">
|
<bean id="org.dspace.identifier.HandleIdentifierProvider" class="org.dspace.identifier.VersionedHandleIdentifierProviderWithCanonicalHandles" scope="singleton">
|
||||||
|
Reference in New Issue
Block a user