Browse by ......

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

Browse by ......

hoddih
Hi

Browse by

I'm working with GN3 and want to change the frontpage that instead for "Browse by topics" wil be "Browse by Categories".  And then the categories that I have put my data into comes up. Categories

It must be possible to change that but I can't find it.
Reply | Threaded
Open this post in threaded view
|

Re: Browse by ......

Nils Koldrack
Hello everyone,
I have exactly the same "problem" and would be nice to read about a solution or a useful idea. Does anyone can help us?

Nils
Reply | Threaded
Open this post in threaded view
|

Re: Browse by ......

hoddih
Someone please
Reply | Threaded
Open this post in threaded view
|

Re: Browse by ......

Florent gravin-2
Hi,

Try to uncomment this line maybe
https://github.com/geonetwork/core-geonetwork/blob/3.0.x/web-ui/src/main/resources/catalog/views/default/templates/home.html#L50

Be sure to be in debug mode to see changes occur

On Tue, Oct 13, 2015 at 12:41 PM, hoddih <[hidden email]> wrote:

> Someone please
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Browse-by-tp5220436p5229679.html
> Sent from the GeoNetwork users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> GeoNetwork-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>



--
*camptocamp*
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

*Florent Gravin*
0479444492
------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Browse by ......

hoddih
Hi Florent and thanks for your advice

Unfortunately that didn't do the job.  Nothing happened :-(
Reply | Threaded
Open this post in threaded view
|

Re: Browse by ......

Florent gravin-2
Well,

You must be sure first that your change has been loaded in your browser.
If you are in prod mode, and minified javascript, then the code is not
updated.

You need to remove the wro4j cache, do you know about that ?

On Tue, Oct 13, 2015 at 2:05 PM, hoddih <[hidden email]> wrote:

> Hi Florent and thanks for your advice
>
> Unfortunately that didn't do the job.  Nothing happened :-(
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.x6.nabble.com/Browse-by-tp5220436p5229710.html
> Sent from the GeoNetwork users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------------
> _______________________________________________
> GeoNetwork-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at
> http://sourceforge.net/projects/geonetwork
>



--
*camptocamp*
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

*Florent Gravin*
0479444492
------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Browse by ......

frippe12573
This post was updated on .
In reply to this post by Florent gravin-2
Hi,

I'm trying the same thing (i.e., sostitute 'Browse by INSPIRE theme' with
the GN Category).
I read this email thread, but I currently solve the problem.
I'm using GN3.2.1 and following the suggestion from Florent Gravin I
modified the file:

/var/lib/tomcat7/webapps/geonetwork/catalog/views/default/templates/home.html

Actually the L50 was not commented, but in the same place I modified the
file as follow:

/var/lib/tomcat7/webapps/geonetwork/catalog/views/default/templates/home.html                    

       <label data-ng-show="searchInfo.facet['topicCats'].length > 0">
          <input type="radio" name="browse" value="topics"
data-ng-model="browse"/>
          topics
        </label>
       <label data-ng-show="searchInfo.facet['category'].length > 0">
          <input type="radio" name="browse" value="category"
data-ng-model="browse"/>
          categories
        </label>
     
      <label
        data-ng-show="searchInfo.facet['inspireThemes'].length > 0 &&
searchInfo.facet['topicCats'].length == 0">inspireThemes</label>
      <label
        data-ng-show="searchInfo.facet['topicCats'].length > 0 &&
searchInfo.facet['inspireThemes'].length == 0">topics</label>
      <label
        data-ng-show="searchInfo.facet['category'].length > 0 &&
searchInfo.facet['category'].length == 0">categories</label>


Then I reboot tomcat.
Unfortunately nothing changed in the home page.
Am I miss something important?

Thank you

Eugenio



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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
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
Reply | Threaded
Open this post in threaded view
|

Re: Browse by category

frippe12573
Hi everyone,

I would like to raise again the problem I have on changing in the home page
the option available with the radio button 'Browse by'. By default it is
available INSPIRE categories and Topic categories.
I want to change INSPIRE categories into Geonetwork Categories including
those created by me.
I googled with any reasonable results. The only item is this thread, however
without pointing out any solution.
I modified a bit the file:

/var/lib/tomcat7/webapps/geonetwork/catalog/views/default/templates/home.html  

