Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="UTF-8"?>
- <!--
- ~ Copyright (C) 2001-2016 Food and Agriculture Organization of the
- ~ United Nations (FAO-UN), United Nations World Food Programme (WFP)
- ~ and United Nations Environment Programme (UNEP)
- ~
- ~ This program is free software; you can redistribute it and/or modify
- ~ it under the terms of the GNU General Public License as published by
- ~ the Free Software Foundation; either version 2 of the License, or (at
- ~ your option) any later version.
- ~
- ~ This program is distributed in the hope that it will be useful, but
- ~ WITHOUT ANY WARRANTY; without even the implied warranty of
- ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- ~ General Public License for more details.
- ~
- ~ You should have received a copy of the GNU General Public License
- ~ along with this program; if not, write to the Free Software
- ~ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
- ~
- ~ Contact: Jeroen Ticheler - FAO - Viale delle Terme di Caracalla 2,
- ~ Rome - Italy. email: geonetwork@osgeo.org
- -->
- <bean:beans xmlns:bean="http://www.springframework.org/schema/beans"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
- default-lazy-init="true"
- xmlns="http://www.fao.org/geonetwork/spring"
- xsi:schemaLocation="
- http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
- http://www.fao.org/geonetwork/spring http://www.fao.org/geonetwork/spring/gn-spring.xsd
- "
- >
- <!--
- Configuration of the taxonomy index used for faceting and
- formatting/building facet summaries
- Each facet to be indexed is defined in the facets element. The facets element
- lists the facets to index and how they should be indexed using attributes on facet elements as follows:
- * name: the name of the facet
- * indexKey: the name of the indexing field to be used for the facet
- * label: the label to use for the facet in returned summaries
- * classifier: (optional) a reference to a spring bean that should be used to
- determine facet values for the indexing field.
- The bean must implement the org.fao.kernel.search.classifier.Classifier interface
- Defaults to a classifier which uses the value of the field to be indexed
- When a facet definitionis modified or added, the index MUST be rebuilt.
- How facet summaries should be built and formatted for each summary type is defined
- in the summaryTypes element. The summaryTypes element contains a number of summary type elements each
- of which define a facet summary that can be configured for a service. Each summary type
- element contains a number of item elements defining facets to be returned and how they
- should be formatted as follows:
- * facet: the name of a facet defined above
- * (optional) sortBy: the ordering for the facet. Defaults to by count.
- * (optional) sortOrder: asc or desc. Defaults is descendant.
- * (optional) max: the number of values to be returned for the facet. Defaults to 10.
- * (optional) depth: the depth to which hierarchical facets should be summarised. Defaults to 1.
- * (optional) format: the format to be used for generating facet summary elements. Defaults to
- 'FACET_NAME'. Can also be 'DIMENSION', which uses a top level
- dimension tag and category tags for sub-categories which is more suitable for hierarchical facets.
- * (optional) translator: Define a DB translator to retrieve label from description
- tables (eg. categoriesdes) or codelist translator to retrieve label from schema
- codelists files.
- eg. for category
- <item dimension="category" plural="categories" indexKey="_cat" max="45"
- translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>
- or for group
- <item dimension="groupOwner" plural="groupOwners" indexKey="_groupOwner"
- max="99" sortBy="value" translator="db:org.fao.geonet.repository.GroupRepository:findOne:int"/>
- -->
- <facets>
- <facet name="keyword" indexKey="keyword" label="keywords" localized="true"/>
- <facet name="topicCat" indexKey="topicCat" label="topicCats" localized="true"/>
- <facet name="category" indexKey="_cat" label="categories" localized="true"/>
- <facet name="inspireTheme" indexKey="inspiretheme" label="inspireThemes"/>
- <facet name="inspireThemeWithAc" indexKey="inspirethemewithac" label="inspireThemesWithAc"/>
- <facet name="inspireThemeURI" indexKey="inspirethemeuri" label="inspireThemesURI"/>
- <facet name="denominator" indexKey="denominator" label="denominators"/>
- <facet name="resolution" indexKey="resolution" label="resolutions"/>
- <facet name="spatialRepresentationType" indexKey="cl_spatialRepresentationType"
- label="spatialRepresentationTypes"/>
- <facet name="orgName" indexKey="orgName" label="orgNames" localized="true"/>
- <facet name="orgNameTree" indexKey="orgNameTree" label="orgNamesTree"
- classifier="slashSplitClassifier"/>
- <facet name="metadataPOC" indexKey="metadataPOC" label="metadataPOCs"/>
- <facet name="serviceType" indexKey="serviceType" label="serviceTypes"/>
- <facet name="type" indexKey="type" label="types"/>
- <facet name="createDateYear" indexKey="createDateYear" label="createDateYears"/>
- <facet name="format" indexKey="format" label="formats"/>
- <facet name="title" indexKey="title" label="titles"/>
- <facet name="metadataType" indexKey="_isTemplate" label="metadataTypes"/>
- <facet name="isValid" indexKey="_valid" label="isValid"/>
- <facet name="isHarvested" indexKey="_isHarvested" label="isHarvested"/>
- <facet name="mdStatus" indexKey="_status" label="mdStatus"/>
- <facet name="status" indexKey="cl_status" label="status"/>
- <facet name="sourceCatalog" indexKey="_source" label="sourceCatalog"/>
- <facet name="standard" indexKey="_schema" label="standards"/>
- <facet name="subTemplateType" indexKey="_root" label="subTemplateTypes"/>
- <facet name="groupOwner" indexKey="_groupOwner" label="groupOwners"/>
- <facet name="publishedForGroup" indexKey="_groupPublished" label="publishedForGroup"/>
- <facet name="isPublishedToAll" indexKey="_isPublishedToAll" label="isPublishedToAll" />
- <!--
- Example configuration for hierarchical facet based on
- the GeoNetwork region thesaurus or GEMET.
- Do not forget to add classifier configuration on config-spring-geonetwork.xml
- Then add facet in one summaryType having format="DIMENSION" attribute.
- <facet name="region" label="regions"
- indexKey="keyword"
- classifier="regionKeywordClassifier"/>
- <facet name="gemetKeyword" label="gemetKeywords"
- indexKey="keyword"
- classifier="gemetKeywordClassifier"/>
- -->
- <facet name="maintenanceAndUpdateFrequency" indexKey="cl_maintenanceAndUpdateFrequency"
- label="maintenanceAndUpdateFrequencies"/>
- <facet name="mdActions" indexKey="_mdActions" label="mdActions"/>
- </facets>
- <summaryTypes>
- <summaryType name="details" format="DIMENSION">
- <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
- <!-- <item facet="mdActions"/> -->
- <!-- <item facet="topicCat" translator="codelist:gmd:MD_TopicCategoryCode" max="20"/>
- <item facet="inspireThemeURI" sortBy="value" sortOrder="asc" max="35"
- translator="term:http://inspire.ec.europa.eu/theme"/> -->
- <!--<item facet="inspireTheme" sortBy="value" sortOrder="asc" max="35"/>-->
- <!--<item facet="inspireThemeWithAc" sortBy="value" sortOrder="asc" max="35"/>-->
- <item facet="category" max="99" sortBy="value"
- translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>
- <item facet="keyword" max="15"/>
- <item facet="orgName" max="25"/>
- <item facet="sourceCatalog"
- translator="db:org.fao.geonet.repository.SourceRepository:findOneByUuid"/>
- <item facet="createDateYear" sortBy="value" sortOrder="desc" max="40"/>
- <item facet="format" max="15" sortBy="value" sortOrder="asc"/>
- <item facet="spatialRepresentationType"
- translator="codelist:gmd:MD_SpatialRepresentationTypeCode"/>
- <item facet="maintenanceAndUpdateFrequency"
- translator="codelist:gmd:MD_MaintenanceFrequencyCode"/>
- <item facet="status" translator="codelist:gmd:MD_ProgressCode"/>
- <item facet="serviceType"/>
- <item facet="denominator" sortBy="numValue" sortOrder="desc"/>
- <item facet="resolution" sortBy="numValue" sortOrder="desc"/>
- <!--
- <item facet="region"
- translator="term:http://geonetwork-opensource.org/thesaurus/naturalearth-and-seavox"/>
- <item facet="gemetKeyword"
- translator="term:http://geonetwork-opensource.org/gemet"/>
- -->
- </summaryType>
- <summaryType name="manager" format="DIMENSION">
- <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
- <item facet="category" max="99" sortBy="value"
- translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>
- <item facet="mdStatus" max="10" sortBy="value"
- translator="db:org.fao.geonet.repository.StatusValueRepository:findOne:int"/>
- <item facet="sourceCatalog"
- translator="db:org.fao.geonet.repository.SourceRepository:findOneByUuid"/>
- <item facet="isValid" max="3" sortBy="value" translator="apploc:validStatus-"/>
- <item facet="groupOwner" max="199" sortBy="value"
- translator="db:org.fao.geonet.repository.GroupRepository:findOne:int"/>
- <item facet="publishedForGroup" max="199" sortBy="value"
- translator="db:org.fao.geonet.repository.GroupRepository:findOneByName"/>
- <item facet="standard" max="15" sortBy="value"/>
- <item facet="isHarvested" max="2" sortBy="value" translator="apploc:"/>
- <item facet="metadataType" max="3" sortBy="value" translator="apploc:recordType-"/>
- <item facet="isPublishedToAll" max="2" sortBy="value" translator="apploc:"/>
- </summaryType>
- <!-- (deprecated) old-style configuration supporting only
- flat facet. It's recommended to use format="DIMENSION" for facet.
- See above. -->
- <summaryType name="hits">
- <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
- <item facet="topicCat" translator="codelist:gmd:MD_TopicCategoryCode" max="20"/>
- <item facet="category" max="99" sortBy="value"
- translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>
- <item facet="inspireTheme" sortBy="value" sortOrder="asc" max="35"/>
- <item facet="inspireThemeWithAc" sortBy="value" sortOrder="asc" max="35"/>
- <item facet="inspireThemeURI" sortBy="value" sortOrder="asc" max="35"
- translator="term:http://inspire.ec.europa.eu/theme"/>
- <item facet="keyword" max="15"/>
- <item facet="orgName" max="25"/>
- <item facet="createDateYear" sortBy="value" sortOrder="desc" max="40"/>
- <item facet="format" max="15" sortBy="value" sortOrder="asc"/>
- <item facet="spatialRepresentationType"
- translator="codelist:gmd:MD_SpatialRepresentationTypeCode"/>
- <item facet="maintenanceAndUpdateFrequency"
- translator="codelist:gmd:MD_MaintenanceFrequencyCode"/>
- <item facet="status" translator="codelist:gmd:MD_ProgressCode"/>
- <item facet="serviceType"/>
- <item facet="denominator" sortBy="numValue" sortOrder="desc"/>
- <item facet="resolution" sortBy="numValue" sortOrder="desc"/>
- <!--<item facet="metadataPOC" max="15"/>-->
- </summaryType>
- <summaryType name="subtemplates">
- <item facet="subTemplateType"/>
- <item facet="groupOwner" max="99" sortBy="value"
- translator="db:org.fao.geonet.repository.GroupRepository:findOne:int"/>
- <item facet="isValid" max="3" sortBy="value" translator="apploc:validStatus-"/>
- </summaryType>
- <summaryType name="contact" format="DIMENSION">
- <item facet="orgNameTree" max="99"/>
- <item facet="groupOwner" max="99" sortBy="value"
- translator="db:org.fao.geonet.repository.GroupRepository:findOne:int"/>
- <item facet="isValid" max="3" sortBy="value" translator="apploc:validStatus-"/>
- </summaryType>
- <summaryType name="titles">
- <item facet="title" sortOrder="desc" max="100"/>
- </summaryType>
- <summaryType name="results">
- <item facet="keyword" max="100"/>
- </summaryType>
- <summaryType name="results_with_summary">
- <item facet="keyword" max="15"/>
- <item facet="inspireTheme" sortBy="value" sortOrder="asc" max="35"/>
- <item facet="denominator" sortBy="value" sortOrder="asc" max="20"/>
- <item facet="spatialRepresentationType"
- translator="codelist:gmd:MD_SpatialRepresentationTypeCode"/>
- <item facet="orgName" max="15"/>
- <item facet="metadataPOC" max="15"/>
- <item facet="serviceType"/>
- <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
- <item facet="createDateYear" sortOrder="asc" max="40"/>
- </summaryType>
- <summaryType name="suggestions">
- <item facet="keyword"/>
- <item facet="title" sortOrder="desc" max="100"/>
- <item facet="inspireTheme" sortBy="value" sortOrder="asc"/>
- <item facet="denominator" sortBy="value" sortOrder="asc"/>
- <item facet="spatialRepresentationType"
- translator="codelist:gmd:MD_SpatialRepresentationTypeCode"/>
- <item facet="orgName" max="100"/>
- <item facet="metadataPOC"/>
- <item facet="serviceType"/>
- <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
- <item facet="createDateYear" sortOrder="asc"/>
- </summaryType>
- </summaryTypes>
- </bean:beans>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement