Project

General

Profile

1 7542 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_064" class="java.util.ArrayList">
5
		<constructor-arg>
6
			<list>
7
				<bean class="org.dataone.cn.indexer.parser.SolrField">
8
        <!--  -->
9
					<constructor-arg name="name" value="id" />
10
					<constructor-arg name="xpath"
11
						value="/d064:systemMetadata/identifier/text()" />
12
				</bean>
13
				<bean class="org.dataone.cn.indexer.parser.SolrField">
14
        <!--  -->
15
					<constructor-arg name="name" value="objectformat" />
16
					<constructor-arg name="xpath"
17
						value="/d064:systemMetadata/fmtid/text()" />
18
				</bean>
19
				<bean class="org.dataone.cn.indexer.parser.SolrField">
20
        <!--  -->
21
					<constructor-arg name="name" value="size" />
22
					<constructor-arg name="xpath"
23
						value="/d064:systemMetadata/size/text()" />
24
				</bean>
25
				<bean class="org.dataone.cn.indexer.parser.SolrField">
26
        <!--  -->
27
					<constructor-arg name="name" value="checksum" />
28
					<constructor-arg name="xpath"
29
						value="/d064:systemMetadata/checksum/text()" />
30
				</bean>
31
				<bean class="org.dataone.cn.indexer.parser.SolrField">
32
        <!--  -->
33
					<constructor-arg name="name" value="submitter" />
34
					<constructor-arg name="xpath"
35
						value="/d064:systemMetadata/submitter/text()" />
36
				</bean>
37
				<bean class="org.dataone.cn.indexer.parser.SolrField">
38
        <!--  -->
39
					<constructor-arg name="name" value="checksumAlgorithm" />
40
					<constructor-arg name="xpath"
41
						value="/d064:systemMetadata/checksum/@algorithm" />
42
				</bean>
43
				<bean class="org.dataone.cn.indexer.parser.SolrField">
44
        <!--  -->
45
					<constructor-arg name="name" value="rightsholder" />
46
					<constructor-arg name="xpath"
47
						value="/d064:systemMetadata/rightsHolder/text()" />
48
				</bean>
49
				<bean class="org.dataone.cn.indexer.parser.SolrField">
50
        <!--  -->
51
					<constructor-arg name="name" value="rep_allowed" />
52
					<constructor-arg name="xpath"
53
						value="/d064:systemMetadata/replicationPolicy/@replicationAllowed" />
54
				</bean>
55
				<bean class="org.dataone.cn.indexer.parser.SolrField">
56
        <!--  -->
57
					<constructor-arg name="name" value="n_replicas" />
58
					<constructor-arg name="xpath"
59
						value="/d064:systemMetadata/replicationPolicy/@numberReplicas" />
60
				</bean>
61
				<bean class="org.dataone.cn.indexer.parser.SolrField">
62
        <!--  -->
63
					<constructor-arg name="name" value="pref_rep_mn" />
64
					<constructor-arg name="xpath"
65
						value="/d064:systemMetadata/replicationPolicy/preferredMemberNode/text()" />
66
					<property name="multivalue" value="true" />
67
				</bean>
68
				<bean class="org.dataone.cn.indexer.parser.SolrField">
69
				<!--  -->
70
					<constructor-arg name="name" value="blocked_rep_mn" />
71
					<constructor-arg name="xpath"
72
						value="/d064:systemMetadata/replicationPolicy/blockedMemberNode/text()" />
73
					<property name="multivalue" value="true" />
74
				</bean>
75
				<bean class="org.dataone.cn.indexer.parser.SolrField">
76
        <!--  -->
77
					<constructor-arg name="name" value="obsoletes" />
78
					<constructor-arg name="xpath"
79
						value="/d064:systemMetadata/obsoletes/text()" />
80
				</bean>
81
				<bean class="org.dataone.cn.indexer.parser.SolrField">
82
        <!--  -->
83
					<constructor-arg name="name" value="obsoletedby" />
84
					<constructor-arg name="xpath"
85
						value="/d064:systemMetadata/obsoletedBy/text()" />
86
				</bean>
87
				<!--<bean class="org.dataone.cn.indexer.parser.SolrFieldResourceMap"> -->
88
				<!--<constructor-arg name="name" value="resourcemap"/> -->
89
				<!--<constructor-arg name="xpath" value="/d064:systemMetadata/objectFormat/fmtid/text()"/> -->
90
				<!--<constructor-arg name="resourceMapXpath" value="//cito:isDocumentedBy/@rdf:resource"/> -->
91
				<!--<constructor-arg name="multivalue" value="false"/> -->
92
				<!--<constructor-arg name="xmlNamespaceConfig" ref="xmlNamespaceResource"/> -->
93
				<!--<property name="resourceValueMatch" value="http://www.openarchives.org/ore/terms"/> -->
94
				<!--</bean> -->
95
				<bean class="org.dataone.cn.indexer.parser.SolrField">
96
        <!--  -->
97
					<constructor-arg name="name" value="dateuploaded" />
98
					<constructor-arg name="xpath"
99
						value="/d064:systemMetadata/dateUploaded/text()" />
100
					<property name="converter" ref="dateConverter" />
101
				</bean>
102
				<bean class="org.dataone.cn.indexer.parser.SolrField">
103
        <!--  -->
104
					<constructor-arg name="name" value="datemodified" />
105
					<constructor-arg name="xpath"
106
						value="/d064:systemMetadata/dateSysMetadataModified/text()" />
107
					<property name="converter" ref="dateConverter" />
108
				</bean>
109
				<bean class="org.dataone.cn.indexer.parser.SolrField">
110
        <!--  -->
111
					<constructor-arg name="name" value="datasource" />
112
					<constructor-arg name="xpath"
113
						value="/d064:systemMetadata/originMemberNode/text()" />
114
				</bean>
115
				<bean class="org.dataone.cn.indexer.parser.SolrField">
116
        <!--  -->
117
					<constructor-arg name="name" value="auth_mn" />
118
					<constructor-arg name="xpath"
119
						value="/d064:systemMetadata/authoritativeMemberNode/text()" />
120
				</bean>
121
				<bean class="org.dataone.cn.indexer.parser.SolrField">
122
        <!--  -->
123
					<constructor-arg name="name" value="replica_mn" />
124
					<constructor-arg name="xpath"
125
						value="/d064:systemMetadata/replica/replicaMemberNode/text()" />
126
					<property name="multivalue" value="true" />
127
				</bean>
128
				<bean class="org.dataone.cn.indexer.parser.SolrField">
129
        <!--  -->
130
					<constructor-arg name="name" value="replica_verified" />
131
					<constructor-arg name="xpath"
132
						value="/d064:systemMetadata/replica/replicaVerified/text()" />
133
					<property name="multivalue" value="true" />
134
					<property name="converter" ref="dateConverter" />
135
				</bean>
136
				<bean class="org.dataone.cn.indexer.parser.SolrField">
137
        <!--  -->
138
					<constructor-arg name="name" value="readPermission" />
139
					<constructor-arg name="xpath"
140
						value="/d064:systemMetadata/accessPolicy/allow[permission= 'read']/subject/text()" />
141
					<property name="multivalue" value="true" />
142
				</bean>
143
				<bean class="org.dataone.cn.indexer.parser.SolrField">
144
        <!--  -->
145
					<constructor-arg name="name" value="writePermission" />
146
					<constructor-arg name="xpath"
147
						value="/d064:systemMetadata/accessPolicy/allow[permission= 'write']/subject/text()" />
148
					<property name="multivalue" value="true" />
149
				</bean>
150
				<bean class="org.dataone.cn.indexer.parser.SolrField">
151
        <!--  -->
152
					<constructor-arg name="name" value="changePermission" />
153
					<constructor-arg name="xpath"
154
						value="/d064:systemMetadata/accessPolicy/allow[permission= 'changePermission']/subject/text()" />
155
					<property name="multivalue" value="true" />
156
				</bean>
157
				<bean class="org.dataone.cn.indexer.parser.SolrField">
158
        <!--  -->
159
					<constructor-arg name="name" value="isPublic" />
160
					<constructor-arg name="xpath"
161
						value="/d064:systemMetadata/accessPolicy/allow[permission= 'read']/subject[text()='public']/text()" />
162
					<property name="multivalue" value="true" />
163
					<property name="converter" ref="booleanPublicConverter" />
164
				</bean>
165
166
        <bean class="org.dataone.cn.indexer.parser.WebUrlSolrField">
167
        <!--  -->
168
          <constructor-arg name="name" value="web_url" />
169
          <constructor-arg name="xpath"
170
            value="/d064:systemMetadata/identifier/text()" />
171
          <constructor-arg name="nodesXPath" value="//replica[replicationStatus/text()='completed']/replicaMemberNode/text()" />
172
          <property name="nodeRegistryService" ref="nodeRegistryService" />
173
          <property name="onlyReferenceCNs" value="true" />
174
          <property name="multivalue" value="true" />
175
        </bean>
176
        <bean class="org.dataone.cn.indexer.parser.WebUrlSolrField">
177
        <!--  -->
178
          <constructor-arg name="name" value="data_url" />
179
          <constructor-arg name="xpath"
180
            value="/d064:systemMetadata/identifier/text()" />
181
          <constructor-arg name="nodesXPath" value="//replica[replicationStatus/text()='completed']/replicaMemberNode/text()" />
182
          <property name="nodeRegistryService" ref="nodeRegistryService" />
183
          <property name="onlyReferenceCNs" value="false" />
184
          <property name="multivalue" value="false" />
185
        </bean>
186
187
			</list>
188
		</constructor-arg>
189
	</bean>
190
191
</beans>