Project

General

Profile

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
	<bean id="xpath_system_metadata_200" class="java.util.ArrayList">
10
		<constructor-arg>
11
			<list>
12
				<bean class="org.dataone.cn.indexer.parser.SolrField">
13
					<constructor-arg name="name" value="id" />
14
					<constructor-arg name="xpath"
15
						value="/d200:systemMetadata/identifier/text()" />
16
				</bean>
17
				<bean class="org.dataone.cn.indexer.parser.SolrField">
18
					<constructor-arg name="name" value="seriesId" />
19
					<constructor-arg name="xpath"
20
						value="/d200:systemMetadata/seriesId/text()" />
21
				</bean>
22
				<bean class="org.dataone.cn.indexer.parser.SolrField">
23
					<constructor-arg name="name" value="fileName" />
24
					<constructor-arg name="xpath"
25
						value="/d200:systemMetadata/fileName/text()" />
26
				</bean>
27
				<bean class="org.dataone.cn.indexer.parser.SolrField">
28
					<constructor-arg name="name" value="mediaType" />
29
					<constructor-arg name="xpath"
30
						value="/d200:systemMetadata/mediaType/@name" />
31
				</bean>
32
				<bean class="org.dataone.cn.indexer.parser.CommonRootSolrField"
33
						p:multivalue="true"
34
						p:root-ref="mediaTypePropertyListRoot">
35
						<constructor-arg name="name" value="mediaTypeProperty" />
36
				</bean>
37
				<bean class="org.dataone.cn.indexer.parser.SolrField">
38
					<constructor-arg name="name" value="formatId" />
39
					<constructor-arg name="xpath"
40
						value="/d200:systemMetadata/formatId/text()" />
41
				</bean>
42
				<bean class="org.dataone.cn.indexer.parser.SolrField">
43
					<constructor-arg name="name" value="formatType" />
44
					<constructor-arg name="xpath" value="/d200:systemMetadata/formatId/text()" />
45
					<property name="converter" ref="formatIdToFormatTypeConverter" />
46
				</bean>
47
				<bean class="org.dataone.cn.indexer.parser.SolrField">
48
					<constructor-arg name="name" value="size" />
49
					<constructor-arg name="xpath"
50
						value="/d200:systemMetadata/size/text()" />
51
				</bean>
52
				<bean class="org.dataone.cn.indexer.parser.SolrField">
53
					<constructor-arg name="name" value="checksum" />
54
					<constructor-arg name="xpath"
55
						value="/d200:systemMetadata/checksum/text()" />
56
				</bean>
57
				<bean class="org.dataone.cn.indexer.parser.SolrField">
58
					<constructor-arg name="name" value="submitter" />
59
					<constructor-arg name="xpath"
60
						value="/d200:systemMetadata/submitter/text()" />
61
				</bean>
62
				<bean class="org.dataone.cn.indexer.parser.SolrField">
63
					<constructor-arg name="name" value="checksumAlgorithm" />
64
					<constructor-arg name="xpath"
65
						value="/d200:systemMetadata/checksum/@algorithm" />
66
				</bean>
67
				<bean class="org.dataone.cn.indexer.parser.SolrField">
68
					<constructor-arg name="name" value="rightsHolder" />
69
					<constructor-arg name="xpath"
70
						value="/d200:systemMetadata/rightsHolder/text()" />
71
				</bean>
72
				<bean class="org.dataone.cn.indexer.parser.SolrField">
73
					<constructor-arg name="name" value="replicationAllowed" />
74
					<constructor-arg name="xpath"
75
						value="/d200:systemMetadata/replicationPolicy/@replicationAllowed" />
76
				</bean>
77
				<bean class="org.dataone.cn.indexer.parser.SolrField">
78
					<constructor-arg name="name" value="numberReplicas" />
79
					<constructor-arg name="xpath"
80
						value="/d200:systemMetadata/replicationPolicy/@numberReplicas" />
81
				</bean>
82
				<bean class="org.dataone.cn.indexer.parser.SolrField">
83
					<constructor-arg name="name" value="preferredReplicationMN" />
84
					<constructor-arg name="xpath"
85
						value="/d200:systemMetadata/replicationPolicy/preferredMemberNode/text()" />
86
					<property name="multivalue" value="true" />
87
				</bean>
88
				<bean class="org.dataone.cn.indexer.parser.SolrField">
89
					<constructor-arg name="name" value="blockedReplicationMN" />
90
					<constructor-arg name="xpath"
91
						value="/d200:systemMetadata/replicationPolicy/blockedMemberNode/text()" />
92
					<property name="multivalue" value="true" />
93
				</bean>
94
				<bean class="org.dataone.cn.indexer.parser.SolrField">
95
					<constructor-arg name="name" value="obsoletes" />
96
					<constructor-arg name="xpath"
97
						value="/d200:systemMetadata/obsoletes/text()" />
98
				</bean>
99
				<bean class="org.dataone.cn.indexer.parser.SolrField">
100
					<constructor-arg name="name" value="obsoletedBy" />
101
					<constructor-arg name="xpath"
