Revision 10066
Added by ben leinfelder almost 8 years ago
metacat-index/src/main/resources/application-context-mdq.xml | ||
---|---|---|
87 | 87 |
<bean id="mdq.score.green" class="org.dataone.cn.indexer.parser.SolrField"> |
88 | 88 |
<constructor-arg name="name" value="mdq_green_i" /> |
89 | 89 |
<constructor-arg name="xpath" |
90 |
value="count(//result[check/level[text() != 'SKIP']]/status[text() = 'SUCCESS'])" />
|
|
90 |
value="count(//result[check/level[text() != 'INFO']]/status[text() = 'SUCCESS'])" />
|
|
91 | 91 |
<property name="multivalue" value="false" /> |
92 | 92 |
</bean> |
93 | 93 |
<bean id="mdq.score.orange" class="org.dataone.cn.indexer.parser.SolrField"> |
94 | 94 |
<constructor-arg name="name" value="mdq_orange_i" /> |
95 | 95 |
<constructor-arg name="xpath" |
96 |
value="count( //result/status[text() = 'ERROR'] | //result[check/level[text() = 'OPTIONAL']]/status[text() = 'FAILURE'])" /> |
|
96 |
value="count( //result[check/level[text() != 'INFO']]/status[text() = 'ERROR'] | //result[check/level[text() = 'OPTIONAL']]/status[text() = 'FAILURE'])" />
|
|
97 | 97 |
<property name="multivalue" value="false" /> |
98 | 98 |
</bean> |
99 | 99 |
<bean id="mdq.score.red" class="org.dataone.cn.indexer.parser.SolrField"> |
... | ... | |
105 | 105 |
<bean id="mdq.score.blue" class="org.dataone.cn.indexer.parser.SolrField"> |
106 | 106 |
<constructor-arg name="name" value="mdq_blue_i" /> |
107 | 107 |
<constructor-arg name="xpath" |
108 |
value="count(//result/status[text() = 'SKIP'])" /> |
|
108 |
value="count(//result/status[text() = 'SKIP'] | //result[check/level[text() = 'INFO']])" />
|
|
109 | 109 |
<property name="multivalue" value="false" /> |
110 | 110 |
</bean> |
111 | 111 |
|
... | ... | |
113 | 113 |
<bean id="mdq.score.identification" class="org.dataone.cn.indexer.parser.SolrField"> |
114 | 114 |
<constructor-arg name="name" value="mdq_identification_d" /> |
115 | 115 |
<constructor-arg name="xpath" |
116 |
value="count(//result[check/type[text() = 'identification']]/status[text() = 'SUCCESS']) / count(//result[check/type[text() = 'identification']])" />
|
|
116 |
value="count(//result[check/type[text() = 'identification']]/status[text() = 'SUCCESS']) div count(//result[check/type[text() = 'identification']])" />
|
|
117 | 117 |
<property name="multivalue" value="false" /> |
118 | 118 |
</bean> |
119 | 119 |
<bean id="mdq.score.interpretation" class="org.dataone.cn.indexer.parser.SolrField"> |
120 | 120 |
<constructor-arg name="name" value="mdq_interpretation_d" /> |
121 | 121 |
<constructor-arg name="xpath" |
122 |
value="count(//result[check/type[text() = 'interpretation']]/status[text() = 'SUCCESS']) / count(//result[check/type[text() = 'interpretation']])" />
|
|
122 |
value="count(//result[check/type[text() = 'interpretation']]/status[text() = 'SUCCESS']) div count(//result[check/type[text() = 'interpretation']])" />
|
|
123 | 123 |
<property name="multivalue" value="false" /> |
124 | 124 |
</bean> |
125 | 125 |
<bean id="mdq.score.discovery" class="org.dataone.cn.indexer.parser.SolrField"> |
126 | 126 |
<constructor-arg name="name" value="mdq_discovery_d" /> |
127 | 127 |
<constructor-arg name="xpath" |
128 |
value="count(//result[check/type[text() = 'discovery']]/status[text() = 'SUCCESS']) / count(//result[check/type[text() = 'discovery']])" />
|
|
128 |
value="count(//result[check/type[text() = 'discovery']]/status[text() = 'SUCCESS']) div count(//result[check/type[text() = 'discovery']])" />
|
|
129 | 129 |
<property name="multivalue" value="false" /> |
130 | 130 |
</bean> |
131 | 131 |
<bean id="mdq.score.other" class="org.dataone.cn.indexer.parser.SolrField"> |
132 | 132 |
<constructor-arg name="name" value="mdq_other_d" /> |
133 | 133 |
<constructor-arg name="xpath" |
134 |
value="count(//result[check/type[text() != 'identification' and text() != 'interpretation' and text() != 'discovery']]/status[text() = 'SUCCESS']) / count(//result[check/type[text() != 'identification' and text() != 'interpretation' and text() != 'discovery']])" />
|
|
134 |
value="count(//result[check/type[text() != 'identification' and text() != 'interpretation' and text() != 'discovery']]/status[text() = 'SUCCESS']) div count(//result[check/type[text() != 'identification' and text() != 'interpretation' and text() != 'discovery']])" />
|
|
135 | 135 |
<property name="multivalue" value="false" /> |
136 | 136 |
</bean> |
137 | 137 |
|
Also available in: Unified diff
adjust color-based score calculations to match UI and add up to total result count