<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.xsd">

	<bean id="dublinCoreOAISubprocessor"
	  	class="org.dataone.cn.indexer.parser.ScienceMetadataDocumentSubprocessor">
	  	<property name="xmlNamespaceConfig" ref="xmlNamespaceConfig" />
		<property name="matchDocuments">
			<list>
				<value>http://www.openarchives.org/OAI/2.0/oai_dc/</value>
			</list>
		</property>
	  	<property name="fieldList">
		   	<list>
		    	<ref bean="dc.description" />
		    	<ref bean="dc.publisher" />
		    	<ref bean="dc.date" />
		    	<ref bean="dc.contributor" />
		    	<ref bean="dc.author" />
		    	<ref bean="dc.authorSurName" />
		    	<ref bean="dc.authorSurNameSort" />
		    	<ref bean="dc.contactOrganization" />
		    	<ref bean="dc.investigator" />
		    	<ref bean="dc.origin" />
		    	<ref bean="dc.title" />
		    	<ref bean="dc.keywords" />
		    	<ref bean="dc:relation" />
		    	<ref bean="dc.fullText" />
		   	</list>
	  	</property>
	</bean>
	
	<!--  Put the value of the relation element into serviceEndpoint  -->
	<bean id="dc:relation" class="org.dataone.cn.indexer.parser.SolrField">
	    <constructor-arg name="name" value="serviceEndpoint" />
        <constructor-arg name="xpath" value="//*[local-name() = 'relation']/text()" />
        <property name="multivalue" value="true" />
    </bean>
    
    <bean id="dc.description" class="org.dataone.cn.indexer.parser.SolrField">
        <constructor-arg name="name" value="abstract" />
        <constructor-arg name="xpath" value="//*[local-name() = 'description'][1]/text()" />
    </bean>
    
    <bean id="dc.publisher" class="org.dataone.cn.indexer.parser.SolrField">
        <constructor-arg name="name" value="originator" />
        <constructor-arg name="xpath" value="//*[local-name() = 'publisher']/text()" />
        <property name="multivalue" value="true" />
        <property name="dedupe" value="true" />
    </bean>
    
    <bean id="dc.date" class="org.dataone.cn.indexer.parser.SolrField">
        <constructor-arg name="name" value="pubDate" />
        <constructor-arg name="xpath" value="//*[local-name() = 'date'][1]/text()" />
        <property name="converter" ref="dateConverter" />
    </bean>
    
    <bean id="dc.contributor" class="org.dataone.cn.indexer.parser.SolrField">
        <constructor-arg name="name" value="investigator" />
        <constructor-arg name="xpath" value="//*[local-name() = 'contributor']/text()" />
        <property name="multivalue" value="true" />
        <property name="dedupe" value="true" />
    </bean>
</beans>