1 |
8752
|
tao
|
<beans xmlns="http://www.springframework.org/schema/beans"
|
2 |
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
3 |
|
|
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd">
|
4 |
|
|
<bean id="xpath_system_metadata_100" class="java.util.ArrayList">
|
5 |
|
|
<constructor-arg>
|
6 |
|
|
<list>
|
7 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
8 |
|
|
<constructor-arg name="name" value="id" />
|
9 |
|
|
<constructor-arg name="xpath"
|
10 |
8826
|
leinfelder
|
value="/d200:systemMetadata/identifier/text()" />
|
11 |
8752
|
tao
|
</bean>
|
12 |
|
|
|
13 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
14 |
|
|
<constructor-arg name="name" value="formatId" />
|
15 |
|
|
<constructor-arg name="xpath"
|
16 |
8826
|
leinfelder
|
value="/d200:systemMetadata/formatId/text()" />
|
17 |
8752
|
tao
|
</bean>
|
18 |
|
|
|
19 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
20 |
|
|
<constructor-arg name="name" value="formatType" />
|
21 |
8826
|
leinfelder
|
<constructor-arg name="xpath" value="/d200:systemMetadata/formatId/text()" />
|
22 |
8752
|
tao
|
<property name="converter" ref="formatIdToFormatTypeConverter" />
|
23 |
|
|
</bean>
|
24 |
|
|
|
25 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
26 |
|
|
<constructor-arg name="name" value="size" />
|
27 |
|
|
<constructor-arg name="xpath"
|
28 |
8826
|
leinfelder
|
value="/d200:systemMetadata/size/text()" />
|
29 |
8752
|
tao
|
</bean>
|
30 |
|
|
|
31 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
32 |
|
|
<constructor-arg name="name" value="checksum" />
|
33 |
|
|
<constructor-arg name="xpath"
|
34 |
8826
|
leinfelder
|
value="/d200:systemMetadata/checksum/text()" />
|
35 |
8752
|
tao
|
</bean>
|
36 |
|
|
|
37 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
38 |
|
|
<constructor-arg name="name" value="submitter" />
|
39 |
|
|
<constructor-arg name="xpath"
|
40 |
8826
|
leinfelder
|
value="/d200:systemMetadata/submitter/text()" />
|
41 |
8752
|
tao
|
</bean>
|
42 |
|
|
|
43 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
44 |
|
|
<constructor-arg name="name" value="checksumAlgorithm" />
|
45 |
|
|
<constructor-arg name="xpath"
|
46 |
8826
|
leinfelder
|
value="/d200:systemMetadata/checksum/@algorithm" />
|
47 |
8752
|
tao
|
</bean>
|
48 |
|
|
|
49 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
50 |
|
|
<constructor-arg name="name" value="rightsHolder" />
|
51 |
|
|
<constructor-arg name="xpath"
|
52 |
8826
|
leinfelder
|
value="/d200:systemMetadata/rightsHolder/text()" />
|
53 |
8752
|
tao
|
</bean>
|
54 |
|
|
|
55 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
56 |
|
|
<constructor-arg name="name" value="replicationAllowed" />
|
57 |
|
|
<constructor-arg name="xpath"
|
58 |
8826
|
leinfelder
|
value="/d200:systemMetadata/replicationPolicy/@replicationAllowed" />
|
59 |
8752
|
tao
|
</bean>
|
60 |
|
|
|
61 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
62 |
|
|
<constructor-arg name="name" value="numberReplicas" />
|
63 |
|
|
<constructor-arg name="xpath"
|
64 |
8826
|
leinfelder
|
value="/d200:systemMetadata/replicationPolicy/@numberReplicas" />
|
65 |
8752
|
tao
|
</bean>
|
66 |
|
|
|
67 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
68 |
|
|
<constructor-arg name="name" value="preferredReplicationMN" />
|
69 |
|
|
<constructor-arg name="xpath"
|
70 |
8826
|
leinfelder
|
value="/d200:systemMetadata/replicationPolicy/preferredMemberNode/text()" />
|
71 |
8752
|
tao
|
<property name="multivalue" value="true" />
|
72 |
|
|
</bean>
|
73 |
|
|
|
74 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
75 |
|
|
<constructor-arg name="name" value="blockedReplicationMN" />
|
76 |
|
|
<constructor-arg name="xpath"
|
77 |
8826
|
leinfelder
|
value="/d200:systemMetadata/replicationPolicy/blockedMemberNode/text()" />
|
78 |
8752
|
tao
|
<property name="multivalue" value="true" />
|
79 |
|
|
</bean>
|
80 |
|
|
|
81 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
82 |
|
|
<constructor-arg name="name" value="obsoletes" />
|
83 |
|
|
<constructor-arg name="xpath"
|
84 |
8826
|
leinfelder
|
value="/d200:systemMetadata/obsoletes/text()" />
|
85 |
8752
|
tao
|
</bean>
|
86 |
|
|
|
87 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
88 |
|
|
<constructor-arg name="name" value="obsoletedBy" />
|
89 |
|
|
<constructor-arg name="xpath"
|
90 |
8826
|
leinfelder
|
value="/d200:systemMetadata/obsoletedBy/text()" />
|
91 |
8752
|
tao
|
</bean>
|
92 |
|
|
|
93 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
94 |
|
|
<constructor-arg name="name" value="dateUploaded" />
|
95 |
|
|
<constructor-arg name="xpath"
|
96 |
8826
|
leinfelder
|
value="/d200:systemMetadata/dateUploaded/text()" />
|
97 |
8752
|
tao
|
<property name="converter" ref="dateConverter" />
|
98 |
|
|
</bean>
|
99 |
|
|
|
100 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
101 |
|
|
<constructor-arg name="name" value="dateModified" />
|
102 |
|
|
<constructor-arg name="xpath"
|
103 |
8826
|
leinfelder
|
value="/d200:systemMetadata/dateSysMetadataModified/text()" />
|
104 |
8752
|
tao
|
<property name="converter" ref="dateConverter" />
|
105 |
|
|
</bean>
|
106 |
|
|
|
107 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
108 |
|
|
<constructor-arg name="name" value="datasource" />
|
109 |
|
|
<constructor-arg name="xpath"
|
110 |
8826
|
leinfelder
|
value="/d200:systemMetadata/originMemberNode/text()" />
|
111 |
8752
|
tao
|
</bean>
|
112 |
|
|
|
113 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
114 |
|
|
<constructor-arg name="name" value="authoritativeMN" />
|
115 |
|
|
<constructor-arg name="xpath"
|
116 |
8826
|
leinfelder
|
value="/d200:systemMetadata/authoritativeMemberNode/text()" />
|
117 |
8752
|
tao
|
</bean>
|
118 |
|
|
|
119 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
120 |
|
|
<constructor-arg name="name" value="replicaMN" />
|
121 |
|
|
<constructor-arg name="xpath"
|
122 |
8826
|
leinfelder
|
value="/d200:systemMetadata/replica/replicaMemberNode/text()" />
|
123 |
8752
|
tao
|
<property name="multivalue" value="true" />
|
124 |
|
|
</bean>
|
125 |
|
|
|
126 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
127 |
|
|
<constructor-arg name="name" value="replicaVerifiedDate" />
|
128 |
|
|
<constructor-arg name="xpath"
|
129 |
8826
|
leinfelder
|
value="/d200:systemMetadata/replica/replicaVerified/text()" />
|
130 |
8752
|
tao
|
<property name="multivalue" value="true" />
|
131 |
|
|
<property name="converter" ref="dateConverter" />
|
132 |
|
|
</bean>
|
133 |
|
|
|
134 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
135 |
|
|
<constructor-arg name="name" value="readPermission" />
|
136 |
|
|
<constructor-arg name="xpath"
|
137 |
8826
|
leinfelder
|
value="/d200:systemMetadata/accessPolicy/allow[permission= 'read']/subject/text()" />
|
138 |
8752
|
tao
|
<property name="multivalue" value="true" />
|
139 |
|
|
<property name="dedupe" value="true" />
|
140 |
|
|
</bean>
|
141 |
|
|
|
142 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
143 |
|
|
<constructor-arg name="name" value="writePermission" />
|
144 |
|
|
<constructor-arg name="xpath"
|
145 |
8826
|
leinfelder
|
value="/d200:systemMetadata/accessPolicy/allow[permission= 'write']/subject/text()" />
|
146 |
8752
|
tao
|
<property name="multivalue" value="true" />
|
147 |
|
|
<property name="dedupe" value="true" />
|
148 |
|
|
</bean>
|
149 |
|
|
|
150 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
151 |
|
|
<constructor-arg name="name" value="changePermission" />
|
152 |
|
|
<constructor-arg name="xpath"
|
153 |
8826
|
leinfelder
|
value="/d200:systemMetadata/accessPolicy/allow[permission= 'changePermission']/subject/text()" />
|
154 |
8752
|
tao
|
<property name="multivalue" value="true" />
|
155 |
|
|
<property name="dedupe" value="true" />
|
156 |
|
|
</bean>
|
157 |
|
|
|
158 |
|
|
<bean class="org.dataone.cn.indexer.parser.SolrField">
|
159 |
|
|
<constructor-arg name="name" value="isPublic" />
|
160 |
|
|
<constructor-arg name="xpath"
|
161 |
9332
|
leinfelder
|
value="(//accessPolicy/allow[permission= 'read']/subject[text()='public']/text() | //accessPolicy/allow[permission= 'write']/subject[text()='public']/text() | //accessPolicy/allow[permission= 'changePermission']/subject[text()='public']/text() | //rightsHolder[text()='public']/text())[1] />
|
162 |
8752
|
tao
|
<property name="converter" ref="booleanPublicConverter" />
|
163 |
|
|
</bean>
|
164 |
|
|
<!-- <bean class="org.dataone.cn.indexer.parser.ResolveSolrField">
|
165 |
|
|
<constructor-arg name="name" value="dataUrl" />
|
166 |
|
|
</bean> -->
|
167 |
|
|
</list>
|
168 |
|
|
</constructor-arg>
|
169 |
|
|
</bean>
|
170 |
|
|
</beans>
|