Project

General

Profile

1
<beans xmlns="http://www.springframework.org/schema/beans"
2
	xmlns:p="http://www.springframework.org/schema/p"
3
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4
	xsi:schemaLocation="http://www.springframework.org/schema/beans 
5
						http://www.springframework.org/schema/beans/spring-beans.xsd
6
						http://www.springframework.org/schema/context  
7
    					http://www.springframework.org/schema/context/spring-context-3.0.xsd">
8

    
9
	<bean id="fgdc.abstract" class="org.dataone.cn.indexer.parser.MergeSolrField">
10
	  <constructor-arg name="name" value="abstract" />
11
	  <constructor-arg name="xpath"
12
	    value="//metadata/idinfo/descript/abstract/descendant::text()" />
13
	  <constructor-arg name="delimiter" value=" " />
14
	  <property name="multivalue" value="false" />
15
	  <property name="dedupe" value="false" />
16
	</bean>
17
	
18
	<bean id="fgdc.beginDate" class="org.dataone.cn.indexer.parser.SolrField">
19
		<constructor-arg name="name" value="beginDate" />
20
		<constructor-arg name="xpath"
21
			value="//metadata/idinfo/timeperd/timeinfo/rngdates/begdate/text()" />
22
		<property name="multivalue" value="false" />
23
		<property name="converter" ref="fgdcDateConverter" />
24
	</bean>
25
	
26
	<bean id="fgdc.class" class="org.dataone.cn.indexer.parser.SolrField">
27
		<constructor-arg name="name" value="class" />
28
		<constructor-arg name="xpath" value='//taxoncl/taxonrv[../taxonrn="Class"]/text()' />
29
		<property name="multivalue" value="true" />
30
	</bean>	
31

    
32
	<bean id="fgdc.contactOrganization" class="org.dataone.cn.indexer.parser.SolrField">
33
		<constructor-arg name="name" value="contactOrganization" />
34
		<constructor-arg name="xpath"
35
		  value="//metadata/distinfo/distrib/cntinfo/cntperp/cntorg/text() | //metadata/distinfo/distrib/cntinfo/cntorgp/cntorg/text()" />
36
		<property name="multivalue" value="true" />
37
		<property name="dedupe" value="true"/>
38
	</bean>	
39

    
40
	<bean id="fgdc.eastBoundCoord" class="org.dataone.cn.indexer.parser.SolrField">
41
		<constructor-arg name="name" value="eastBoundCoord" />
42
		<constructor-arg name="xpath"
43
			value="//metadata/idinfo/spdom/bounding/eastbc/text()" />
44
		<property name="multivalue" value="false" />
45
		<property name="converter" ref="solrLongitudeConverter" />
46
	</bean>
47
	
48
	<bean id="fgdc.northBoundCoord" class="org.dataone.cn.indexer.parser.SolrField">
49
		<constructor-arg name="name" value="northBoundCoord" />
50
		<constructor-arg name="xpath"
51
			value="//metadata/idinfo/spdom/bounding/northbc/text()" />
52
		<property name="multivalue" value="false" />
53
		<property name="converter" ref="solrLongitudeConverter" />
54
	</bean>	
55
	
56
	<bean id="fgdc.southBoundCoord" class="org.dataone.cn.indexer.parser.SolrField">
57
		<constructor-arg name="name" value="southBoundCoord" />
58
		<constructor-arg name="xpath"
59
			value="//metadata/idinfo/spdom/bounding/southbc/text()" />
60
		<property name="multivalue" value="false" />
61
		<property name="converter" ref="solrLongitudeConverter" />
62
	</bean>	
63
	
64
	<bean id="fgdc.westBoundCoord" class="org.dataone.cn.indexer.parser.SolrField">
65
		<constructor-arg name="name" value="westBoundCoord" />
66
		<constructor-arg name="xpath"
67
			value="//metadata/idinfo/spdom/bounding/westbc/text()" />
68
		<property name="multivalue" value="false" />
69
		<property name="converter" ref="solrLongitudeConverter" />
70
	</bean>		
71
	
72
	<bean id="fgdc.edition" class="org.dataone.cn.indexer.parser.SolrField">
73
		<constructor-arg name="name" value="edition" />
74
		<constructor-arg name="xpath" value='//metadata/idinfo/citeinfo/edition/text()' />
