[GeoNetwork-users] Adding a new filter in the main search page

Hi all,
which file should I modify to see, in the "Filter" section of the main search page, the list of each "Category" to which metadata belongs like in the "Contribute" section?

Bartolomeo Ventura, PhD
Eurac Research
Institute for Earth Observation
T +39 0471 055 374
F +39 0471 055 389
bartolomeo.ventura@anonymised.com<mailto:bartolomeo.ventura@anonymised.com>

Viale Druso 1
I-39100 Bolzano
www.eurac.edu<http://www.eurac.edu/&gt;

Hello Ventura,

On Tue, Feb 25, 2020 at 3:35 PM Ventura Bartolomeo <
bartolomeo.ventura@anonymised.com> wrote:

Hi all,
which file should I modify to see, in the "Filter" section of the main
search page, the list of each "Category" to which metadata belongs like in
the "Contribute" section?

You need to modify the file config-summary.xml [1] and add the category
facet to the details summary type that is the one used in the public search
result page.

    <summaryType name="details" format="DIMENSION">
      <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
      <item facet="mdActions"/>
<item facet="category" max="99" sortBy="value"
translator="
db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>

....

[1]
https://github.com/geonetwork/core-geonetwork/blob/38e357d37e670920163a30791545684028ab2245/web/src/main/webapp/WEB-INF/config-summary.xml#L136

Regards,
Juan Luis.

--

*Vriendelijke groeten / Kind regards,Juan Luis Rodríguez.
<http://www.geocat.net/&gt;Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664>Please consider the environment before printing
this email.*

Hi Juan Luis,
It worked like a charm!! Thanks a lot

Have a nice day

Bartolomeo

From: Juan Luis Rodríguez Ponce <juanluisrp@...444...>
Sent: Wednesday, February 26, 2020 09:41
To: Ventura Bartolomeo <bartolomeo.ventura@...1518...>
Cc: geonetwork-users@lists.sourceforge.net
Subject: Re: [GeoNetwork-users] Adding a new filter in the main search page

Hello Ventura,

On Tue, Feb 25, 2020 at 3:35 PM Ventura Bartolomeo <bartolomeo.ventura@...1518...<mailto:bartolomeo.ventura@…1518…>> wrote:
Hi all,
which file should I modify to see, in the "Filter" section of the main search page, the list of each "Category" to which metadata belongs like in the "Contribute" section?

You need to modify the file config-summary.xml [1] and add the category facet to the details summary type that is the one used in the public search result page.

    <summaryType name="details" format="DIMENSION">
      <item facet="type" translator="codelist:gmd:MD_ScopeCode"/>
      <item facet="mdActions"/>
   <item facet="category" max="99" sortBy="value"
        translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>

....

[1] https://github.com/geonetwork/core-geonetwork/blob/38e357d37e670920163a30791545684028ab2245/web/src/main/webapp/WEB-INF/config-summary.xml#L136

Regards,
Juan Luis.

--
Vriendelijke groeten / Kind regards,

Juan Luis Rodríguez.

[Image removed by sender.]<http://www.geocat.net/&gt;
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664<tel:+31318416664>

Please consider the environment before printing this email.

(attachments)

image001.jpg