Project

General

Profile

« Previous | Next » 

Revision 9330

include hierarchical permissions when evaluating isPublic during indexing. https://redmine.dataone.org/issues/7374

View differences:

metacat-index/src/main/resources/application-context-systemmeta100.xml
158 158
				<bean class="org.dataone.cn.indexer.parser.SolrField">
159 159
					<constructor-arg name="name" value="isPublic" />
160 160
					<constructor-arg name="xpath"
161
						value="/d200:systemMetadata/accessPolicy/allow[permission= 'read']/subject[text()='public']/text()" />
161
						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())[1]" />
162 162
					<property name="converter" ref="booleanPublicConverter" />
163 163
				</bean>
164

  
165 164
		        <!-- <bean class="org.dataone.cn.indexer.parser.ResolveSolrField">
166 165
					<constructor-arg name="name" value="dataUrl" />
167 166
		        </bean> -->

Also available in: Unified diff