Skip to content

Commit

Permalink
Merge pull request DSpace#9687 from saschaszott/patch-40
Browse files Browse the repository at this point in the history
Scopus metadata import: put DOIs in dc.relation.hasversion
  • Loading branch information
tdonohue authored Jan 10, 2025
2 parents 74c66bb + d61dc8d commit 8e8979c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private ArrayList<ImportRecord> getRecords() {
ArrayList<ImportRecord> records = new ArrayList<>();
//define first record
List<MetadatumDTO> metadatums = new ArrayList<MetadatumDTO>();
MetadatumDTO doi = createMetadatumDTO("dc", "identifier", null, "10.3934/mine.2023004");
MetadatumDTO doi = createMetadatumDTO("dc", "relation", "hasversion", "10.3934/mine.2023004");
MetadatumDTO title = createMetadatumDTO("dc","title", null,
"Hardy potential versus lower order terms in Dirichlet problems: regularizing effects<sup>†</sup>");
MetadatumDTO type = createMetadatumDTO("dc", "type", null, "Journal");
Expand Down Expand Up @@ -171,7 +171,7 @@ private ArrayList<ImportRecord> getRecords() {

//define second record
List<MetadatumDTO> metadatums2 = new ArrayList<MetadatumDTO>();
MetadatumDTO doi2 = createMetadatumDTO("dc", "identifier", null, "10.3934/mine.2023001");
MetadatumDTO doi2 = createMetadatumDTO("dc", "relation", "hasversion", "10.3934/mine.2023001");
MetadatumDTO title2 = createMetadatumDTO("dc","title", null,
"Large deviations for a binary collision model: energy evaporation<sup>†</sup>");
MetadatumDTO date2 = createMetadatumDTO("dc", "date", "issued", "2023-01-01");
Expand Down
4 changes: 2 additions & 2 deletions dspace/config/spring/api/scopus-integration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
<property name="prefixToNamespaceMapping" ref="scopusPrism"/>
</bean>
<bean id="scopus.doi" class="org.dspace.importer.external.metadatamapping.MetadataFieldConfig">
<constructor-arg value="dc.identifier"/>
<constructor-arg value="dc.relation.hasversion"/>
</bean>

<bean id="scopusVolumeContrib" class="org.dspace.importer.external.metadatamapping.contributor.SimpleXpathMetadatumContributor">
Expand Down Expand Up @@ -264,4 +264,4 @@
<constructor-arg value="3"/>
</bean>

</beans>
</beans>

0 comments on commit 8e8979c

Please sign in to comment.