SHARE
TWEET

Untitled

a guest Mar 15th, 2019 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.       <facet name="isPublishedToAll" indexKey="_isPublishedToAll" label="isPublishedToAll" />
  112.     <!--
  113.     Example configuration for hierarchical facet based on
  114.     the GeoNetwork region thesaurus or GEMET.
  115.  
  116.     Do not forget to add classifier configuration on config-spring-geonetwork.xml
  117.  
  118.     Then add facet in one summaryType having format="DIMENSION" attribute.
  119.     <facet name="region" label="regions"
  120.            indexKey="keyword"
  121.            classifier="regionKeywordClassifier"/>
  122.     <facet name="gemetKeyword" label="gemetKeywords"
  123.            indexKey="keyword"
  124.            classifier="gemetKeywordClassifier"/>
  125.          -->
  126.  
  127.     <facet name="maintenanceAndUpdateFrequency" indexKey="cl_maintenanceAndUpdateFrequency"
  128.            label="maintenanceAndUpdateFrequencies"/>
  129.     <facet name="mdActions" indexKey="_mdActions" label="mdActions"/>
  130.   </facets>
  131.  
  132.   <summaryTypes>
  133.     <summaryType name="details" format="DIMENSION">
  134.       <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
  135.       <!--  <item facet="mdActions"/> -->
  136.      <!-- <item facet="topicCat" translator="codelist:gmd:MD_TopicCategoryCode" max="20"/>
  137.       <item facet="inspireThemeURI" sortBy="value" sortOrder="asc" max="35"
  138.             translator="term:http://inspire.ec.europa.eu/theme"/> -->
  139.       <!--<item facet="inspireTheme" sortBy="value" sortOrder="asc" max="35"/>-->
  140.       <!--<item facet="inspireThemeWithAc" sortBy="value" sortOrder="asc" max="35"/>-->
  141.       <item facet="category" max="99" sortBy="value"
  142.             translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>
  143.  
  144.       <item facet="keyword" max="15"/>
  145.       <item facet="orgName" max="25"/>
  146.       <item facet="sourceCatalog"
  147.             translator="db:org.fao.geonet.repository.SourceRepository:findOneByUuid"/>
  148.       <item facet="createDateYear" sortBy="value" sortOrder="desc" max="40"/>
  149.       <item facet="format" max="15" sortBy="value" sortOrder="asc"/>
  150.       <item facet="spatialRepresentationType"
  151.             translator="codelist:gmd:MD_SpatialRepresentationTypeCode"/>
  152.       <item facet="maintenanceAndUpdateFrequency"
  153.             translator="codelist:gmd:MD_MaintenanceFrequencyCode"/>
  154.       <item facet="status" translator="codelist:gmd:MD_ProgressCode"/>
  155.       <item facet="serviceType"/>
  156.       <item facet="denominator" sortBy="numValue" sortOrder="desc"/>
  157.       <item facet="resolution" sortBy="numValue" sortOrder="desc"/>
  158.       <!--
  159.       <item facet="region"
  160.             translator="term:http://geonetwork-opensource.org/thesaurus/naturalearth-and-seavox"/>
  161.       <item facet="gemetKeyword"
  162.             translator="term:http://geonetwork-opensource.org/gemet"/>
  163.       -->
  164.     </summaryType>
  165.  
  166.     <summaryType name="manager" format="DIMENSION">
  167.      <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
  168.       <item facet="category" max="99" sortBy="value"
  169.             translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>
  170.       <item facet="mdStatus" max="10" sortBy="value"
  171.             translator="db:org.fao.geonet.repository.StatusValueRepository:findOne:int"/>
  172.       <item facet="sourceCatalog"
  173.             translator="db:org.fao.geonet.repository.SourceRepository:findOneByUuid"/>
  174.       <item facet="isValid" max="3" sortBy="value" translator="apploc:validStatus-"/>
  175.       <item facet="groupOwner" max="199" sortBy="value"
  176.             translator="db:org.fao.geonet.repository.GroupRepository:findOne:int"/>
  177.       <item facet="publishedForGroup" max="199" sortBy="value"
  178.             translator="db:org.fao.geonet.repository.GroupRepository:findOneByName"/>
  179.       <item facet="standard" max="15" sortBy="value"/>
  180.       <item facet="isHarvested" max="2" sortBy="value" translator="apploc:"/>
  181.       <item facet="metadataType" max="3" sortBy="value" translator="apploc:recordType-"/>
  182.         <item facet="isPublishedToAll" max="2" sortBy="value" translator="apploc:"/>
  183.     </summaryType>
  184.  
  185.     <!-- (deprecated) old-style configuration supporting only
  186.     flat facet. It's recommended to use format="DIMENSION" for facet.
  187.     See above. -->
  188.     <summaryType name="hits">
  189.       <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
  190.       <item facet="topicCat" translator="codelist:gmd:MD_TopicCategoryCode" max="20"/>
  191.       <item facet="category" max="99" sortBy="value"
  192.            translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>
  193.       <item facet="inspireTheme" sortBy="value" sortOrder="asc" max="35"/>
  194.       <item facet="inspireThemeWithAc" sortBy="value" sortOrder="asc" max="35"/>
  195.       <item facet="inspireThemeURI" sortBy="value" sortOrder="asc" max="35"
  196.             translator="term:http://inspire.ec.europa.eu/theme"/>
  197.       <item facet="keyword" max="15"/>
  198.       <item facet="orgName" max="25"/>
  199.       <item facet="createDateYear" sortBy="value" sortOrder="desc" max="40"/>
  200.       <item facet="format" max="15" sortBy="value" sortOrder="asc"/>
  201.       <item facet="spatialRepresentationType"
  202.             translator="codelist:gmd:MD_SpatialRepresentationTypeCode"/>
  203.       <item facet="maintenanceAndUpdateFrequency"
  204.             translator="codelist:gmd:MD_MaintenanceFrequencyCode"/>
  205.       <item facet="status" translator="codelist:gmd:MD_ProgressCode"/>
  206.       <item facet="serviceType"/>
  207.       <item facet="denominator" sortBy="numValue" sortOrder="desc"/>
  208.       <item facet="resolution" sortBy="numValue" sortOrder="desc"/>
  209.       <!--<item facet="metadataPOC" max="15"/>-->
  210.     </summaryType>
  211.     <summaryType name="subtemplates">
  212.       <item facet="subTemplateType"/>
  213.       <item facet="groupOwner" max="99" sortBy="value"
  214.             translator="db:org.fao.geonet.repository.GroupRepository:findOne:int"/>
  215.       <item facet="isValid" max="3" sortBy="value" translator="apploc:validStatus-"/>
  216.     </summaryType>
  217.     <summaryType name="contact" format="DIMENSION">
  218.       <item facet="orgNameTree" max="99"/>
  219.       <item facet="groupOwner" max="99" sortBy="value"
  220.             translator="db:org.fao.geonet.repository.GroupRepository:findOne:int"/>
  221.       <item facet="isValid" max="3" sortBy="value" translator="apploc:validStatus-"/>
  222.     </summaryType>
  223.     <summaryType name="titles">
  224.       <item facet="title" sortOrder="desc" max="100"/>
  225.     </summaryType>
  226.     <summaryType name="results">
  227.       <item facet="keyword" max="100"/>
  228.     </summaryType>
  229.     <summaryType name="results_with_summary">
  230.       <item facet="keyword" max="15"/>
  231.       <item facet="inspireTheme" sortBy="value" sortOrder="asc" max="35"/>
  232.       <item facet="denominator" sortBy="value" sortOrder="asc" max="20"/>
  233.       <item facet="spatialRepresentationType"
  234.             translator="codelist:gmd:MD_SpatialRepresentationTypeCode"/>
  235.       <item facet="orgName" max="15"/>
  236.       <item facet="metadataPOC" max="15"/>
  237.       <item facet="serviceType"/>
  238.       <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
  239.       <item facet="createDateYear" sortOrder="asc" max="40"/>
  240.     </summaryType>
  241.     <summaryType name="suggestions">
  242.       <item facet="keyword"/>
  243.       <item facet="title" sortOrder="desc" max="100"/>
  244.       <item facet="inspireTheme" sortBy="value" sortOrder="asc"/>
  245.       <item facet="denominator" sortBy="value" sortOrder="asc"/>
  246.       <item facet="spatialRepresentationType"
  247.             translator="codelist:gmd:MD_SpatialRepresentationTypeCode"/>
  248.       <item facet="orgName" max="100"/>
  249.       <item facet="metadataPOC"/>
  250.       <item facet="serviceType"/>
  251.       <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
  252.       <item facet="createDateYear" sortOrder="asc"/>
  253.     </summaryType>
  254.   </summaryTypes>
  255.  
  256. </bean:beans>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top