Skip to content

Commit

Permalink
Merged dspace-cris-7 into CST-11738
Browse files Browse the repository at this point in the history
  • Loading branch information
steph-ieffam committed Oct 25, 2023
2 parents 5b4703a + e529855 commit 72052ef
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import org.dspace.content.MetadataValue;
import org.dspace.content.WorkspaceItem;
import org.dspace.content.dto.MetadataValueDTO;
import org.dspace.content.packager.PackageUtils;
import org.dspace.core.Context;
import org.dspace.discovery.DiscoverQuery;
import org.dspace.discovery.DiscoverQuery.SORT_ORDER;
Expand Down Expand Up @@ -287,6 +288,8 @@ private int fillWorkspaceItems(Context context, int record, LiveImportDataProvid
if (!exist(dataObject.getMetadata())) {
WorkspaceItem wsItem = externalDataService.createWorkspaceItemFromExternalDataObject(context,
dataObject, this.collection);
Item itemFromWs = wsItem.getItem();
PackageUtils.addDepositLicense(context, null, itemFromWs, wsItem.getCollection());
for (List<MetadataValueDTO> metadataList : metadataValueToAdd(wsItem.getItem())) {
addMetadata(wsItem.getItem(), metadataList);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
package org.dspace.app.rest;

import static org.hamcrest.MatcherAssert.assertThat;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.is;
import static org.hamcrest.Matchers.not;
import static org.hamcrest.Matchers.notNullValue;
Expand Down Expand Up @@ -199,6 +200,8 @@ public void creatingWorkspaceItemImportedFromScopusTest() throws Exception {
+ ".traditionalpageone['dc.identifier.scopus'][0].value", is(scopus2R.getValue())))
.andExpect(jsonPath("$._embedded.workflowitems[1].sections"
+ ".traditionalpageone['dc.identifier.doi'][0].value", is(doi2R.getValue())))
.andExpect(jsonPath("$._embedded.workflowitems[0].sections.license.url",
containsString("/api/core/bitstreams/")))
.andExpect(jsonPath("$.page.totalElements", is(2)));
}

Expand Down
2 changes: 1 addition & 1 deletion dspace/config/modules/metrics.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ plumx.data-no-thumbnail = false
plumx.data-no-artifacts = false

# properties for publication widget
plumx.data-popup = left
plumx.data-popup = bottom
plumx.data-hide-when-empty = true
plumx.data-hide-usage = false
plumx.data-hide-captures = false
Expand Down
5 changes: 5 additions & 0 deletions dspace/config/spring/api/deduplication.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
<property name="metadata" value="dc.identifier.arxiv" />
<property name="resourceTypeID" value="2" />
<property name="prefix" value="arxiv:"/>
<property name="useEntityType" value="false"/>
<!-- remember to add the prefix to the ignoreprefix list -->
<property name="ignorePrefix">
<list>
Expand All @@ -48,20 +49,23 @@
<property name="metadata" value="dc.identifier.isi" />
<property name="resourceTypeID" value="2" />
<property name="prefix" value="isi:"/>
<property name="useEntityType" value="false"/>
</bean>

<bean class="org.dspace.app.deduplication.utils.MD5ValueSignature" name="ScopusSignature">
<property name="signatureType" value="identifier" />
<property name="metadata" value="dc.identifier.scopus" />
<property name="resourceTypeID" value="2" />
<property name="prefix" value="scopus:"/>
<property name="useEntityType" value="false"/>
</bean>

<bean class="org.dspace.app.deduplication.utils.MD5ValueSignature" name="PubmedIDSignature">
<property name="signatureType" value="identifier" />
<property name="metadata" value="dc.identifier.pmid" />
<property name="resourceTypeID" value="2" />
<property name="prefix" value="pmid:"/>
<property name="useEntityType" value="false"/>
<!-- remember to add the prefix to the ignoreprefix list -->
<property name="ignorePrefix">
<list>
Expand All @@ -78,6 +82,7 @@
<property name="metadata" value="dc.identifier.doi" />
<property name="resourceTypeID" value="2" />
<property name="prefix" value="doi:"/>
<property name="useEntityType" value="false"/>
<!-- remember to add the prefix to the ignoreprefix list -->
<property name="ignorePrefix">
<list>
Expand Down

0 comments on commit 72052ef

Please sign in to comment.