as follow:

<div class="row" data-ng-show="searchInfo.count > 0">
    <div class="col-sm-8" data-ng-show="browse !== ''">
      browseBy
       0 && searchInfo.facet['topicCats'].length > 0">
        <label data-ng-show="searchInfo.facet['inspireThemes'].length > 0">
          <input type="radio" name="browse" value="inspire"
data-ng-model="browse"/>
          inspireThemes
        </label>
       
      <label data-ng-show="searchInfo.facet['categories'].length > 0">
          <input type="radio" name="browse" value="cat"
data-ng-model="browse"/>
          categories
        </label>
     
<label
        data-ng-show="searchInfo.facet['inspireThemes'].length > 0 &&
searchInfo.facet['topicCats'].length == 0">inspireThemes</label>
     
     <label
        data-ng-show="searchInfo.facet['categories'].length > 0 &&
searchInfo.facet['inspireTheme'].length == 0">categories</label>
      <div class="row">
       
     
            <div class="badge-icon">
               
               
                  //
               
               
            </div>
            <div class="badge-text">
               
                {{facet['@label']}}<br>
                {{facet['@count']}}
               
            </div>
       
     
            <div class="badge-icon col-xs-3">
               
               
                   //
               
               
            </div>
            <div class="badge-text col-xs-9">
               
                {{facet['@label']}}<br>
                {{facet['@count']}}
               
            </div>
       
</code>

Any hints are very welcome.


Eugenio



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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Browse by category

Jose Garcia
Hi

I think the issue is that the current search summary doesn't return a facet
for the GeoNetwork categories, you'll need to update

https://github.com/geonetwork/core-geonetwork/blob/3.4.x/web/src/main/webapp/WEB-INF/config-summary.xml#L133

to add the category facet to that summary:

          <item dimension="category" plural="categories" indexKey="_cat"
max="45"

translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>


After that restart GeoNetwork (maybe is required also a reindex, but not
sure). You can check in the browser the following request that should be
the one send by the panel:

http://SERVER/geonetwork/srv/eng/qi?_content_type=json&summaryOnly=true



You should get a json with that has an element like this:

...
"categories":   [

]
...


Then you can use in your code the categories element to use it in the panel.

Regards,
Jose García


On Tue, Jun 19, 2018 at 4:39 PM, frippe12573 <[hidden email]>
wrote:

> Hi everyone,
>
> I would like to raise again the problem I have on changing in the home page
> the option available with the radio button 'Browse by'. By default it is
> available INSPIRE categories and Topic categories.
> I want to change INSPIRE categories into Geonetwork Categories including
> those created by me.
> I googled with any reasonable results. The only item is this thread,
> however
> without pointing out any solution.
> I modified a bit the file:
>
> /var/lib/tomcat7/webapps/geonetwork/catalog/views/default/templates/home.html
>
>
> as follow:
>
> <div class="row" data-ng-show="searchInfo.count > 0">
>     <div class="col-sm-8" data-ng-show="browse !== ''">
>       browseBy
>        0 && searchInfo.facet['topicCats'].length > 0">
>         <label data-ng-show="searchInfo.facet['inspireThemes'].length >
> 0">
>           <input type="radio" name="browse" value="inspire"
> data-ng-model="browse"/>
>           inspireThemes
>         </label>
>
>       <label data-ng-show="searchInfo.facet['categories'].length > 0">
>           <input type="radio" name="browse" value="cat"
> data-ng-model="browse"/>
>           categories
>         </label>
>
> <label
>         data-ng-show="searchInfo.facet['inspireThemes'].length > 0 &&
> searchInfo.facet['topicCats'].length == 0">inspireThemes</label>
>
>      <label
>         data-ng-show="searchInfo.facet['categories'].length > 0 &&
> searchInfo.facet['inspireTheme'].length == 0">categories</label>
>       <div class="row">
>
>
>             <div class="badge-icon">
>
>
>                   //
>
>
>             </div>
>             <div class="badge-text">
>
>                 {{facet['@label']}}<br>
>                 {{facet['@count']}}
>
>             </div>
>
>
>             <div class="badge-icon col-xs-3">
>
>
>                    //
>
>
>             </div>
>             <div class="badge-text col-xs-9">
>
>                 {{facet['@label']}}<br>
>                 {{facet['@count']}}
>
>             </div>
>
> </code>
>
> Any hints are very welcome.
>
>
> Eugenio
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-
> f3860293.html
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> GeoNetwork-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at http://sourceforge.net/
> projects/geonetwork
>