102
						value="/d200:systemMetadata/obsoletedBy/text()" />
103
				</bean>
104
				<!-- 
105
				<bean class="org.dataone.cn.indexer.parser.SolrField">
106
					<constructor-arg name="name" value="archived" />
107
					<constructor-arg name="xpath"
108
						value="/d200:systemMetadata/archived/text()" />
109
					<property name="defaultValue" value="false" />
110
				</bean>
111
				 -->				
112
				<bean class="org.dataone.cn.indexer.parser.SolrField">
113
					<constructor-arg name="name" value="dateUploaded" />
114
					<constructor-arg name="xpath"
115
						value="/d200:systemMetadata/dateUploaded/text()" />
116
					<property name="converter" ref="dateConverter" />
117
				</bean>
118
				<bean class="org.dataone.cn.indexer.parser.SolrField">
119
					<constructor-arg name="name" value="dateModified" />
120
					<constructor-arg name="xpath"
121
						value="/d200:systemMetadata/dateSysMetadataModified/text()" />
122
					<property name="converter" ref="dateConverter" />
123
				</bean>
124
				<bean class="org.dataone.cn.indexer.parser.SolrField">
125
					<constructor-arg name="name" value="datasource" />
126
					<constructor-arg name="xpath"
127
						value="/d200:systemMetadata/originMemberNode/text()" />
128
				</bean>
129
				<bean class="org.dataone.cn.indexer.parser.SolrField">
130
					<constructor-arg name="name" value="authoritativeMN" />
131
					<constructor-arg name="xpath"
132
						value="/d200:systemMetadata/authoritativeMemberNode/text()" />
133
				</bean>
134
				<bean class="org.dataone.cn.indexer.parser.SolrField">
135
					<constructor-arg name="name" value="replicaMN" />
136
					<constructor-arg name="xpath"
137
						value="/d200:systemMetadata/replica/replicaMemberNode/text()" />
138
					<property name="multivalue" value="true" />
139
				</bean>
140
				<bean class="org.dataone.cn.indexer.parser.SolrField">
141
					<constructor-arg name="name" value="replicaVerifiedDate" />
142
					<constructor-arg name="xpath"
143
						value="/d200:systemMetadata/replica/replicaVerified/text()" />
144
					<property name="multivalue" value="true" />
145
					<property name="converter" ref="dateConverter" />
146
				</bean>
147
				<bean class="org.dataone.cn.indexer.parser.SolrField">
148
					<constructor-arg name="name" value="readPermission" />
149
					<constructor-arg name="xpath"
150
						value="/d200:systemMetadata/accessPolicy/allow[permission= 'read']/subject/text()" />
151
					<property name="multivalue" value="true" />
152
					<property name="dedupe" value="true" />
153
				</bean>
154
				<bean class="org.dataone.cn.indexer.parser.SolrField">
155
					<constructor-arg name="name" value="writePermission" />
156
					<constructor-arg name="xpath"
157
						value="/d200:systemMetadata/accessPolicy/allow[permission= 'write']/subject/text()" />
158
					<property name="multivalue" value="true" />
159
					<property name="dedupe" value="true" />
160
				</bean>
161
				<bean class="org.dataone.cn.indexer.parser.SolrField">
162
					<constructor-arg name="name" value="changePermission" />
163
					<constructor-arg name="xpath"
164
						value="/d200:systemMetadata/accessPolicy/allow[permission= 'changePermission']/subject/text()" />
165
					<property name="multivalue" value="true" />
166
					<property name="dedupe" value="true" />
167
				</bean>
168
				<bean class="org.dataone.cn.indexer.parser.SolrField">
169
					<constructor-arg name="name" value="isPublic" />
170
					<constructor-arg name="xpath"
171
						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]" />
172
					<property name="converter" ref="booleanPublicConverter" />
173
				</bean>
174
		        <bean class="org.dataone.cn.indexer.parser.ResolveSolrField">
175
					<constructor-arg name="name" value="dataUrl" />
176
		        </bean>
177
			</list>
178
		</constructor-arg>	
179
	</bean>
180
	
181
		
182
	<bean id="mediaTypePropertyListRoot" class="org.dataone.cn.indexer.parser.utility.RootElement"
183
		p:name="mediaTypeProperty"
184
		p:xPath='/d200:systemMetadata/mediaType/property'
185
		p:template="[mediaTypePropertyName] [mediaTypePropertyValue]">
186
		<property name="leafs">
187
			<list>
188
				<ref bean="mediaTypePropertyNameLeaf" />
189
				<ref bean="mediaTypePropertyValueLeaf" />
190
			</list>
191
		</property>
192
	</bean>	
193
	
194
	<bean id="mediaTypePropertyNameLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
195
		p:name="mediaTypePropertyName"
196
		p:xPath='@name' />
197
		
198
	<bean id="mediaTypePropertyValueLeaf" class="org.dataone.cn.indexer.parser.utility.LeafElement"
199
		p:name="mediaTypePropertyValue"
200
		p:xPath='text()' />
201
	
202
	
203
	
204
	
205
</beans>
(16-16/19)