[GeoNetwork-users] Browse by in GN3.6

Hi,

I'm moving my GN3.2 in GN3.6. In 3.2 version thanks to the inputs from Josè I was able to change Inspire categories and Topic categories into GN Categories.
I tried to follow the same steps in GN3.6, but the code in the home.html is a bit different and I'm struggling to have the same results.

Could you give me some hints?

Eugenio

Hello,

I copy/paste the code posted here
http://osgeo-org.1560.x6.nabble.com/Browse-by-td5220436.html and it
works fine on GN 3.7. Not sure what it not working for you.

And to solve the problem of the button "categories" that you want
activated automatically you must comment out the line
data-ng-show='browse === "categories"'.

Nicolas

On 20/02/19 11:46, Eugenio Trumpy wrote:

Hi,

I'm moving my GN3.2 in GN3.6. In 3.2 version thanks to the inputs from Josè I was able to change Inspire categories and Topic categories into GN Categories.
I tried to follow the same steps in GN3.6, but the code in the home.html is a bit different and I'm struggling to have the same results.

Could you give me some hints?

Eugenio

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
Nicolas de Ville
Belgian Marine Data Centre (BMDC)
OD-Nature, Royal Belgian Institute of Natural Sciences
02/627.42.79
www.bmdc.be
geonetwork.bmdc.be

Hi Ndeville,

actually I don't find the part of the code you highlighted:

data-ng-show='browse === "categories"

in the home.html code.
Here I paste my home.html that is the original version:

https://pastebin.com/RE209wRv

Maybe you meant to uncomment from line 79 to 81 but even to change
topicCats and topic in categories?
Am I right? In case of yes the line 82 should be commented?

Eugenio

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-f3860293.html

Hi,

thank you for your prompt answer.
I remember very well my post and the answer from Josè Garcia.
I was in GN 3.2, now I'm trying it in GN 3.6 and seems that something could be different in the code.

I followed again the https://pastebin.com/sKfKS4PH codes: I modified config-summary.xml,
I have a facet named "category" and item "category" both in details and manager 'summary type'
and even in 'hits'.

My home.html is here: https://pastebin.com/sTVbCNzR
This is very similar to your home, but I still have the problem.

Where am I wrong?

Eugenio

________________________________
Da: Nicolas De Ville de Goyet <ndeville@anonymised.com>
Inviato: mercoledì 20 febbraio 2019 15:35
A: frippe12573
Oggetto: Re: [GeoNetwork-users] Browse by in GN3.6

Hi,

If your are still willing to change the Inspire and topic categories by GN categories,

- adapt the code like here https://pastebin.com/sKfKS4PH to have the GN category "Browse by" button

- remove all the parts that are linked to Inspire and Topic

- remove the line data-ng-show='browse === "categories"

Attached is my current version (with keywords, not categories).

But I really followed what was suggested by Jose Garcia on your previous post to get things working

Nicolas

On 20/02/19 14:50, frippe12573 wrote:

Hi Ndeville,

actually I don't find the part of the code you highlighted:

data-ng-show='browse === "categories"

in the home.html code.
Here I paste my home.html that is the original version:

https://pastebin.com/RE209wRv

Maybe you meant to uncomment from line 79 to 81 but even to change
topicCats and topic in categories?
Am I right? In case of yes the line 82 should be commented?

Eugenio

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-f3860293.html

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
Nicolas de Ville
Belgian Marine Data Centre (BMDC)
OD-Nature, Royal Belgian Institute of Natural Sciences
02/627.42.79
www.bmdc.be<http://www.bmdc.be>
geonetwork.bmdc.be

Hi,

I tried to comment the lines you highlighted, now I see the different topic categories instead gn categories.
Following the hints from José he gave me last year, I even tried this:
http://localhost:8080/geonetwork/srv/eng/q?_content_type=json&fast=index