75
		<property name="multivalue" value="false" />
76
	</bean>	
77

    
78
	<bean id="fgdc.endDate" class="org.dataone.cn.indexer.parser.SolrField">
79
		<constructor-arg name="name" value="endDate" />
80
		<constructor-arg name="xpath"
81
			value="//metadata/idinfo/timeperd/timeinfo/rngdates/enddate/text()" />
82
		<property name="multivalue" value="false" />
83
		<property name="converter" ref="fgdcDateConverter" />
84
	</bean>
85

    
86
	<bean id="fgdc.gcmdKeyword" class="org.dataone.cn.indexer.parser.SolrField">
87
		<constructor-arg name="name" value="gcmdKeyword" />
88
		<constructor-arg name="xpath"
89
			value="//metadata/idinfo/keywords/theme[themekt='GCMD Science Keywords']/themekey/text()" />
90
		<property name="multivalue" value="true" />
91
	</bean>
92
 	
93
	<bean id="fgdc.keywords" class="org.dataone.cn.indexer.parser.SolrField">
94
		<constructor-arg name="name" value="keywords" />
95
		<constructor-arg name="xpath"
96
			value="//metadata/idinfo/keywords/theme/themekey/text() | //metadata/idinfo/keywords/place/placekey/text()" />
97
		<property name="multivalue" value="true" />
98
		<property name="dedupe" value="true" />
99
		<property name="disallowedValues">
100
			<list>
101
				<value>none</value>
102
			</list>
103
		</property>
104
	</bean>
105

    
106
	<bean id="fgdc.genus" class="org.dataone.cn.indexer.parser.SolrField">
107
		<constructor-arg name="name" value="genus" />
108
		<constructor-arg name="xpath" value='//taxoncl/taxonrv[../taxonrn="Genus"]/text()' />
109
		<property name="multivalue" value="true" />
110
	</bean>		
111
	
112
	<bean id="fgdc.geoform" class="org.dataone.cn.indexer.parser.SolrField">
113
		<constructor-arg name="name" value="geoform" />
114
		<constructor-arg name="xpath" value='//metadata/idinfo/citation/citeinfo/geoform/text()' />
115
		<property name="multivalue" value="false" />
116
	</bean>	
117
	
118
	<bean id="fgdc.kingdom" class="org.dataone.cn.indexer.parser.SolrField">
119
		<constructor-arg name="name" value="kingdom" />
120
		<constructor-arg name="xpath" value='//taxoncl/taxonrv[../taxonrn="Kingdom"]/text()' />
121
		<property name="multivalue" value="true" />
122
	</bean>	
123
	
124
	<bean id="fgdc.order" class="org.dataone.cn.indexer.parser.SolrField">
125
		<constructor-arg name="name" value="order" />
126
		<constructor-arg name="xpath" value='//taxoncl/taxonrv[../taxonrn="Order"]/text()' />
127
		<property name="multivalue" value="true" />
128
	</bean>
129
	
130
	<bean id="fgdc.phylum" class="org.dataone.cn.indexer.parser.MergeSolrField">
131
		<constructor-arg name="name" value="phylum" />
132
		<constructor-arg name="delimiter" value=" " />
133
		<constructor-arg name="xpath" value='//taxoncl/taxonrv[../taxonrn="Phylum"]/text() | //taxoncl/taxonrv[../taxonrn="Division"]/text()' />
134
		<property name="multivalue" value="true" />
135
	</bean>
136
	
137
	<bean id="fgdc.species" class="org.dataone.cn.indexer.parser.SolrField">
138
		<constructor-arg name="name" value="species" />
139
		<constructor-arg name="xpath" value='//taxoncl/taxonrv[../taxonrn="Species"]/text()' />
140
		<property name="multivalue" value="true" />
141
	</bean>
142
	
143
	<bean id="fgdc.origin" class="org.dataone.cn.indexer.parser.SolrField">
144
		<constructor-arg name="name" value="origin" />
145
		<constructor-arg name="xpath" value='//metadata/idinfo/citation/citeinfo/origin/text()' />
146
		<property name="multivalue" value="true" />
147
	</bean>
148
		
149
	<bean id="fgdc.placeKey" class="org.dataone.cn.indexer.parser.SolrField">
