DS-3850 Create new submissions from files or identifiers

This commit is contained in:
Luigi Andrea Pascarelli
2018-08-24 20:22:12 +02:00
committed by Andrea Bollini
parent 66b89a786d
commit c0066d2a2f
32 changed files with 973 additions and 131 deletions

View File

@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="bibtex" class="org.dspace.submit.extraction.MetadataExtractor">
<property name="dataLoader" ref="bibTeXDataLoader"/>
<property name="configurationService" ref="org.dspace.services.ConfigurationService"/>
<property name="extensions">
<list>
<value>bibtex</value>
<value>bib</value>
</list>
</property>
</bean>
<!-- <bean id="grobid" class="org.dspace.submit.extraction.MetadataExtractor">
<property name="dataLoader" ref="grobidDataLoader"/>
<property name="configurationService" ref="org.dspace.services.ConfigurationService"/>
<property name="extensions">
<list>
<value>pdf</value>
</list>
</property>
</bean>
-->
</beans>

View File

@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd">
<bean id="lookupListener" class="org.dspace.submit.listener.MetadataListener">
<property name="configurationService" ref="org.dspace.services.ConfigurationService"/>
<property name="metadata">
<map>
<entry key="dc.identifier.doi" value="doi"/>
</map>
</property>
<property name="dataloadersMap">
<map>
<entry key="pubmed" value-ref="pubmedOnlineDataLoader"/>
<entry key="crossref" value-ref="crossRefOnlineDataLoader"/>
<entry key="arxiv" value-ref="arXivOnlineDataLoader"/>
<entry key="cinii" value-ref="ciniiOnlineDataLoader"/>
</map>
</property>
</bean>
</beans>