--













*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/>Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv>
<https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts>Please consider the
environment before printing this email.*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Browse by category

frippe12573
Dear Jose,


thank you very much for your input!

In my config-summary.xml there was already the facet 'category' since I added it to have in the search page the filter by category, and it works.


However, at the level  <summaryType name="details" format="DIMENSION">


I have added the line you suggested:

<item dimension="category" plural="categories" indexKey="_cat" max="45"  translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>


which is a bit different (see after item once I have dimension, once facet) from what I had already:

<item facet="category" max="99" sortBy="value" translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>

After the addiction of this line I restarted tomcat, but I had problems (fatal errors) and geonetwork didn't restart. Once I removed the line It started again.

I checked also the url you suggested me, which it gave me the json as you announced, without the categories statements.

Could you give me some more hints?

Best

Eugenio



________________________________
Da: Jose Garcia <[hidden email]>
Inviato: mercoledì 20 giugno 2018 10:16
A: frippe12573
Cc: [hidden email]
Oggetto: Re: [GeoNetwork-users] Browse by category

Hi

I think the issue is that the current search summary doesn't return a facet
for the GeoNetwork categories, you'll need to update

https://github.com/geonetwork/core-geonetwork/blob/3.4.x/web/src/main/webapp/WEB-INF/config-summary.xml#L133
[https://avatars3.githubusercontent.com/u/1842442?s=400&v=4]<https://github.com/geonetwork/core-geonetwork/blob/3.4.x/web/src/main/webapp/WEB-INF/config-summary.xml#L133>

geonetwork/core-geonetwork<https://github.com/geonetwork/core-geonetwork/blob/3.4.x/web/src/main/webapp/WEB-INF/config-summary.xml#L133>
github.com
core-geonetwork - GeoNetwork repository




to add the category facet to that summary:

          <item dimension="category" plural="categories" indexKey="_cat"
max="45"

translator="db:org.fao.geonet.repository.MetadataCategoryRepository:findOneByName"/>


After that restart GeoNetwork (maybe is required also a reindex, but not
sure). You can check in the browser the following request that should be
the one send by the panel:

http://SERVER/geonetwork/srv/eng/qi?_content_type=json&summaryOnly=true



You should get a json with that has an element like this:

...
"categories":   [

]
...


Then you can use in your code the categories element to use it in the panel.

Regards,
Jose García


On Tue, Jun 19, 2018 at 4:39 PM, frippe12573 <[hidden email]>
wrote:

> Hi everyone,
>
> I would like to raise again the problem I have on changing in the home page
> the option available with the radio button 'Browse by'. By default it is
> available INSPIRE categories and Topic categories.
> I want to change INSPIRE categories into Geonetwork Categories including
> those created by me.
> I googled with any reasonable results. The only item is this thread,
> however
> without pointing out any solution.
> I modified a bit the file:
>
> /var/lib/tomcat7/webapps/geonetwork/catalog/views/default/templates/home.html
>
>
> as follow:
>
> <div class="row" data-ng-show="searchInfo.count > 0">
>     <div class="col-sm-8" data-ng-show="browse !== ''">
>       browseBy
>        0 && searchInfo.facet['topicCats'].length > 0">
>         <label data-ng-show="searchInfo.facet['inspireThemes'].length >
> 0">
>           <input type="radio" name="browse" value="inspire"
> data-ng-model="browse"/>
>           inspireThemes
>         </label>
>
>       <label data-ng-show="searchInfo.facet['categories'].length > 0">
>           <input type="radio" name="browse" value="cat"
> data-ng-model="browse"/>
>           categories
>         </label>
>
> <label
>         data-ng-show="searchInfo.facet['inspireThemes'].length > 0 &&
> searchInfo.facet['topicCats'].length == 0">inspireThemes</label>
>
>      <label
>         data-ng-show="searchInfo.facet['categories'].length > 0 &&
> searchInfo.facet['inspireTheme'].length == 0">categories</label>
>       <div class="row">
>
>
>             <div class="badge-icon">
>
>
>                   //
>
>
>             </div>
>             <div class="badge-text">
>
>                 {{facet['@label']}}<br>
>                 {{facet['@count']}}
>
>             </div>
>
>
>             <div class="badge-icon col-xs-3">
>
>
>                    //
>
>
>             </div>
>             <div class="badge-text col-xs-9">
>
>                 {{facet['@label']}}<br>
>                 {{facet['@count']}}
>
>             </div>
>
> </code>
>
> Any hints are very welcome.
>
>
> Eugenio
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-
> f3860293.html
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> GeoNetwork-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at http://sourceforge.net/
> projects/geonetwork
>



--













*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/>Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv>
<https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts>Please consider the
environment before printing this email.*

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Browse by category

frippe12573
Dear Jose and all,

unfortunately I'm not yet able to change INSPIRE themes and topic categories
with Categories from the 'Browse by' in the home page.
As I said I'm using GN 3.2.1, and  here <https://pastebin.com/smbezkPG>  the
code I modified to such aim in
/var/lib/tomcat7/webapps/geonetwork/catalog/views/default/templates/home.html
from line 41 to 98;
and  here <https://pastebin.com/gFhfTbgV>   the code modified in
/var/lib/tomcat7/webapps/geonetwork/WEB-INF/config-summary.xml at line 33

Could anyone help me?
Any hint is very appreciated!

Eugenio




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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Browse by category

Jose Garcia
Hi

I haven't try the changes, but I see this:

   <label data-ng-show="searchInfo.facet['category'].length > 0">

From config-summary.xml:

<facet name="category" indexKey="_cat" label="categories" localized="true"/>

I think you need to use searchInfo.facet['categories']

You can check in this request the name of the facet:
http://localhost:8080/geonetwork/srv/eng/q?_content_type=json&fast=index

Regards,
Jose García


On Fri, Jun 22, 2018 at 2:20 PM, frippe12573 <[hidden email]>
wrote:

> Dear Jose and all,
>
> unfortunately I'm not yet able to change INSPIRE themes and topic
> categories
> with Categories from the 'Browse by' in the home page.
> As I said I'm using GN 3.2.1, and  here <https://pastebin.com/smbezkPG>
> the
> code I modified to such aim in
> /var/lib/tomcat7/webapps/geonetwork/catalog/views/
> default/templates/home.html
> from line 41 to 98;
> and  here <https://pastebin.com/gFhfTbgV>   the code modified in
> /var/lib/tomcat7/webapps/geonetwork/WEB-INF/config-summary.xml at line 33
>
> Could anyone help me?
> Any hint is very appreciated!
>
> Eugenio
>
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-
> f3860293.html
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> GeoNetwork-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at http://sourceforge.net/
> projects/geonetwork
>



--













*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/>Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv>
<https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts>Please consider the
environment before printing this email.*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Browse by category

frippe12573
Dear Josè,


thank you for your input.

I changed in home.html category with categories in each searchInfo.facet['category'].

Unfortunately after a tomcat restart, index rebuilt and clear browse cache nothing change.

I then checked the URL (http://localhost:8080/geonetwork/srv/eng/q?_content_type=json&fast=index) to see the name of the facet,

I only find out 'category' among the metadata's items: see here: https://pastebin.com/rUYu4B7g (last line).


Other helps?


Eugenio

[https://pastebin.com/i/facebook.png]<https://pastebin.com/rUYu4B7g>

{ "@from": "1", "@to": "182", "@selected": "0", "summary": { - Pastebin.com<https://pastebin.com/rUYu4B7g>
pastebin.com




________________________________
Da: Jose Garcia <[hidden email]>
Inviato: lunedì 25 giugno 2018 09:27
A: frippe12573
Cc: [hidden email]
Oggetto: Re: [GeoNetwork-users] Browse by category

Hi

I haven't try the changes, but I see this:

   <label data-ng-show="searchInfo.facet['category'].length > 0">

From config-summary.xml:

<facet name="category" indexKey="_cat" label="categories" localized="true"/>

I think you need to use searchInfo.facet['categories']

You can check in this request the name of the facet: http://localhost:8080/geonetwork/srv/eng/q?_content_type=json&fast=index

Regards,
Jose García


On Fri, Jun 22, 2018 at 2:20 PM, frippe12573 <[hidden email]<mailto:[hidden email]>> wrote:
Dear Jose and all,

unfortunately I'm not yet able to change INSPIRE themes and topic categories
with Categories from the 'Browse by' in the home page.
As I said I'm using GN 3.2.1, and  here <https://pastebin.com/smbezkPG>  the
code I modified to such aim in
/var/lib/tomcat7/webapps/geonetwork/catalog/views/default/templates/home.html
from line 41 to 98;
and  here <https://pastebin.com/gFhfTbgV>   the code modified in
/var/lib/tomcat7/webapps/geonetwork/WEB-INF/config-summary.xml at line 33

Could anyone help me?
Any hint is very appreciated!

Eugenio




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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]<mailto:[hidden email]>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



--
Vriendelijke groeten / Kind regards,

Jose García

[https://www.geocat.net/wp-content/uploads/2015/07/GeoCat_small1.png]<http://www.geocat.net/>
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664<tel:+31318416664>

[https://www.geocat.net/wp-content/uploads/2015/07/facebook_24.png]<https://www.facebook.com/geocatbv> [https://www.geocat.net/wp-content/uploads/2015/07/Twitter_icon.png] <https://twitter.com/geocat_bv>  [https://www.geocat.net/wp-content/uploads/2015/07/Google-plus-icon.png] <https://plus.google.com/u/1/+GeocatNetbv/posts>

Please consider the environment before printing this email.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Browse by category

Jose Garcia
Hi Eugenio

Check these changes: https://pastebin.com/sKfKS4PH

I have tried them with 3.2.1 and works for me.

Note that probably you'll need a reindex and restart Geonetwork.

Regards,
Jose García

On Mon, Jun 25, 2018 at 9:58 AM, Eugenio Trumpy <[hidden email]>
wrote:

> Dear Josè,
>
>
> thank you for your input.
>
> I changed in home.html category with categories in each
> searchInfo.facet['category'].
>
> Unfortunately after a tomcat restart, index rebuilt and clear browse cache
> nothing change.
>
> I then checked the URL (http://localhost:8080/geonetw
> ork/srv/eng/q?_content_type=json&fast=index) to see the name of the facet,
>
> I only find out 'category' among the metadata's items: see here:
> https://pastebin.com/rUYu4B7g (last line).
>
>
> Other helps?
>
>
> Eugenio
> <https://pastebin.com/rUYu4B7g>
> { "@from": "1", "@to": "182", "@selected": "0", "summary": { - Pastebin.com
> <https://pastebin.com/rUYu4B7g>
> pastebin.com
>
>
>
> ------------------------------
> *Da:* Jose Garcia <[hidden email]>
> *Inviato:* lunedì 25 giugno 2018 09:27
> *A:* frippe12573
> *Cc:* [hidden email]
> *Oggetto:* Re: [GeoNetwork-users] Browse by category
>
> Hi
>
> I haven't try the changes, but I see this:
>
>    <label data-ng-show="searchInfo.facet['category'].length > 0">
>
> From config-summary.xml:
>
> <facet name="category" indexKey="_cat" label="categories"
> localized="true"/>
>
> I think you need to use searchInfo.facet['categories']
>
> You can check in this request the name of the facet:
> http://localhost:8080/geonetwork/srv/eng/q?_content_type=json&fast=index
>
> Regards,
> Jose García
>
>
> On Fri, Jun 22, 2018 at 2:20 PM, frippe12573 <[hidden email]>
> wrote:
>
> Dear Jose and all,
>
> unfortunately I'm not yet able to change INSPIRE themes and topic
> categories
> with Categories from the 'Browse by' in the home page.
> As I said I'm using GN 3.2.1, and  here <https://pastebin.com/smbezkPG>
> the
> code I modified to such aim in
> /var/lib/tomcat7/webapps/geonetwork/catalog/views/default/te
> mplates/home.html
> from line 41 to 98;
> and  here <https://pastebin.com/gFhfTbgV>   the code modified in
> /var/lib/tomcat7/webapps/geonetwork/WEB-INF/config-summary.xml at line 33
>
> Could anyone help me?
> Any hint is very appreciated!
>
> Eugenio
>
>
>
>
> --
> Sent from: http://osgeo-org.1560.x6.nabble.com/GeoNetwork-users-f386029
> 3.html
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> GeoNetwork-users mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/geonetwork-users
> GeoNetwork OpenSource is maintained at http://sourceforge.net/project
> s/geonetwork
>
>
>
>
> --
>
>
>
>
>
>
>
>
>
>
>
>
>
> * Vriendelijke groeten / Kind regards, Jose García
> <http://www.geocat.net/> Veenderweg 13
> <https://maps.google.com/?q=Veenderweg+13+%0D%0A+6721+WD+Bennekom+%0D%0A+The+Netherlands&entry=gmail&source=g>
> 6721 WD Bennekom
> <https://maps.google.com/?q=Veenderweg+13+%0D%0A+6721+WD+Bennekom+%0D%0A+The+Netherlands&entry=gmail&source=g>
> The Netherlands
> <https://maps.google.com/?q=Veenderweg+13+%0D%0A+6721+WD+Bennekom+%0D%0A+The+Netherlands&entry=gmail&source=g>
> T: +31 (0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv>
> <https://twitter.com/geocat_bv>
> <https://plus.google.com/u/1/+GeocatNetbv/posts> Please consider the
> environment before printing this email. *
>



--













*Vriendelijke groeten / Kind regards,Jose García
<http://www.geocat.net/>Veenderweg 136721 WD BennekomThe NetherlandsT: +31
(0)318 416664 <+31318416664> <https://www.facebook.com/geocatbv>
<https://twitter.com/geocat_bv>
<https://plus.google.com/u/1/+GeocatNetbv/posts>Please consider the
environment before printing this email.*
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Browse by category

frippe12573
Hi Jose,


thank you very much! It works fine also with me!!!


Cheers


Eugenio


________________________________
Da: Jose Garcia <[hidden email]>
Inviato: lunedì 25 giugno 2018 19:09
A: Eugenio Trumpy
Cc: [hidden email]
Oggetto: Re: [GeoNetwork-users] Browse by category

Hi Eugenio

Check these changes: https://pastebin.com/sKfKS4PH
[https://pastebin.com/i/facebook.png]<https://pastebin.com/sKfKS4PH>

GeoNetwork 3.2.1 filter by categories in home page ============================ - Pastebin.com<https://pastebin.com/sKfKS4PH>
pastebin.com



I have tried them with 3.2.1 and works for me.

Note that probably you'll need a reindex and restart Geonetwork.

Regards,
Jose García

On Mon, Jun 25, 2018 at 9:58 AM, Eugenio Trumpy <[hidden email]<mailto:[hidden email]>> wrote:

Dear Josè,


thank you for your input.

I changed in home.html category with categories in each searchInfo.facet['category'].

Unfortunately after a tomcat restart, index rebuilt and clear browse cache nothing change.

I then checked the URL (http://localhost:8080/geonetwork/srv/eng/q?_content_type=json&fast=index) to see the name of the facet,

I only find out 'category' among the metadata's items: see here: https://pastebin.com/rUYu4B7g (last line).


Other helps?


Eugenio

[https://pastebin.com/i/facebook.png]<https://pastebin.com/rUYu4B7g>

{ "@from": "1", "@to": "182", "@selected": "0", "summary": { - Pastebin.com<https://pastebin.com/rUYu4B7g>
pastebin.com<http://pastebin.com>




________________________________
Da: Jose Garcia <[hidden email]<mailto:[hidden email]>>
Inviato: lunedì 25 giugno 2018 09:27
A: frippe12573
Cc: [hidden email]<mailto:[hidden email]>
Oggetto: Re: [GeoNetwork-users] Browse by category

Hi

I haven't try the changes, but I see this:

   <label data-ng-show="searchInfo.facet['category'].length > 0">

From config-summary.xml:

<facet name="category" indexKey="_cat" label="categories" localized="true"/>

I think you need to use searchInfo.facet['categories']

You can check in this request the name of the facet: http://localhost:8080/geonetwork/srv/eng/q?_content_type=json&fast=index

Regards,
Jose García


On Fri, Jun 22, 2018 at 2:20 PM, frippe12573 <[hidden email]<mailto:[hidden email]>> wrote:
Dear Jose and all,

unfortunately I'm not yet able to change INSPIRE themes and topic categories
with Categories from the 'Browse by' in the home page.
As I said I'm using GN 3.2.1, and  here <https://pastebin.com/smbezkPG>  the
code I modified to such aim in
/var/lib/tomcat7/webapps/geonetwork/catalog/views/default/templates/home.html
from line 41 to 98;
and  here <https://pastebin.com/gFhfTbgV>   the code modified in
/var/lib/tomcat7/webapps/geonetwork/WEB-INF/config-summary.xml at line 33

Could anyone help me?
Any hint is very appreciated!

Eugenio




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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]<mailto:[hidden email]>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



--
Vriendelijke groeten / Kind regards,

Jose García

[https://www.geocat.net/wp-content/uploads/2015/07/GeoCat_small1.png]<http://www.geocat.net/>
Veenderweg 13<https://maps.google.com/?q=Veenderweg+13+%0D%0A+6721+WD+Bennekom+%0D%0A+The+Netherlands&entry=gmail&source=g>
6721 WD Bennekom<https://maps.google.com/?q=Veenderweg+13+%0D%0A+6721+WD+Bennekom+%0D%0A+The+Netherlands&entry=gmail&source=g>
The Netherlands<https://maps.google.com/?q=Veenderweg+13+%0D%0A+6721+WD+Bennekom+%0D%0A+The+Netherlands&entry=gmail&source=g>
T: +31 (0)318 416664<tel:+31318416664>

[https://www.geocat.net/wp-content/uploads/2015/07/facebook_24.png]<https://www.facebook.com/geocatbv> [https://www.geocat.net/wp-content/uploads/2015/07/Twitter_icon.png] <https://twitter.com/geocat_bv>  [https://www.geocat.net/wp-content/uploads/2015/07/Google-plus-icon.png] <https://plus.google.com/u/1/+GeocatNetbv/posts>

Please consider the environment before printing this email.



--
Vriendelijke groeten / Kind regards,

Jose García

[https://www.geocat.net/wp-content/uploads/2015/07/GeoCat_small1.png]<http://www.geocat.net/>
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664<tel:+31318416664>

[https://www.geocat.net/wp-content/uploads/2015/07/facebook_24.png]<https://www.facebook.com/geocatbv> [https://www.geocat.net/wp-content/uploads/2015/07/Twitter_icon.png] <https://twitter.com/geocat_bv>  [https://www.geocat.net/wp-content/uploads/2015/07/Google-plus-icon.png] <https://plus.google.com/u/1/+GeocatNetbv/posts>

Please consider the environment before printing this email.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Browse by category

frippe12573
In reply to this post by Jose Garcia
Dear Garcia and all,


I wonder if it is possible to change the default position of the radio button of the 'Browse by'.


Eugenio


________________________________
Da: Jose Garcia <[hidden email]>
Inviato: lunedì 25 giugno 2018 19:09
A: Eugenio Trumpy
Cc: [hidden email]
Oggetto: Re: [GeoNetwork-users] Browse by category

Hi Eugenio

Check these changes: https://pastebin.com/sKfKS4PH
[https://pastebin.com/i/facebook.png]<https://pastebin.com/sKfKS4PH>

GeoNetwork 3.2.1 filter by categories in home page ============================ - Pastebin.com<https://pastebin.com/sKfKS4PH>
pastebin.com



I have tried them with 3.2.1 and works for me.

Note that probably you'll need a reindex and restart Geonetwork.

Regards,
Jose García

On Mon, Jun 25, 2018 at 9:58 AM, Eugenio Trumpy <[hidden email]<mailto:[hidden email]>> wrote:

Dear Josè,


thank you for your input.

I changed in home.html category with categories in each searchInfo.facet['category'].

Unfortunately after a tomcat restart, index rebuilt and clear browse cache nothing change.

I then checked the URL (http://localhost:8080/geonetwork/srv/eng/q?_content_type=json&fast=index) to see the name of the facet,

I only find out 'category' among the metadata's items: see here: https://pastebin.com/rUYu4B7g (last line).


Other helps?


Eugenio

[https://pastebin.com/i/facebook.png]<https://pastebin.com/rUYu4B7g>

{ "@from": "1", "@to": "182", "@selected": "0", "summary": { - Pastebin.com<https://pastebin.com/rUYu4B7g>
pastebin.com<http://pastebin.com>




________________________________
Da: Jose Garcia <[hidden email]<mailto:[hidden email]>>
Inviato: lunedì 25 giugno 2018 09:27
A: frippe12573
Cc: [hidden email]<mailto:[hidden email]>
Oggetto: Re: [GeoNetwork-users] Browse by category

Hi

I haven't try the changes, but I see this:

   <label data-ng-show="searchInfo.facet['category'].length > 0">

From config-summary.xml:

<facet name="category" indexKey="_cat" label="categories" localized="true"/>

I think you need to use searchInfo.facet['categories']

You can check in this request the name of the facet: http://localhost:8080/geonetwork/srv/eng/q?_content_type=json&fast=index

Regards,
Jose García


On Fri, Jun 22, 2018 at 2:20 PM, frippe12573 <[hidden email]<mailto:[hidden email]>> wrote:
Dear Jose and all,

unfortunately I'm not yet able to change INSPIRE themes and topic categories
with Categories from the 'Browse by' in the home page.
As I said I'm using GN 3.2.1, and  here <https://pastebin.com/smbezkPG>  the
code I modified to such aim in
/var/lib/tomcat7/webapps/geonetwork/catalog/views/default/templates/home.html
from line 41 to 98;
and  here <https://pastebin.com/gFhfTbgV>   the code modified in
/var/lib/tomcat7/webapps/geonetwork/WEB-INF/config-summary.xml at line 33

Could anyone help me?
Any hint is very appreciated!

Eugenio




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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]<mailto:[hidden email]>
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork



--
Vriendelijke groeten / Kind regards,

Jose García

[https://www.geocat.net/wp-content/uploads/2015/07/GeoCat_small1.png]<http://www.geocat.net/>
Veenderweg 13<https://maps.google.com/?q=Veenderweg+13+%0D%0A+6721+WD+Bennekom+%0D%0A+The+Netherlands&entry=gmail&source=g>
6721 WD Bennekom<https://maps.google.com/?q=Veenderweg+13+%0D%0A+6721+WD+Bennekom+%0D%0A+The+Netherlands&entry=gmail&source=g>
The Netherlands<https://maps.google.com/?q=Veenderweg+13+%0D%0A+6721+WD+Bennekom+%0D%0A+The+Netherlands&entry=gmail&source=g>
T: +31 (0)318 416664<tel:+31318416664>

[https://www.geocat.net/wp-content/uploads/2015/07/facebook_24.png]<https://www.facebook.com/geocatbv> [https://www.geocat.net/wp-content/uploads/2015/07/Twitter_icon.png] <https://twitter.com/geocat_bv>  [https://www.geocat.net/wp-content/uploads/2015/07/Google-plus-icon.png] <https://plus.google.com/u/1/+GeocatNetbv/posts>

Please consider the environment before printing this email.



--
Vriendelijke groeten / Kind regards,

Jose García

[https://www.geocat.net/wp-content/uploads/2015/07/GeoCat_small1.png]<http://www.geocat.net/>
Veenderweg 13
6721 WD Bennekom
The Netherlands
T: +31 (0)318 416664<tel:+31318416664>

[https://www.geocat.net/wp-content/uploads/2015/07/facebook_24.png]<https://www.facebook.com/geocatbv> [https://www.geocat.net/wp-content/uploads/2015/07/Twitter_icon.png] <https://twitter.com/geocat_bv>  [https://www.geocat.net/wp-content/uploads/2015/07/Google-plus-icon.png] <https://plus.google.com/u/1/+GeocatNetbv/posts>

Please consider the environment before printing this email.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork
Reply | Threaded
Open this post in threaded view
|

Re: Browse by category

frippe12573
Dear Garcia,

Thanks to your input I was able to visualize also the Geonetwork Categories
in the 'Browse by' existing in the home page.
Now I need to modify a bit the page: I would like to remove the inspireTheme
and topics and leave there only GN Categories. To do this I commented some
lines as you can see in the file:

https://pastebin.com/Kn0P6HtU

I would expect to have the radio button selected on 'Categories', whilst I
have an empty radio button for 'Categories' and only after a click on the
radio button the categories appear. I tried also to inserti in the html code
'checked', but doesn't work.

Could you give me an hint?

Eugenio



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

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
GeoNetwork-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/geonetwork-users
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork