|
9 | 9 | --> |
10 | 10 | <bean id="org.dspace.identifier.service.IdentifierService" |
11 | 11 | class="org.dspace.identifier.IdentifierServiceImpl" |
12 | | - autowire="byType" |
13 | | - scope="singleton"> |
| 12 | + autowire="byType"> |
14 | 13 | </bean> |
15 | 14 |
|
16 | 15 | <!-- If you disable versioning, you need to use the default HandleIdentifierProvider. --> |
|
20 | 19 | </bean> |
21 | 20 | --> |
22 | 21 |
|
23 | | - <!-- If you enabled versioning, you should use one of the versioned |
24 | | - handle identifier provider instead of the default one. |
25 | | - The VersionedHandleIdentifierProvider creates a new versioned |
26 | | - handle for every new version. |
27 | | - --> |
| 22 | + <!-- If you enabled versioning, you should use one of the versioned |
| 23 | + handle identifier provider instead of the default one. |
| 24 | + The VersionedHandleIdentifierProvider creates a new versioned |
| 25 | + handle for every new version. |
| 26 | + --> |
28 | 27 | <bean id="org.dspace.identifier.HandleIdentifierProvider" class="org.dspace.identifier.VersionedHandleIdentifierProvider" scope="singleton"> |
29 | 28 | <property name="configurationService" ref="org.dspace.services.ConfigurationService"/> |
30 | 29 | </bean> |
|
101 | 100 | --> |
102 | 101 | <!-- Uncomment this to use the DataCite API directly as DOIConnector. |
103 | 102 | <bean id="org.dspace.identifier.doi.DOIConnector" |
104 | | - class="org.dspace.identifier.doi.DataCiteConnector" |
105 | | - scope="singleton"> |
| 103 | + class="org.dspace.identifier.doi.DataCiteConnector" |
| 104 | + scope="singleton"> |
106 | 105 | <property name='DATACITE_SCHEME' value='https'/> |
107 | | - <property name='DATACITE_HOST' value='mds.test.datacite.org'/> |
| 106 | + <property name='DATACITE_HOST' value='${doi.datacite.host}'/> |
108 | 107 | <property name='DATACITE_DOI_PATH' value='/doi/' /> |
109 | 108 | <property name='DATACITE_METADATA_PATH' value='/metadata/' /> |
110 | 109 | <property name='disseminationCrosswalkByEntityType'> |
|
165 | 164 | <property name="configurationValue" value="${identifier.doi.namespaceseparator}" /> |
166 | 165 | </bean> |
167 | 166 |
|
168 | | - <!– Below there are defined the generation strategy –> |
169 | 167 | <bean id="defaultDoiGenerationStrategy" class="org.dspace.identifier.generators.ConfigurableDoiGenerationStrategy"> |
170 | | - <!– Filter configured in item-filters.xml file –> |
171 | 168 | <constructor-arg name="filter" ref="always_true_filter" /> |
172 | 169 | <constructor-arg name="doiNamespaceGenerator" ref="defaultValueNamespace" /> |
173 | 170 | <constructor-arg name="generationType" value="DEFAULT" /> |
|
181 | 178 | <map> |
182 | 179 | <entry key="collections"> |
183 | 180 | <list> |
184 | | - <value>123456789/6</value> |
| 181 | + <value>${doi.generator.collection.publication.handle:-}</value> |
185 | 182 | </list> |
186 | 183 | </entry> |
187 | 184 | </map> |
|
190 | 187 | <bean id="publicationFilter" class="org.dspace.content.logic.DefaultFilter"> |
191 | 188 | <property name="statement" ref="publicationCollectionCond"/> |
192 | 189 | </bean> |
| 190 | + <bean id="publicationDOIGenerationStrategy" class="org.dspace.identifier.generators.ConfigurableDoiGenerationStrategy"> |
| 191 | + <constructor-arg name="filter" ref="publicationFilter" /> |
| 192 | + <constructor-arg name="doiNamespaceGenerator" ref="defaultValueNamespace" /> |
| 193 | + <constructor-arg name="generationType" value="CUSTOM" /> |
| 194 | + </bean> |
| 195 | + --> |
| 196 | +<!-- |
193 | 197 |
|
194 | 198 | <bean id="publicationGenerator" class="org.dspace.identifier.generators.FixedConfigurationValueNamespaceGenerator"> |
195 | 199 | <property name="configurationValue" value="publications/dspace-local/" /> |
196 | 200 | </bean> |
197 | 201 |
|
198 | | - <bean id="thesisDoiGenerationStrategy" class="org.dspace.identifier.generators.ConfigurableDoiGenerationStrategy"> |
199 | | - <constructor-arg name="filter" ref="publicationFilter" /> |
200 | | - <constructor-arg name="doiNamespaceGenerator" ref="publicationGenerator" /> |
201 | | - <constructor-arg name="generationType" value="CUSTOM" /> |
202 | | - </bean> |
203 | | - --> |
| 202 | +--> |
204 | 203 | <!-- CUSTOM GENERATORS --> |
205 | 204 |
|
206 | 205 | </beans> |
0 commit comments