Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2018
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 13.49 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. ~ Copyright (C) 2001-2016 Food and Agriculture Organization of the
  4. ~ United Nations (FAO-UN), United Nations World Food Programme (WFP)
  5. ~ and United Nations Environment Programme (UNEP)
  6. ~
  7. ~ This program is free software; you can redistribute it and/or modify
  8. ~ it under the terms of the GNU General Public License as published by
  9. ~ the Free Software Foundation; either version 2 of the License, or (at
  10. ~ your option) any later version.
  11. ~
  12. ~ This program is distributed in the hope that it will be useful, but
  13. ~ WITHOUT ANY WARRANTY; without even the implied warranty of
  14. ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  15. ~ General Public License for more details.
  16. ~
  17. ~ You should have received a copy of the GNU General Public License
  18. ~ along with this program; if not, write to the Free Software
  19. ~ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  20. ~
  21. ~ Contact: Jeroen Ticheler - FAO - Viale delle Terme di Caracalla 2,
  22. ~ Rome - Italy. email: geonetwork@osgeo.org
  23. -->
  24.  
  25. <bean:beans xmlns:bean="http://www.springframework.org/schema/beans"
  26. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  27. default-lazy-init="true"
  28. xmlns="http://www.fao.org/geonetwork/spring"
  29. xsi:schemaLocation="
  30. http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
  31. http://www.fao.org/geonetwork/spring http://www.fao.org/geonetwork/spring/gn-spring.xsd
  32. "
  33. >
  34. <!--
  35. Configuration of the taxonomy index used for faceting and
  36. formatting/building facet summaries
  37.  
  38. Each facet to be indexed is defined in the facets element. The facets element
  39. lists the facets to index and how they should be indexed using attributes on facet elements as follows:
  40.  
  41. * name: the name of the facet
  42. * indexKey: the name of the indexing field to be used for the facet
  43. * label: the label to use for the facet in returned summaries
  44. * classifier: (optional) a reference to a spring bean that should be used to
  45. determine facet values for the indexing field.
  46. The bean must implement the org.fao.kernel.search.classifier.Classifier interface
  47. Defaults to a classifier which uses the value of the field to be indexed
  48.  
  49. When a facet definitionis modified or added, the index MUST be rebuilt.
  50.  
  51. How facet summaries should be built and formatted for each summary type is defined
  52. in the summaryTypes element. The summaryTypes element contains a number of summary type elements each
  53. of which define a facet summary that can be configured for a service. Each summary type
  54. element contains a number of item elements defining facets to be returned and how they
  55. should be formatted as follows:
  56.  
  57. * facet: the name of a facet defined above
  58. * (optional) sortBy: the ordering for the facet. Defaults to by count.
  59. * (optional) sortOrder: asc or desc. Defaults is descendant.
  60. * (optional) max: the number of values to be returned for the facet. Defaults to 10.
  61. * (optional) depth: the depth to which hierarchical facets should be summarised. Defaults to 1.
  62. * (optional) format: the format to be used for generating facet summary elements. Defaults to
  63. 'FACET_NAME'. Can also be 'DIMENSION', which uses a top level
  64. dimension tag and category tags for sub-categories which is more suitable for hierarchical facets.
  65. * (optional) translator: Define a DB translator to retrieve label from description
  66. tables (eg. categoriesdes) or codelist translator to retrieve label from schema
  67. codelists files.
  68.  
  69. eg. for category
  70.  
  71. <item dimension="category" plural="categories" indexKey="_cat" max="45"
  72. translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>
  73.  
  74. or for group
  75.  
  76. <item dimension="groupOwner" plural="groupOwners" indexKey="_groupOwner"
  77. max="99" sortBy="value" translator="db:org.fao.geonet.repository.GroupRepository:findOne:int"/>
  78.  
  79. -->
  80.  
  81. <facets>
  82. <facet name="keyword" indexKey="keyword" label="keywords" localized="true"/>
  83. <facet name="topicCat" indexKey="topicCat" label="topicCats" localized="true"/>
  84. <facet name="category" indexKey="_cat" label="categories" localized="true"/>
  85. <facet name="inspireTheme" indexKey="inspiretheme" label="inspireThemes"/>
  86. <facet name="inspireThemeWithAc" indexKey="inspirethemewithac" label="inspireThemesWithAc"/>
  87. <facet name="inspireThemeURI" indexKey="inspirethemeuri" label="inspireThemesURI"/>
  88. <facet name="denominator" indexKey="denominator" label="denominators"/>
  89. <facet name="resolution" indexKey="resolution" label="resolutions"/>
  90. <facet name="spatialRepresentationType" indexKey="cl_spatialRepresentationType"
  91. label="spatialRepresentationTypes"/>
  92. <facet name="orgName" indexKey="orgName" label="orgNames" localized="true"/>
  93. <facet name="orgNameTree" indexKey="orgNameTree" label="orgNamesTree"
  94. classifier="slashSplitClassifier"/>
  95. <facet name="metadataPOC" indexKey="metadataPOC" label="metadataPOCs"/>
  96. <facet name="serviceType" indexKey="serviceType" label="serviceTypes"/>
  97. <facet name="type" indexKey="type" label="types"/>
  98. <facet name="createDateYear" indexKey="createDateYear" label="createDateYears"/>
  99. <facet name="format" indexKey="format" label="formats"/>
  100. <facet name="title" indexKey="title" label="titles"/>
  101. <facet name="metadataType" indexKey="_isTemplate" label="metadataTypes"/>
  102. <facet name="isValid" indexKey="_valid" label="isValid"/>
  103. <facet name="isHarvested" indexKey="_isHarvested" label="isHarvested"/>
  104. <facet name="mdStatus" indexKey="_status" label="mdStatus"/>
  105. <facet name="status" indexKey="cl_status" label="status"/>
  106. <facet name="sourceCatalog" indexKey="_source" label="sourceCatalog"/>
  107. <facet name="standard" indexKey="_schema" label="standards"/>
  108. <facet name="subTemplateType" indexKey="_root" label="subTemplateTypes"/>
  109. <facet name="groupOwner" indexKey="_groupOwner" label="groupOwners"/>
  110. <facet name="publishedForGroup" indexKey="_groupPublished" label="publishedForGroup"/>
  111. <!--
  112. Example configuration for hierarchical facet based on
  113. the GeoNetwork region thesaurus or GEMET.
  114.  
  115. Do not forget to add classifier configuration on config-spring-geonetwork.xml
  116.  
  117. Then add facet in one summaryType having format="DIMENSION" attribute.
  118. <facet name="region" label="regions"
  119. indexKey="keyword"
  120. classifier="regionKeywordClassifier"/>
  121. <facet name="gemetKeyword" label="gemetKeywords"
  122. indexKey="keyword"
  123. classifier="gemetKeywordClassifier"/>
  124. -->
  125.  
  126. <facet name="maintenanceAndUpdateFrequency" indexKey="cl_maintenanceAndUpdateFrequency"
  127. label="maintenanceAndUpdateFrequencies"/>
  128. </facets>
  129.  
  130. <summaryTypes>
  131. <summaryType name="details" format="DIMENSION">
  132. <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
  133. <item facet="category" plural="categories" indexKey="_cat" max="45" sortBy="value"
  134. translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>
  135. <!-- <item dimension="category" plural="categories" indexKey="_cat" max="45"
  136. translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/> -->
  137. <!-- <item facet="topicCat" translator="codelist:gmd:MD_TopicCategoryCode" max="20"/> -->
  138. <!-- <item facet="inspireThemeURI" sortBy="value" sortOrder="asc" max="35"
  139. translator="term:http://geonetwork-opensource.org/inspire-theme"/> -->
  140. <!--<item facet="inspireTheme" sortBy="value" sortOrder="asc" max="35"/>-->
  141. <!--<item facet="inspireThemeWithAc" sortBy="value" sortOrder="asc" max="35"/>-->
  142. <item facet="keyword" max="15"/>
  143. <item facet="orgName" max="25"/>
  144. <!-- <item facet="sourceCatalog"
  145. translator="db:org.fao.geonet.repository.SourceRepository:findOneByUuid"/> -->
  146. <item facet="createDateYear" sortBy="value" sortOrder="desc" max="40"/>
  147. <item facet="format" max="15" sortBy="value" sortOrder="asc"/>
  148. <item facet="spatialRepresentationType"
  149. translator="codelist:gmd:MD_SpatialRepresentationTypeCode"/>
  150. <item facet="maintenanceAndUpdateFrequency"
  151. translator="codelist:gmd:MD_MaintenanceFrequencyCode"/>
  152. <item facet="status" translator="codelist:gmd:MD_ProgressCode"/>
  153. <item facet="serviceType"/>
  154. <item facet="denominator" sortBy="numValue" sortOrder="desc"/>
  155. <item facet="resolution" sortBy="numValue" sortOrder="desc"/>
  156. <!--
  157. <item facet="region"
  158. translator="term:http://geonetwork-opensource.org/thesaurus/naturalearth-and-seavox"/>
  159. <item facet="gemetKeyword"
  160. translator="term:http://geonetwork-opensource.org/gemet"/>
  161. -->
  162. </summaryType>
  163.  
  164. <summaryType name="manager" format="DIMENSION">
  165. <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
  166. <item facet="category" max="99" sortBy="value"
  167. translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>
  168. <item facet="mdStatus" max="10" sortBy="value"
  169. translator="db:org.fao.geonet.repository.StatusValueRepository:findOne:int"/>
  170. <item facet="sourceCatalog"
  171. translator="db:org.fao.geonet.repository.SourceRepository:findOneByUuid"/>
  172. <item facet="isValid" max="3" sortBy="value" translator="apploc:validStatus-"/>
  173. <item facet="groupOwner" max="199" sortBy="value"
  174. translator="db:org.fao.geonet.repository.GroupRepository:findOne:int"/>
  175. <item facet="publishedForGroup" max="199" sortBy="value"
  176. translator="db:org.fao.geonet.repository.GroupRepository:findOneByName"/>
  177. <item facet="standard" max="15" sortBy="value"/>
  178. <item facet="isHarvested" max="2" sortBy="value" translator="apploc:"/>
  179. <item facet="metadataType" max="3" sortBy="value" translator="apploc:recordType-"/>
  180. </summaryType>
  181.  
  182. <!-- (deprecated) old-style configuration supporting only
  183. flat facet. It's recommended to use format="DIMENSION" for facet.
  184. See above. -->
  185. <summaryType name="hits">
  186. <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
  187. <item facet="topicCat" translator="codelist:gmd:MD_TopicCategoryCode" max="20"/>
  188. <item facet="inspireTheme" sortBy="value" sortOrder="asc" max="35"/>
  189. <item facet="inspireThemeWithAc" sortBy="value" sortOrder="asc" max="35"/>
  190. <item facet="inspireThemeURI" sortBy="value" sortOrder="asc" max="35"
  191. translator="term:http://geonetwork-opensource.org/inspire-theme"/>
  192. <item facet="keyword" max="15"/>
  193. <item facet="orgName" max="25"/>
  194. <item facet="createDateYear" sortBy="value" sortOrder="desc" max="40"/>
  195. <item facet="format" max="15" sortBy="value" sortOrder="asc"/>
  196. <item facet="spatialRepresentationType"
  197. translator="codelist:gmd:MD_SpatialRepresentationTypeCode"/>
  198. <item facet="maintenanceAndUpdateFrequency"
  199. translator="codelist:gmd:MD_MaintenanceFrequencyCode"/>
  200. <item facet="status" translator="codelist:gmd:MD_ProgressCode"/>
  201. <item facet="serviceType"/>
  202. <item facet="denominator" sortBy="numValue" sortOrder="desc"/>
  203. <item facet="resolution" sortBy="numValue" sortOrder="desc"/>
  204. <!--<item facet="metadataPOC" max="15"/>-->
  205. </summaryType>
  206. <summaryType name="subtemplates">
  207. <item facet="subTemplateType"/>
  208. <item facet="groupOwner" max="99" sortBy="value"
  209. translator="db:org.fao.geonet.repository.GroupRepository:findOne:int"/>
  210. </summaryType>
  211. <summaryType name="contact" format="DIMENSION">
  212. <item facet="orgNameTree" max="99"/>
  213. <item facet="groupOwner" max="99" sortBy="value"
  214. translator="db:org.fao.geonet.repository.GroupRepository:findOne:int"/>
  215. </summaryType>
  216. <summaryType name="titles">
  217. <item facet="title" sortOrder="desc" max="100"/>
  218. </summaryType>
  219. <summaryType name="results">
  220. <item facet="keyword" max="100"/>
  221. </summaryType>
  222. <summaryType name="results_with_summary">
  223. <item facet="keyword" max="15"/>
  224. <item facet="inspireTheme" sortBy="value" sortOrder="asc" max="35"/>
  225. <item facet="denominator" sortBy="value" sortOrder="asc" max="20"/>
  226. <item facet="spatialRepresentationType"
  227. translator="codelist:gmd:MD_SpatialRepresentationTypeCode"/>
  228. <item facet="orgName" max="15"/>
  229. <item facet="metadataPOC" max="15"/>
  230. <item facet="serviceType"/>
  231. <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
  232. <item facet="createDateYear" sortOrder="asc" max="40"/>
  233. </summaryType>
  234. <summaryType name="suggestions">
  235. <item facet="keyword"/>
  236. <item facet="title" sortOrder="desc" max="100"/>
  237. <item facet="inspireTheme" sortBy="value" sortOrder="asc"/>
  238. <item facet="denominator" sortBy="value" sortOrder="asc"/>
  239. <item facet="spatialRepresentationType"
  240. translator="codelist:gmd:MD_SpatialRepresentationTypeCode"/>
  241. <item facet="orgName" max="100"/>
  242. <item facet="metadataPOC"/>
  243. <item facet="serviceType"/>
  244. <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
  245. <item facet="createDateYear" sortOrder="asc"/>
  246. </summaryType>
  247. </summaryTypes>
  248.  
  249. </bean:beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement