All Downloads are FREE. Search and download functionalities are using the official Maven repository.

spring.spring-dspace-addon-import-services.xml Maven / Gradle / Ivy

There is a newer version: 8.0
Show newest version
<?xml version="1.0" encoding="UTF-8"?>
<!--

    The contents of this file are subject to the license and copyright
    detailed in the LICENSE and NOTICE files at the root of the source
    tree and available online at

    http://www.dspace.org/license/

-->
<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xmlns:context="http://www.springframework.org/schema/context"
       xsi:schemaLocation="http://www.springframework.org/schema/beans
           http://www.springframework.org/schema/beans/spring-beans.xsd
           http://www.springframework.org/schema/context
           http://www.springframework.org/schema/context/spring-context.xsd"
       default-autowire-candidates="*Service,*DAO,javax.sql.DataSource">

    <context:annotation-config/> <!-- allows us to use spring annotations in beans -->

    <bean id="org.dspace.importer.external.service.ImportService"
        class="org.dspace.importer.external.service.ImportService"
        lazy-init="false" autowire="byType" destroy-method="destroy">
        <property name="importSources">
            <list>
                <ref bean="pubmedImportService" />
                <ref bean="bibtexImportService" />
                <ref bean="risImportService" />
                <ref bean="csvImportService" />
                <ref bean="tsvImportService" />
                <ref bean="endnoteImportService" />
            </list>
         </property>
    </bean>

    <bean id="ArXivImportService"
          class="org.dspace.importer.external.arxiv.service.ArXivImportMetadataSourceServiceImpl" scope="singleton">
        <property name="metadataFieldMapping" ref="ArXivMetadataFieldMapping"/>
        <property name="baseAddress" value="http://export.arxiv.org/api/query"/>
    </bean>
    <bean id="ArXivMetadataFieldMapping"
          class="org.dspace.importer.external.arxiv.metadatamapping.ArXivFieldMapping">
    </bean>


    <bean id="pubmedImportService"
          class="org.dspace.importer.external.pubmed.service.PubmedImportMetadataSourceServiceImpl">
        <property name="metadataFieldMapping" ref="pubmedMetadataFieldMapping"/>
        <property name="baseAddress" value="https://eutils.ncbi.nlm.nih.gov/entrez/eutils/"/>
        <property name="generateQueryForItem" ref="pubmedService"></property>
        <property name="supportedExtensions">
            <list>
                 <value>xml</value>
            </list>
        </property>
    </bean>


    <bean id="pubmedMetadataFieldMapping"
          class="org.dspace.importer.external.pubmed.metadatamapping.PubmedFieldMapping">
    </bean>

    <bean id="risImportService"
          class="org.dspace.importer.external.ris.service.RisImportMetadataSourceServiceImpl">
          <property name="supportedExtensions">
               <list>
                     <value>ris</value>
               </list>
          </property>
    </bean>

    <bean id="bibtexImportService"
          class="org.dspace.importer.external.bibtex.service.BibtexImportMetadataSourceServiceImpl">
          <property name="supportedExtensions">
               <list>
                     <value>bib</value>
                     <value>bibtex</value>
               </list>
          </property>
    </bean>

    <bean id="csvImportService"
          class="org.dspace.importer.external.csv.service.CharacterSeparatedImportMetadataSourceServiceImpl">
          <property name="metadataFieldMap" ref="csvMetadataFieldMap"></property>
          <property name="skipLines" value="1" />
          <property name="supportedExtensions">
               <list>
                     <value>csv</value>
               </list>
          </property>
    </bean>

    <bean id="tsvImportService"
          class="org.dspace.importer.external.csv.service.CharacterSeparatedImportMetadataSourceServiceImpl">
          <property name="importSource" value="TsvMetadataSource" />
          <property name="separator" value="\u0009" />
          <property name="skipLines" value="1" />
          <property name="metadataFieldMap" ref="tsvMetadataFieldMap" />
          <property name="supportedExtensions">
               <list>
                     <value>tsv</value>
               </list>
          </property>
    </bean>

    <bean id="endnoteImportService"
          class="org.dspace.importer.external.endnote.service.EndnoteImportMetadataSourceServiceImpl">
          <property name="metadataFieldMap" ref="endnoteMetadataFieldMap"></property>
          <property name="supportedExtensions">
               <list>
                     <value>enl</value>
                     <value>enw</value>
               </list>
          </property>
    </bean>


    <!-- Metadatafield used to check against if it's already imported or not during the JSONLookupSearcher-->
    <bean id="lookupID" class="org.dspace.importer.external.metadatamapping.MetadataFieldConfig">
        <constructor-arg value="dc.identifier.other"/>
    </bean>

</beans>




© 2015 - 2024 Weber Informatics LLC | Privacy Policy