The latter doesn't show the categories. It seems that the facet doesn't work. Should the category facet be activated in some way? Should I modify some other config file?

Cheers,
Eugenio
________________________________
Da: Nicolas De Ville de Goyet <ndeville@anonymised.com>
Inviato: mercoledì 20 febbraio 2019 16:47:45
A: Eugenio Trumpy
Oggetto: Re: R: [GeoNetwork-users] Browse by in GN3.6

Remove the part that you comment on line 102. You should not comment elements inside < > bracket as the html is not valid anymore (I was not clear enough on that).

Use an xml editor to have color code to help you!

also the span element from line 66 to 83 is useless

On 20/02/19 16:35, Eugenio Trumpy wrote:
Hi,

thank you for your prompt answer.
I remember very well my post and the answer from Josè Garcia.
I was in GN 3.2, now I'm trying it in GN 3.6 and seems that something could be different in the code.

I followed again the https://pastebin.com/sKfKS4PH codes: I modified config-summary.xml,
I have a facet named "category" and item "category" both in details and manager 'summary type'
and even in 'hits'.

My home.html is here: https://pastebin.com/sTVbCNzR
This is very similar to your home, but I still have the problem.

Where am I wrong?

Eugenio

________________________________
Da: Nicolas De Ville de Goyet <ndeville@anonymised.com><mailto:ndeville@anonymised.com…>
Inviato: mercoledì 20 febbraio 2019 15:35
A: frippe12573
Oggetto: Re: [GeoNetwork-users] Browse by in GN3.6

Hi,

If your are still willing to change the Inspire and topic categories by GN categories,

- adapt the code like here https://pastebin.com/sKfKS4PH to have the GN category "Browse by" button

- remove all the parts that are linked to Inspire and Topic

- remove the line data-ng-show='browse === "categories"

Attached is my current version (with keywords, not categories).

But I really followed what was suggested by Jose Garcia on your previous post to get things working

Nicolas

On 20/02/19 14:50, frippe12573 wrote:

Hi Ndeville,

actually I don't find the part of the code you highlighted:

data-ng-show='browse === "categories"

in the home.html code.
Here I paste my home.html that is the original version:

https://pastebin.com/RE209wRv

Maybe you meant to uncomment from line 79 to 81 but even to change
topicCats and topic in categories?
Am I right? In case of yes the line 82 should be commented?

Eugenio

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-f3860293.html

_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net<mailto:GeoNetwork-users@anonymised.comforge.net>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
Nicolas de Ville
Belgian Marine Data Centre (BMDC)
OD-Nature, Royal Belgian Institute of Natural Sciences
02/627.42.79
www.bmdc.be<http://www.bmdc.be>
geonetwork.bmdc.be

--
Nicolas de Ville
Belgian Marine Data Centre (BMDC)
OD-Nature, Royal Belgian Institute of Natural Sciences
02/627.42.79
www.bmdc.be<http://www.bmdc.be>
geonetwork.bmdc.be

Dear all,

I have to come again on this topic because I still have problems with the
GN3.6.0.
Following the suggestions I had in this thread I am eventually able to see
the list of my categories
by using:
http://localhost:8080/geonetwork/srv/eng/q?_content_type=json&fast=index

so that I presume the facet works fine.
However, I'm not able to see the cataegories as filter in the search and
contributes pages,
as well as to see the radio button to switch the 'browse by' in the home
page.

Here my config-summary.xls https://pastebin.com/VskdcVm4
and here my home.html https://pastebin.com/vwTHSq4s

Any suggestions are very welcome!
Thank you in advance,

Eugenio

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-f3860293.html

Well,

I have just realised that changing the language, and using 'English' I can
both see
the categories on the home page and the category as filter in search and
contribute pages.

Why it does not work in another languages?

Another question:
in GN3.2 the icon were bigger and blue while now are grey and smaller, could
it depend by some css class?

Eugenio

--
Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-f3860293.html