150
		<constructor-arg name="name" value="placeKey" />
151
		<constructor-arg name="xpath" value='//metadata/idinfo/keywords/place/placekey/text()' />
152
		<property name="multivalue" value="true" />
153
	</bean>
154
	
155
	<bean id="fgdc.pubDate" class="org.dataone.cn.indexer.parser.SolrField">
156
		<constructor-arg name="name" value="pubDate" />
157
		<constructor-arg name="xpath"
158
			value="//metadata/idinfo/citation/citeinfo/pubdate/text()" />
159
		<property name="multivalue" value="false" />
160
		<property name="converter" ref="fgdcDateConverter" />
161
	</bean>
162
	
163
	<bean id="fgdc.purpose" class="org.dataone.cn.indexer.parser.MergeSolrField">
164
	  <constructor-arg name="name" value="purpose" />
165
	  <constructor-arg name="xpath"
166
	    value="//metadata/idinfo/descript/purpose/descendant::text()" />
167
	  <constructor-arg name="delimiter" value=" " />
168
	  <property name="multivalue" value="false" />
169
	  <property name="dedupe" value="false" />
170
	</bean>
171

    
172
	<bean id="fgdc.title" class="org.dataone.cn.indexer.parser.SolrField">
173
		<constructor-arg name="name" value="title" />
174
		<constructor-arg name="xpath" value='//metadata/idinfo/citation/citeinfo/title/text()' />
175
		<property name="multivalue" value="false" />
176
	</bean>
177

    
178
	<bean id="fgdc.web_url" class="org.dataone.cn.indexer.parser.SolrField">
179
		<constructor-arg name="name" value="webUrl" />
180
		<constructor-arg name="xpath" value='//metadata/idinfo/citation/citeinfo/onlink/text()' />
181
		<property name="multivalue" value="true" />
182
	</bean>
183
	
184
	<bean id="fgdc.fileID" class="org.dataone.cn.indexer.parser.ResolveSolrField">
185
		<constructor-arg name="name" value="fileID" />
186
	</bean>
187
	
188
	<bean id="fgdc.fullText" class="org.dataone.cn.indexer.parser.FullTextSolrField">
189
		<constructor-arg name="name" value="text" />
190
		<constructor-arg name="xpath"
191
			value="//metadata//text()" />
192
		<property name="multivalue" value="false" />
193
		<property name="combineNodes" value="true"/>
194
	</bean>
195
	
196
	<bean id="fgdc.project" class="org.dataone.cn.indexer.parser.MergeSolrField">
197
	  <constructor-arg name="name" value="project" />
198
	  <constructor-arg name="xpath"
199
	    value="//metadata/idinfo/descript/purpose/descendant::text()" />
200
	  <constructor-arg name="delimiter" value=" " />
201
	  <property name="multivalue" value="false" />
202
	  <property name="dedupe" value="false" />
203
	</bean>
204
	
205
	
206
	<bean id="fgdc.presentationCat" class="org.dataone.cn.indexer.parser.SolrField">
207
		<constructor-arg name="name" value="presentationCat" />
208
		<constructor-arg name="xpath" value='//metadata/idinfo/citation/citeinfo/geoform/text()' />
209
		<property name="multivalue" value="false" />
210
	</bean>
211
	
212
	<bean id="fgdc.author" class="org.dataone.cn.indexer.parser.SolrField">
213
		<constructor-arg name="name" value="author" />
214
		<constructor-arg name="xpath" value='//metadata/idinfo/citation/citeinfo/origin/text()' />
215
		<property name="multivalue" value="false" />
216
	</bean>
217

    
218
	<bean id="fgdc.investigator" class="org.dataone.cn.indexer.parser.SolrField">
219
		<constructor-arg name="name" value="investigator" />
220
		<constructor-arg name="xpath" value='//metadata/idinfo/citation/citeinfo/origin/text()' />
221
		<property name="multivalue" value="true" />
222
	</bean>
223
	
224
	<bean id="fgdc.site" class="org.dataone.cn.indexer.parser.SolrField">
225
		<constructor-arg name="name" value="site" />
226
		<constructor-arg name="xpath" value='//metadata/idinfo/spdom/descgeog/text()' />
227
		<property name="multivalue" value="true" />
228
	</bean>
229
</beans>
(9-9/18)