Project

General

Profile

« Previous | Next » 

Revision 53430

avoid duplicated values

View differences:

2-8b9503d9-8a86-4330-93ef-7e0cd9bc87c2.xml
327 327
		                <FIELD name="provenanceactionclassid" xpath="//*[local-name()='entity']//datainfo/provenanceaction/@classid" tokenizable="false"
328 328
		                       stat="false" result="false" indexable="true"/>
329 329

  
330
		                <FIELD name="contextid" xpath="//*[local-name()='entity']/*[local-name()='result']/context/@id" tokenizable="false" indexable="true"
330
		                <FIELD name="contextid" xpath="distinct-values(//*[local-name()='entity']/*[local-name()='result']/context/@id)" tokenizable="false" indexable="true"
331 331
		                       result="false" stat="false"/>
332
		                <FIELD name="contexttype" xpath="//*[local-name()='entity']/*[local-name()='result']/context/@type" tokenizable="false" indexable="true"
332
		                <FIELD name="contexttype" xpath="distinct-values(//*[local-name()='entity']/*[local-name()='result']/context/@type)" tokenizable="false" indexable="true"
333 333
		                       result="false" stat="false"/>
334
		                <FIELD name="contextname" xpath="//*[local-name()='entity']/*[local-name()='result']/context/@label" tokenizable="false"
334
		                <FIELD name="contextname" xpath="distinct-values(//*[local-name()='entity']/*[local-name()='result']/context/@label)" tokenizable="false"
335 335
		                       indexable="true" result="false" stat="false"/>
336 336
		                <!-- Need special fields for community (research initiative) context in order to exclude funders from the context browse -->
337 337
		                <FIELD name="community"
338
		                       xpath="//*[local-name()='entity']/*[local-name()='result']/context[@type='community' or @type='ri']" value="dnet:join(@id, '||', @label)"
338
		                       xpath="//*[local-name()='entity']/*[local-name()='result']/context[@type='community' or @type='ri']" value="distinct-values(dnet:join(@id, '||', @label))"
339 339
		                       tokenizable="false" indexable="true" result="false" stat="false" />
340 340

  
341
		                <FIELD name="communityname" xpath="//*[local-name()='entity']/*[local-name()='result']/context[@type='community' or @type='ri']/@label"
341
		                <FIELD name="communityname" xpath="distinct-values(//*[local-name()='entity']/*[local-name()='result']/context[@type='community' or @type='ri']/@label)"
342 342
		                       tokenizable="false" indexable="true" result="false" stat="false"/>
343 343

  
344
		                <FIELD name="communityid" xpath="//*[local-name()='entity']/*[local-name()='result']/context[@type='community' or @type='ri']/@id" tokenizable="false"
344
		                <FIELD name="communityid" xpath="distinct-values(//*[local-name()='entity']/*[local-name()='result']/context[@type='community' or @type='ri']/@id)" tokenizable="false"
345 345
		                       indexable="true" result="false" stat="false"/>
346 346

  
347
		                <FIELD name="categoryid" xpath="//*[local-name()='entity']/*[local-name()='result']/context/category/@id" tokenizable="false"
347
		                <FIELD name="categoryid" xpath="distinct-values(//*[local-name()='entity']/*[local-name()='result']/context/category/@id)" tokenizable="false"
348 348
		                       indexable="true" result="false" stat="false"/>
349
		                <FIELD name="categoryname" xpath="//*[local-name()='entity']/*[local-name()='result']/context/category/@label" tokenizable="false"
349
		                <FIELD name="categoryname" xpath="distinct-values(//*[local-name()='entity']/*[local-name()='result']/context/category/@label)" tokenizable="false"
350 350
		                       indexable="true" result="false" stat="false"/>
351
		                <FIELD name="conceptid" xpath="//*[local-name()='entity']/*[local-name()='result']/context/category//concept/@id" tokenizable="false"
351
		                <FIELD name="conceptid" xpath="distinct-values(//*[local-name()='entity']/*[local-name()='result']/context/category//concept/@id)" tokenizable="false"
352 352
		                       indexable="true" result="false" stat="false"/>
353
		                <FIELD name="conceptname" xpath="//*[local-name()='entity']/*[local-name()='result']/context/category//concept/@label"
353
		                <FIELD name="conceptname" xpath="distinct-values(//*[local-name()='entity']/*[local-name()='result']/context/category//concept/@label)"
354 354
		                       tokenizable="false" indexable="true" result="false" stat="false"/>
355 355
		                <!-- new index field for country info from different xpaths for any type of entity -->
356
		                <FIELD name="country" xpath="//*[local-name()='entity']/*/country/@classid | //*[local-name()='entity']/*//rel[./to/@type='organization']/country/@classid | //*[local-name()='entity']//funder/@jurisdiction"
356
		                <FIELD name="country" xpath="distinct-values(//*[local-name()='entity']/*/country/@classid | //*[local-name()='entity']/*//rel[./to/@type='organization']/country/@classid | //*[local-name()='entity']//funder/@jurisdiction)"
357 357
		                       tokenizable="false" indexable="true" stat="false" result="false"/>
358 358

  
359 359
		                <!-- COUNTER FIELDS -->

Also available in: Unified diff