|
1 |
<beans xmlns="http://www.springframework.org/schema/beans"
|
|
2 |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
3 |
xmlns:p="http://www.springframework.org/schema/p"
|
|
4 |
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
|
5 |
|
|
6 |
<bean id="mdqSubprocessor" class="org.dataone.cn.indexer.parser.ScienceMetadataDocumentSubprocessor">
|
|
7 |
|
|
8 |
<!-- match MDQ documents -->
|
|
9 |
<property name="matchDocuments">
|
|
10 |
<list>
|
|
11 |
<value>https://nceas.ucsb.edu/mdqe#run</value>
|
|
12 |
</list>
|
|
13 |
</property>
|
|
14 |
<property name="fieldList">
|
|
15 |
<list>
|
|
16 |
<ref bean="mdq.objectIdentifier" />
|
|
17 |
<ref bean="mdq.suiteId" />
|
|
18 |
<!-- <ref bean="mdq.timestamp" />-->
|
|
19 |
<ref bean="mdq.metadata.formatId" />
|
|
20 |
<ref bean="mdq.metadata.datasource" />
|
|
21 |
<ref bean="mdq.metadata.funder" />
|
|
22 |
<ref bean="mdq.metadata.rightsHolder" />
|
|
23 |
<ref bean="mdq.green" />
|
|
24 |
<ref bean="mdq.orange" />
|
|
25 |
<ref bean="mdq.red" />
|
|
26 |
<ref bean="mdq.blue" />
|
|
27 |
<ref bean="mdq.total" />
|
|
28 |
</list>
|
|
29 |
</property>
|
|
30 |
</bean>
|
|
31 |
|
|
32 |
<bean id="mdq.objectIdentifier" class="org.dataone.cn.indexer.parser.SolrField">
|
|
33 |
<constructor-arg name="name" value="mdq_objectIdentifier_s" />
|
|
34 |
<constructor-arg name="xpath"
|
|
35 |
value="//run/objectIdentifier" />
|
|
36 |
<property name="multivalue" value="false" />
|
|
37 |
</bean>
|
|
38 |
|
|
39 |
<bean id="mdq.suiteId" class="org.dataone.cn.indexer.parser.SolrField">
|
|
40 |
<constructor-arg name="name" value="mdq_suiteId_s" />
|
|
41 |
<constructor-arg name="xpath"
|
|
42 |
value="//run/suiteId" />
|
|
43 |
<property name="multivalue" value="false" />
|
|
44 |
</bean>
|
|
45 |
|
|
46 |
<bean id="mdq.timestamp" class="org.dataone.cn.indexer.parser.SolrField">
|
|
47 |
<constructor-arg name="name" value="mdq_timestamp_dt" />
|
|
48 |
<constructor-arg name="xpath"
|
|
49 |
value="//run/timestamp" />
|
|
50 |
<property name="multivalue" value="false" />
|
|
51 |
</bean>
|
|
52 |
|
|
53 |
<bean id="mdq.metadata.formatId" class="org.dataone.cn.indexer.parser.SolrField">
|
|
54 |
<constructor-arg name="name" value="mdq_metadata_formatId_s" />
|
|
55 |
<constructor-arg name="xpath"
|
|
56 |
value="//run/metadata/formatId" />
|
|
57 |
<property name="multivalue" value="false" />
|
|
58 |
</bean>
|
|
59 |
|
|
60 |
<bean id="mdq.metadata.datasource" class="org.dataone.cn.indexer.parser.SolrField">
|
|
61 |
<constructor-arg name="name" value="mdq_metadata_datasource_s" />
|
|
62 |
<constructor-arg name="xpath"
|
|
63 |
value="//run/metadata/datasource" />
|
|
64 |
<property name="multivalue" value="false" />
|
|
65 |
</bean>
|
|
66 |
|
|
67 |
<bean id="mdq.metadata.funder" class="org.dataone.cn.indexer.parser.SolrField">
|
|
68 |
<constructor-arg name="name" value="mdq_metadata_funder_s" />
|
|
69 |
<constructor-arg name="xpath"
|
|
70 |
value="//run/metadata/funder" />
|
|
71 |
<property name="multivalue" value="false" />
|
|
72 |
</bean>
|
|
73 |
|
|
74 |
<bean id="mdq.metadata.rightsHolder" class="org.dataone.cn.indexer.parser.SolrField">
|
|
75 |
<constructor-arg name="name" value="mdq_metadata_rightsHolder_s" />
|
|
76 |
<constructor-arg name="xpath"
|
|
77 |
value="//run/metadata/rightsHolder" />
|
|
78 |
<property name="multivalue" value="false" />
|
|
79 |
</bean>
|
|
80 |
|
|
81 |
<bean id="mdq.green" class="org.dataone.cn.indexer.parser.SolrField">
|
|
82 |
<constructor-arg name="name" value="mdq_green_i" />
|
|
83 |
<constructor-arg name="xpath"
|
|
84 |
value="count(//result/status[text() = 'SUCCESS'])" />
|
|
85 |
<property name="multivalue" value="false" />
|
|
86 |
</bean>
|
|
87 |
<bean id="mdq.orange" class="org.dataone.cn.indexer.parser.SolrField">
|
|
88 |
<constructor-arg name="name" value="mdq_orange_i" />
|
|
89 |
<constructor-arg name="xpath"
|
|
90 |
value="count( //result/status[text() = 'ERROR'] | //result[check/level[text() = 'OPTIONAL']]/status[text() = 'FAILURE'])" />
|
|
91 |
<property name="multivalue" value="false" />
|
|
92 |
</bean>
|
|
93 |
<bean id="mdq.red" class="org.dataone.cn.indexer.parser.SolrField">
|
|
94 |
<constructor-arg name="name" value="mdq_red_i" />
|
|
95 |
<constructor-arg name="xpath"
|
|
96 |
value="count(//result[check/level[text() = 'REQUIRED']]/status[text() = 'FAILURE'])" />
|
|
97 |
<property name="multivalue" value="false" />
|
|
98 |
</bean>
|
|
99 |
<bean id="mdq.blue" class="org.dataone.cn.indexer.parser.SolrField">
|
|
100 |
<constructor-arg name="name" value="mdq_blue_i" />
|
|
101 |
<constructor-arg name="xpath"
|
|
102 |
value="count(//result/status[text() = 'SKIP'])" />
|
|
103 |
<property name="multivalue" value="false" />
|
|
104 |
</bean>
|
|
105 |
|
|
106 |
<bean id="mdq.total" class="org.dataone.cn.indexer.parser.SolrField">
|
|
107 |
<constructor-arg name="name" value="mdq_total_i" />
|
|
108 |
<constructor-arg name="xpath"
|
|
109 |
value="count(//result)" />
|
|
110 |
<property name="multivalue" value="false" />
|
|
111 |
</bean>
|
|
112 |
|
|
113 |
</beans>
|
0 |
114 |
|
include initial MDQ run processing in metacat-index