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
|
|
10
|
<bean id="eml.abstract" class="org.dataone.cn.indexer.parser.MergeSolrField">
|
11
|
<constructor-arg name="name" value="abstract" />
|
12
|
<constructor-arg name="xpath"
|
13
|
value="//dataset/abstract/descendant::text()" />
|
14
|
<constructor-arg name="delimiter" value=" " />
|
15
|
<property name="multivalue" value="false" />
|
16
|
<property name="dedupe" value="false" />
|
17
|
</bean>
|
18
|
|
19
|
<bean id="eml.keywords" class="org.dataone.cn.indexer.parser.SolrField">
|
20
|
<constructor-arg name="name" value="keywords" />
|
21
|
<constructor-arg name="xpath"
|
22
|
value="//dataset/keywordSet/keyword/text()" />
|
23
|
<property name="multivalue" value="true" />
|
24
|
<property name="dedupe" value="true" />
|
25
|
</bean>
|
26
|
|
27
|
<bean id="eml.southBoundCoord" class="org.dataone.cn.indexer.parser.SolrField">
|
28
|
<constructor-arg name="name" value="southBoundCoord" />
|
29
|
<constructor-arg name="xpath"
|
30
|
value="//dataset/coverage/geographicCoverage/boundingCoordinates/southBoundingCoordinate/text()" />
|
31
|
<property name="multivalue" value="false" />
|
32
|
<property name="converter" ref="solrLatitudeConverter" />
|
33
|
</bean>
|
34
|
|
35
|
<bean id="eml.northBoundCoord" class="org.dataone.cn.indexer.parser.SolrField">
|
36
|
<constructor-arg name="name" value="northBoundCoord" />
|
37
|
<constructor-arg name="xpath"
|
38
|
value="//dataset/coverage/geographicCoverage/boundingCoordinates/northBoundingCoordinate/text()" />
|
39
|
<property name="multivalue" value="false" />
|
40
|
<property name="converter" ref="solrLatitudeConverter" />
|
41
|
</bean>
|
42
|
|
43
|
<bean id="eml.westBoundCoord" class="org.dataone.cn.indexer.parser.SolrField">
|
44
|
<constructor-arg name="name" value="westBoundCoord" />
|
45
|
<constructor-arg name="xpath"
|
46
|
value="//dataset/coverage/geographicCoverage/boundingCoordinates/westBoundingCoordinate/text()" />
|
47
|
<property name="multivalue" value="false" />
|
48
|
<property name="converter" ref="solrLongitudeConverter" />
|
49
|
</bean>
|
50
|
|
51
|
<bean id="eml.eastBoundCoord" class="org.dataone.cn.indexer.parser.SolrField">
|
52
|
<constructor-arg name="name" value="eastBoundCoord" />
|
53
|
<constructor-arg name="xpath"
|
54
|
value="//dataset/coverage/geographicCoverage/boundingCoordinates/eastBoundingCoordinate/text()" />
|
55
|
<property name="multivalue" value="false" />
|
56
|
<property name="converter" ref="solrLongitudeConverter" />
|
57
|
</bean>
|
58
|
|
59
|
<!-- define the root and leafs for accessing multiple bounding coordinates for geohash -->
|
60
|
<bean id="eml.geohashRoot" class="org.dataone.cn.indexer.parser.utility.RootElement"
|
61
|
p:name="geohashRoot"
|
62
|
p:xPath="//dataset/coverage/geographicCoverage/boundingCoordinates"
|
63
|
p:template="[northBoundingCoordinate] [southBoundingCoordinate] [eastBoundingCoordinate] [westBoundingCoordinate]">
|
64
|
<property name="leafs">
|
65
|
<list>
|
66
|
<ref bean="eml.northBoundingCoordinateLeaf"/>
|
67
|
<ref bean="eml.southBoundingCoordinateLeaf"/>
|
68
|
<ref bean="eml.eastBoundingCoordinateLeaf"/>
|
69
|
<ref bean="eml.westBoundingCoordinateLeaf"/>
|
70
|
</list>
|
71
|
</property>
|
72
|
</bean>
|
73
|
|
74
|
<bean id="eml.northBoundingCoordinateLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
|
75
|
p:name="northBoundingCoordinate"
|
76
|
p:xPath="northBoundingCoordinate/text()" />
|
77
|
|
78
|
<bean id="eml.westBoundingCoordinateLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
|
79
|
p:name="westBoundingCoordinate"
|
80
|
p:xPath="westBoundingCoordinate/text()" />
|
81
|
|
82
|
<bean id="eml.southBoundingCoordinateLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
|
83
|
p:name="southBoundingCoordinate"
|
84
|
p:xPath="southBoundingCoordinate/text()" />
|
85
|
|
86
|
<bean id="eml.eastBoundingCoordinateLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
|
87
|
p:name="eastBoundingCoordinate"
|
88
|
p:xPath="eastBoundingCoordinate/text()" />
|
89
|
|
90
|
|
91
|
<!-- use the root to calculate different geohash lengths -->
|
92
|
<bean id="eml.geohash1" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
|
93
|
p:multivalue="true"
|
94
|
p:root-ref="eml.geohashRoot">
|
95
|
<constructor-arg name="name" value="geohash_1" />
|
96
|
<property name="converter" ref="geohashConverter_1"/>
|
97
|
</bean>
|
98
|
|
99
|
<bean id="eml.geohash2" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
|
100
|
p:multivalue="true"
|
101
|
p:root-ref="eml.geohashRoot">
|
102
|
<constructor-arg name="name" value="geohash_2" />
|
103
|
<property name="converter" ref="geohashConverter_2"/>
|
104
|
</bean>
|
105
|
|
106
|
<bean id="eml.geohash3" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
|
107
|
p:multivalue="true"
|
108
|
p:root-ref="eml.geohashRoot">
|
109
|
<constructor-arg name="name" value="geohash_3" />
|
110
|
<property name="converter" ref="geohashConverter_3"/>
|
111
|
</bean>
|
112
|
|
113
|
<bean id="eml.geohash4" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
|
114
|
p:multivalue="true"
|
115
|
p:root-ref="eml.geohashRoot">
|
116
|
<constructor-arg name="name" value="geohash_4" />
|
117
|
<property name="converter" ref="geohashConverter_4"/>
|
118
|
</bean>
|
119
|
|
120
|
<bean id="eml.geohash5" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
|
121
|
p:multivalue="true"
|
122
|
p:root-ref="eml.geohashRoot">
|
123
|
<constructor-arg name="name" value="geohash_5" />
|
124
|
<property name="converter" ref="geohashConverter_5"/>
|
125
|
</bean>
|
126
|
|
127
|
<bean id="eml.geohash6" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
|
128
|
p:multivalue="true"
|
129
|
p:root-ref="eml.geohashRoot">
|
130
|
<constructor-arg name="name" value="geohash_6" />
|
131
|
<property name="converter" ref="geohashConverter_6"/>
|
132
|
</bean>
|
133
|
|
134
|
<bean id="eml.geohash7" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
|
135
|
p:multivalue="true"
|
136
|
p:root-ref="eml.geohashRoot">
|
137
|
<constructor-arg name="name" value="geohash_7" />
|
138
|
<property name="converter" ref="geohashConverter_7"/>
|
139
|
</bean>
|
140
|
|
141
|
<bean id="eml.geohash8" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
|
142
|
p:multivalue="true"
|
143
|
p:root-ref="eml.geohashRoot">
|
144
|
<constructor-arg name="name" value="geohash_8" />
|
145
|
<property name="converter" ref="geohashConverter_8"/>
|
146
|
</bean>
|
147
|
|
148
|
<bean id="eml.geohash9" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
|
149
|
p:multivalue="true"
|
150
|
p:root-ref="eml.geohashRoot">
|
151
|
<constructor-arg name="name" value="geohash_9" />
|
152
|
<property name="converter" ref="geohashConverter_9"/>
|
153
|
</bean>
|
154
|
|
155
|
<bean id="eml.site" class="org.dataone.cn.indexer.parser.SolrField">
|
156
|
<constructor-arg name="name" value="site" />
|
157
|
<constructor-arg name="xpath" value='//dataset/coverage/geographicCoverage/geographicDescription/text()' />
|
158
|
<property name="multivalue" value="true" />
|
159
|
</bean>
|
160
|
|
161
|
<bean id="eml.beginDate" class="org.dataone.cn.indexer.parser.SolrField">
|
162
|
<constructor-arg name="name" value="beginDate" />
|
163
|
<constructor-arg name="xpath"
|
164
|
value="//dataset/coverage/temporalCoverage/rangeOfDates/beginDate/calendarDate/text() | //dataset/coverage/temporalCoverage/singleDateTime/calendarDate/text()" />
|
165
|
<property name="multivalue" value="false" />
|
166
|
<property name="converter" ref="dateConverter" />
|
167
|
</bean>
|
168
|
|
169
|
<bean id="eml.endDate" class="org.dataone.cn.indexer.parser.SolrField">
|
170
|
<constructor-arg name="name" value="endDate" />
|
171
|
<constructor-arg name="xpath"
|
172
|
value="//dataset/coverage/temporalCoverage/rangeOfDates/endDate/calendarDate/text() | //dataset/coverage/temporalCoverage/singleDateTime/calendarDate/text()" />
|
173
|
<property name="multivalue" value="false" />
|
174
|
<property name="converter" ref="dateConverter" />
|
175
|
</bean>
|
176
|
|
177
|
<bean id="eml.pubDate" class="org.dataone.cn.indexer.parser.SolrField">
|
178
|
<constructor-arg name="name" value="pubDate" />
|
179
|
<constructor-arg name="xpath" value="//dataset/pubDate/text()" />
|
180
|
<property name="multivalue" value="false" />
|
181
|
<property name="converter" ref="dateConverter" />
|
182
|
</bean>
|
183
|
|
184
|
<bean id="eml.title" class="org.dataone.cn.indexer.parser.SolrField">
|
185
|
<constructor-arg name="name" value="title" />
|
186
|
<constructor-arg name="xpath" value="//dataset/title/text()" />
|
187
|
<property name="multivalue" value="false" />
|
188
|
</bean>
|
189
|
|
190
|
<bean id="eml.project" class="org.dataone.cn.indexer.parser.SolrField">
|
191
|
<constructor-arg name="name" value="project" />
|
192
|
<constructor-arg name="xpath" value="//dataset/project/title/text()" />
|
193
|
<property name="multivalue" value="false" />
|
194
|
</bean>
|
195
|
|
196
|
<bean id="eml.authorSurName" class="org.dataone.cn.indexer.parser.SolrField">
|
197
|
<constructor-arg name="name" value="authorSurName" />
|
198
|
<constructor-arg name="xpath"
|
199
|
value="//dataset/creator[1]/individualName[1]/surName/text()" />
|
200
|
</bean>
|
201
|
|
202
|
<bean id="eml.authorGivenName" class="org.dataone.cn.indexer.parser.SolrField">
|
203
|
<constructor-arg name="name" value="authorGivenName" />
|
204
|
<constructor-arg name="xpath"
|
205
|
value="//dataset/creator[1]/individualName[1]/givenName/text()" />
|
206
|
</bean>
|
207
|
|
208
|
<bean id="eml.authorSurNameSort" class="org.dataone.cn.indexer.parser.SolrField">
|
209
|
<constructor-arg name="name" value="authorSurNameSort" />
|
210
|
<constructor-arg name="xpath"
|
211
|
value="//dataset/creator[1]/individualName[1]/surName/text()" />
|
212
|
</bean>
|
213
|
|
214
|
<bean id="eml.authorGivenNameSort" class="org.dataone.cn.indexer.parser.SolrField">
|
215
|
<constructor-arg name="name" value="authorGivenNameSort" />
|
216
|
<constructor-arg name="xpath"
|
217
|
value="//dataset/creator[1]/individualName[1]/givenName/text()" />
|
218
|
</bean>
|
219
|
|
220
|
<bean id="eml.author" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
|
221
|
p:multivalue="false"
|
222
|
p:root-ref="eml.authorNameRoot">
|
223
|
<constructor-arg name="name" value="author" />
|
224
|
</bean>
|
225
|
|
226
|
<bean id="eml.authorNameRoot" class="org.dataone.cn.indexer.parser.utility.RootElement"
|
227
|
p:name="author"
|
228
|
p:xPath="//dataset/creator/individualName"
|
229
|
p:template="[givenName] [surName]">
|
230
|
<property name="leafs">
|
231
|
<list>
|
232
|
<ref bean="eml.givenNameLeaf"/>
|
233
|
<ref bean="eml.surNameLeaf"/>
|
234
|
</list>
|
235
|
</property>
|
236
|
</bean>
|
237
|
|
238
|
<bean id="eml.givenNameLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
|
239
|
p:name="givenName"
|
240
|
p:xPath="givenName/text()" />
|
241
|
|
242
|
<bean id="eml.surNameLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
|
243
|
p:name="surName"
|
244
|
p:xPath="surName/text()"/>
|
245
|
|
246
|
<bean id="eml.author_lname" class="org.dataone.cn.indexer.parser.SolrField">
|
247
|
<constructor-arg name="name" value="authorLastName" />
|
248
|
<constructor-arg name="xpath"
|
249
|
value="//dataset/creator/individualName/surName/text()" />
|
250
|
<property name="multivalue" value="true" />
|
251
|
</bean>
|
252
|
|
253
|
<bean id="eml.investigator" class="org.dataone.cn.indexer.parser.SolrField">
|
254
|
<constructor-arg name="name" value="investigator" />
|
255
|
<constructor-arg name="xpath"
|
256
|
value="//dataset/creator/individualName/surName/text()" />
|
257
|
<property name="multivalue" value="true" />
|
258
|
</bean>
|
259
|
|
260
|
<bean id="eml.origin" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
|
261
|
p:multivalue="true"
|
262
|
p:root-ref="eml.originRoot">
|
263
|
<constructor-arg name="name" value="origin" />
|
264
|
</bean>
|
265
|
|
266
|
<bean id="eml.originRoot" class="org.dataone.cn.indexer.parser.utility.RootElement"
|
267
|
p:name="origin"
|
268
|
p:xPath="//dataset/creator"
|
269
|
p:template="[individualName]||[organizationName]">
|
270
|
<property name="leafs"><list><ref bean="eml.organizationNameLeaf"/></list></property>
|
271
|
<property name="subRoots"><list><ref bean="eml.individualNameRoot" /></list></property>
|
272
|
</bean>
|
273
|
|
274
|
<bean id="eml.organizationNameLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
|
275
|
p:name="organizationName"
|
276
|
p:xPath="organizationName/text()" />
|
277
|
|
278
|
<bean id="eml.individualNameRoot" class="org.dataone.cn.indexer.parser.utility.RootElement"
|
279
|
p:name="individualName"
|
280
|
p:xPath="individualName"
|
281
|
p:template="[givenName] [surName]">
|
282
|
<property name="leafs">
|
283
|
<list>
|
284
|
<ref bean="eml.givenNameLeaf"/>
|
285
|
<ref bean="eml.surNameLeaf"/>
|
286
|
</list>
|
287
|
</property>
|
288
|
</bean>
|
289
|
|
290
|
<bean id="eml.contactOrganization" class="org.dataone.cn.indexer.parser.SolrField">
|
291
|
<constructor-arg name="name" value="contactOrganization" />
|
292
|
<constructor-arg name="xpath"
|
293
|
value="//dataset/creator/organizationName/text()" />
|
294
|
<property name="multivalue" value="true" />
|
295
|
<property name="dedupe" value="true"/>
|
296
|
</bean>
|
297
|
|
298
|
<!-- <bean id="eml.fileID" class="org.dataone.cn.indexer.parser.ResolveSolrField">
|
299
|
<constructor-arg name="name" value="fileID" />
|
300
|
</bean> -->
|
301
|
|
302
|
<bean id="eml.text" class="org.dataone.cn.indexer.parser.FullTextSolrField">
|
303
|
<constructor-arg name="name" value="text" />
|
304
|
<constructor-arg name="xpath"
|
305
|
value="//dataset/*[not(self::dataTable)]//text()" />
|
306
|
<property name="multivalue" value="false" />
|
307
|
<property name="combineNodes" value="true"/>
|
308
|
</bean>
|
309
|
|
310
|
<bean id="eml.genus" class="org.dataone.cn.indexer.parser.SolrField">
|
311
|
<constructor-arg name="name" value="genus" />
|
312
|
<constructor-arg name="xpath"
|
313
|
value='//taxonomicClassification/taxonRankValue[../taxonRankName="Genus"]/text()' />
|
314
|
<property name="multivalue" value="true" />
|
315
|
<property name="dedupe" value="true" />
|
316
|
</bean>
|
317
|
|
318
|
<bean id="eml.species" class="org.dataone.cn.indexer.parser.SolrField">
|
319
|
<constructor-arg name="name" value="species" />
|
320
|
<constructor-arg name="xpath"
|
321
|
value='//taxonomicClassification/taxonRankValue[../taxonRankName="Species"]/text()' />
|
322
|
<property name="multivalue" value="true" />
|
323
|
<property name="dedupe" value="true" />
|
324
|
</bean>
|
325
|
|
326
|
<bean id="eml.kingdom" class="org.dataone.cn.indexer.parser.SolrField">
|
327
|
<constructor-arg name="name" value="kingdom" />
|
328
|
<constructor-arg name="xpath"
|
329
|
value='//taxonomicClassification/taxonRankValue[../taxonRankName="Kingdom"]/text()' />
|
330
|
<property name="multivalue" value="true" />
|
331
|
<property name="dedupe" value="true" />
|
332
|
</bean>
|
333
|
|
334
|
<bean id="eml.order" class="org.dataone.cn.indexer.parser.SolrField">
|
335
|
<constructor-arg name="name" value="order" />
|
336
|
<constructor-arg name="xpath"
|
337
|
value='//taxonomicClassification/taxonRankValue[../taxonRankName="Order"]/text()' />
|
338
|
<property name="multivalue" value="true" />
|
339
|
<property name="dedupe" value="true" />
|
340
|
</bean>
|
341
|
|
342
|
<bean id="eml.phylum" class="org.dataone.cn.indexer.parser.SolrField">
|
343
|
<constructor-arg name="name" value="phylum" />
|
344
|
<constructor-arg name="xpath"
|
345
|
value='//taxonomicClassification/taxonRankValue[../taxonRankName="Phylum"]/text() | //taxonomicClassification/taxonRankValue[../taxonRankName="Division"]/text()' />
|
346
|
<property name="multivalue" value="true" />
|
347
|
<property name="dedupe" value="true" />
|
348
|
</bean>
|
349
|
|
350
|
<bean id="eml.family" class="org.dataone.cn.indexer.parser.SolrField">
|
351
|
<constructor-arg name="name" value="family" />
|
352
|
<constructor-arg name="xpath"
|
353
|
value='//taxonomicClassification/taxonRankValue[../taxonRankName="Family"]/text()' />
|
354
|
<property name="multivalue" value="true" />
|
355
|
<property name="dedupe" value="true" />
|
356
|
</bean>
|
357
|
|
358
|
<bean id="eml.class" class="org.dataone.cn.indexer.parser.SolrField">
|
359
|
<constructor-arg name="name" value="class" />
|
360
|
<constructor-arg name="xpath"
|
361
|
value='//taxonomicClassification/taxonRankValue[../taxonRankName="Class"]/text()' />
|
362
|
<property name="multivalue" value="true" />
|
363
|
<property name="dedupe" value="true" />
|
364
|
</bean>
|
365
|
|
366
|
|
367
|
<bean id="eml.scientificName" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
|
368
|
p:multivalue="true"
|
369
|
p:root-ref="eml.scientificNameRoot">
|
370
|
<constructor-arg name="name" value="scientificName" />
|
371
|
</bean>
|
372
|
|
373
|
<bean id="eml.scientificNameRoot" class="org.dataone.cn.indexer.parser.utility.RootElement"
|
374
|
p:name="scientificName"
|
375
|
p:xPath='//taxonomicClassification[../taxonRankName="Genus"]'
|
376
|
p:template="[genus] [species]">
|
377
|
<property name="leafs">
|
378
|
<list>
|
379
|
<ref bean="eml.genusLeaf"/>
|
380
|
<ref bean="eml.speciesLeaf"/>
|
381
|
</list>
|
382
|
</property>
|
383
|
</bean>
|
384
|
|
385
|
<bean id="eml.genusLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
|
386
|
p:name="genus"
|
387
|
p:xPath='../taxonRankValue/text()' />
|
388
|
|
389
|
<bean id="eml.speciesLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
|
390
|
p:name="species"
|
391
|
p:xPath='taxonRankValue/text()' />
|
392
|
|
393
|
|
394
|
<bean id="eml.attributeName" class="org.dataone.cn.indexer.parser.SolrField">
|
395
|
<constructor-arg name="name" value="attributeName" />
|
396
|
<constructor-arg name="xpath"
|
397
|
value='//dataTable/attributeList/attribute/attributeName/text()' />
|
398
|
<property name="multivalue" value="true" />
|
399
|
<property name="dedupe" value="false" />
|
400
|
</bean>
|
401
|
|
402
|
<bean id="eml.attributeLabel" class="org.dataone.cn.indexer.parser.SolrField">
|
403
|
<constructor-arg name="name" value="attributeLabel" />
|
404
|
<constructor-arg name="xpath"
|
405
|
value='//dataTable/attributeList/attribute/attributeLabel/text()' />
|
406
|
<property name="multivalue" value="true" />
|
407
|
<property name="dedupe" value="false" />
|
408
|
</bean>
|
409
|
|
410
|
<bean id="eml.attributeDescription" class="org.dataone.cn.indexer.parser.SolrField">
|
411
|
<constructor-arg name="name" value="attributeDescription" />
|
412
|
<constructor-arg name="xpath"
|
413
|
value='//dataTable/attributeList/attribute/attributeDefinition/text()' />
|
414
|
<property name="multivalue" value="true" />
|
415
|
<property name="dedupe" value="false" />
|
416
|
</bean>
|
417
|
|
418
|
<bean id="eml.attributeUnit" class="org.dataone.cn.indexer.parser.SolrField">
|
419
|
<constructor-arg name="name" value="attributeUnit" />
|
420
|
<constructor-arg name="xpath"
|
421
|
value='//dataTable//standardUnit/text() | //dataTable//customUnit/text()' />
|
422
|
<property name="multivalue" value="true" />
|
423
|
<property name="dedupe" value="false" />
|
424
|
</bean>
|
425
|
|
426
|
<bean id="eml.attributeText" class="org.dataone.cn.indexer.parser.CommonRootSolrField"
|
427
|
p:multivalue="true"
|
428
|
p:root-ref="eml.attributeTextRoot">
|
429
|
<constructor-arg name="name" value="attribute" />
|
430
|
</bean>
|
431
|
|
432
|
<bean id="eml.attributeTextRoot" class="org.dataone.cn.indexer.parser.utility.RootElement"
|
433
|
p:name="attribute"
|
434
|
p:xPath='//dataTable/attributeList/attribute'
|
435
|
p:template="[attributeName] [attributeLabel] [attributeDescription] [attributeUnit]">
|
436
|
<property name="leafs">
|
437
|
<list>
|
438
|
<ref bean="eml.attributeNameLeaf" />
|
439
|
<ref bean="eml.attributeLabelLeaf" />
|
440
|
<ref bean="eml.attributeDescriptionLeaf" />
|
441
|
<ref bean="eml.attributeUnitLeaf" />
|
442
|
</list>
|
443
|
</property>
|
444
|
</bean>
|
445
|
|
446
|
<bean id="eml.attributeNameLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
|
447
|
p:name="attributeName"
|
448
|
p:xPath='attributeName/text()' />
|
449
|
|
450
|
<bean id="eml.attributeLabelLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
|
451
|
p:name="attributeLabel"
|
452
|
p:xPath='attributeLabel/text()' />
|
453
|
|
454
|
<bean id="eml.attributeDescriptionLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
|
455
|
p:name="attributeDescription"
|
456
|
p:xPath='attributeDefinition/text()' />
|
457
|
|
458
|
<bean id="eml.attributeUnitLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
|
459
|
p:name="attributeUnit"
|
460
|
p:xPath='.//standardUnit/text() | .//customUnit/text()' />
|
461
|
|
462
|
<bean id="eml.attributeName.noDupe" class="org.dataone.cn.indexer.parser.SolrField">
|
463
|
<constructor-arg name="name" value="attributeName_noDupe" />
|
464
|
<constructor-arg name="xpath"
|
465
|
value='//dataTable/attributeList/attribute/attributeName/text()' />
|
466
|
<property name="multivalue" value="true" />
|
467
|
<property name="dedupe" value="true" />
|
468
|
</bean>
|
469
|
|
470
|
<bean id="eml.attributeLabel.noDupe" class="org.dataone.cn.indexer.parser.SolrField">
|
471
|
<constructor-arg name="name" value="attributeLabel_noDupe" />
|
472
|
<constructor-arg name="xpath"
|
473
|
value='//dataTable/attributeList/attribute/attributeLabel/text()' />
|
474
|
<property name="multivalue" value="true" />
|
475
|
<property name="dedupe" value="true" />
|
476
|
</bean>
|
477
|
|
478
|
<bean id="eml.attributeDescription.noDupe" class="org.dataone.cn.indexer.parser.SolrField">
|
479
|
<constructor-arg name="name" value="attributeDescription_noDupe" />
|
480
|
<constructor-arg name="xpath"
|
481
|
value='//dataTable/attributeList/attribute/attributeDefinition/text()' />
|
482
|
<property name="multivalue" value="true" />
|
483
|
<property name="dedupe" value="true" />
|
484
|
</bean>
|
485
|
|
486
|
<bean id="eml.attributeUnit.noDupe" class="org.dataone.cn.indexer.parser.SolrField">
|
487
|
<constructor-arg name="name" value="attributeUnit_noDupe" />
|
488
|
<constructor-arg name="xpath"
|
489
|
value='//dataTable//standardUnit/text() | //dataTable//customUnit/text()' />
|
490
|
<property name="multivalue" value="true" />
|
491
|
<property name="dedupe" value="true" />
|
492
|
</bean>
|
493
|
|
494
|
<bean id="eml.fullText" class="org.dataone.cn.indexer.parser.AggregateSolrField" >
|
495
|
<property name="name" value="text" />
|
496
|
<property name="solrFields">
|
497
|
<list>
|
498
|
<ref bean="eml.text" />
|
499
|
<ref bean="eml.attributeName.noDupe" />
|
500
|
<ref bean="eml.attributeLabel.noDupe" />
|
501
|
<ref bean="eml.attributeDescription.noDupe" />
|
502
|
<ref bean="eml.attributeUnit.noDupe" />
|
503
|
</list>
|
504
|
</property>
|
505
|
</bean>
|
506
|
</beans>
|