[GeoNetwork-devel] GeoNetwork 3.0.2 - map search size

Hi,

I would like to customize the default look of the GN 3.0.2 GUI. From what I have read [1], it mostly requires editing the source code, but I just need to change the size of the map for the geographic search in the “Search” tab. Is there some easy way to do this?

I’ve been looking in the $GN_HOME/WEB-INF/config-*.xml files, and the search map is mentioned there, but the settings is there only to chage “what” and “how” it is shown, but nothing about it’s size. I just need to make it a bit larger.

Thank you

Jaroslav

[1] http://osgeo-org.1560.x6.nabble.com/geonetwork-3-0-1-user-interface-customization-td5219659.html

Hi,

There is no config for that. You can just update the *.less files that define the css rules for the ui.
Probably somewhere here : https://github.com/geonetwork/core-geonetwork/blob/3.0.x/web-ui/src/main/resources/catalog/views/default/less/gn_search_default.less

You could also follow the tutorial http://geonetwork-opensource.org/manuals/trunk/eng/users/tutorials/customui/search/index.html if you wan’t to apply other changes.

···

On Mon, Oct 26, 2015 at 11:48 AM, Jaroslav Urik <jarda.urik@anonymised.com> wrote:

Hi,

I would like to customize the default look of the GN 3.0.2 GUI. From what I have read [1], it mostly requires editing the source code, but I just need to change the size of the map for the geographic search in the “Search” tab. Is there some easy way to do this?

I’ve been looking in the $GN_HOME/WEB-INF/config-*.xml files, and the search map is mentioned there, but the settings is there only to chage “what” and “how” it is shown, but nothing about it’s size. I just need to make it a bit larger.

Thank you

Jaroslav

[1] http://osgeo-org.1560.x6.nabble.com/geonetwork-3-0-1-user-interface-customization-td5219659.html



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

camptocamp
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

Florent Gravin
0479444492

Hi Florent,

thanks for your help. I have edited the file you mentioned and restarted geonetwork, but nothing happened with the map.

My edits in geonetwork/catalog/views/default/less/gn_search_default.less

line 359:

[data-gn-map-field] > [ngeo-map] {
//height: 89.9vh;
border: 1px solid #ccc;
border-radius: 3px;
right: 0;
bottom: 100;
position: fixed !important;
z-index: 99;
width: 350px !important;
heigth: 550px !important;
margin: 5px; }
<<

I changed the width and height, but no effect… Do I have to do something more than restart?

Thanks for your help!

Jaroslav

···

On Mon, Oct 26, 2015 at 11:48 AM, Jaroslav Urik <jarda.urik@anonymised.com> wrote:

Hi,

I would like to customize the default look of the GN 3.0.2 GUI. From what I have read [1], it mostly requires editing the source code, but I just need to change the size of the map for the geographic search in the “Search” tab. Is there some easy way to do this?

I’ve been looking in the $GN_HOME/WEB-INF/config-*.xml files, and the search map is mentioned there, but the settings is there only to chage “what” and “how” it is shown, but nothing about it’s size. I just need to make it a bit larger.

Thank you

Jaroslav

[1] http://osgeo-org.1560.x6.nabble.com/geonetwork-3-0-1-user-interface-customization-td5219659.html



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

camptocamp
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

Florent Gravin
0479444492

Hummm, have you tried your changes directly in dev tools to see if they have any effect ?
You should with devtools, also know if your changes were loaded or not (comparing with the old values).

If they are not loaded, you may need to remove all wro4j .db seems at the root of your data directory.

···

On Thu, Oct 29, 2015 at 11:48 AM, Jaroslav Urik <jarda.urik@anonymised.com> wrote:

Hi Florent,

thanks for your help. I have edited the file you mentioned and restarted geonetwork, but nothing happened with the map.

My edits in geonetwork/catalog/views/default/less/gn_search_default.less

line 359:

[data-gn-map-field] > [ngeo-map] {
//height: 89.9vh;
border: 1px solid #ccc;
border-radius: 3px;
right: 0;
bottom: 100;
position: fixed !important;
z-index: 99;
width: 350px !important;
heigth: 550px !important;
margin: 5px; }
<<

I changed the width and height, but no effect… Do I have to do something more than restart?

Thanks for your help!

Jaroslav

On Mon, Oct 26, 2015 at 11:55 AM Florent Gravin <florent.gravin@anonymised.com> wrote:

Hi,

There is no config for that. You can just update the *.less files that define the css rules for the ui.
Probably somewhere here : https://github.com/geonetwork/core-geonetwork/blob/3.0.x/web-ui/src/main/resources/catalog/views/default/less/gn_search_default.less

You could also follow the tutorial http://geonetwork-opensource.org/manuals/trunk/eng/users/tutorials/customui/search/index.html if you wan’t to apply other changes.

On Mon, Oct 26, 2015 at 11:48 AM, Jaroslav Urik <jarda.urik@anonymised.com> wrote:

Hi,

I would like to customize the default look of the GN 3.0.2 GUI. From what I have read [1], it mostly requires editing the source code, but I just need to change the size of the map for the geographic search in the “Search” tab. Is there some easy way to do this?

I’ve been looking in the $GN_HOME/WEB-INF/config-*.xml files, and the search map is mentioned there, but the settings is there only to chage “what” and “how” it is shown, but nothing about it’s size. I just need to make it a bit larger.

Thank you

Jaroslav

[1] http://osgeo-org.1560.x6.nabble.com/geonetwork-3-0-1-user-interface-customization-td5219659.html



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

camptocamp
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

Florent Gravin
0479444492

camptocamp
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

Florent Gravin
0479444492

Hi,

sorry, I don’t have any experience with dev tools - where can I download it?

Anyway, I tried to delete the wro4j files (wro4j-cache.h2.db, wro4j-cache.trace.db) in my data dir and “something” happened - the map appears for few seconds during page loading approximately 300pix higher (middle of page, same size as before) and then disappears after page is loaded.

Then I returned the parameter bottom: 100; → bottom: 0; and it returns back to normal, but with the same width and height as original even though the parameters are changed from 250pix → 350 (550)…

Thanks for your help

Jaroslav

···

On Thu, Oct 29, 2015 at 11:48 AM, Jaroslav Urik <jarda.urik@anonymised.com> wrote:

Hi Florent,

thanks for your help. I have edited the file you mentioned and restarted geonetwork, but nothing happened with the map.

My edits in geonetwork/catalog/views/default/less/gn_search_default.less

line 359:

[data-gn-map-field] > [ngeo-map] {
//height: 89.9vh;
border: 1px solid #ccc;
border-radius: 3px;
right: 0;
bottom: 100;
position: fixed !important;
z-index: 99;
width: 350px !important;
heigth: 550px !important;
margin: 5px; }
<<

I changed the width and height, but no effect… Do I have to do something more than restart?

Thanks for your help!

Jaroslav

On Mon, Oct 26, 2015 at 11:55 AM Florent Gravin <florent.gravin@anonymised.com> wrote:

Hi,

There is no config for that. You can just update the *.less files that define the css rules for the ui.
Probably somewhere here : https://github.com/geonetwork/core-geonetwork/blob/3.0.x/web-ui/src/main/resources/catalog/views/default/less/gn_search_default.less

You could also follow the tutorial http://geonetwork-opensource.org/manuals/trunk/eng/users/tutorials/customui/search/index.html if you wan’t to apply other changes.

camptocamp
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

Florent Gravin
0479444492

On Mon, Oct 26, 2015 at 11:48 AM, Jaroslav Urik <jarda.urik@anonymised.com> wrote:

Hi,

I would like to customize the default look of the GN 3.0.2 GUI. From what I have read [1], it mostly requires editing the source code, but I just need to change the size of the map for the geographic search in the “Search” tab. Is there some easy way to do this?

I’ve been looking in the $GN_HOME/WEB-INF/config-*.xml files, and the search map is mentioned there, but the settings is there only to chage “what” and “how” it is shown, but nothing about it’s size. I just need to make it a bit larger.

Thank you

Jaroslav

[1] http://osgeo-org.1560.x6.nabble.com/geonetwork-3-0-1-user-interface-customization-td5219659.html



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

camptocamp
INNOVATIVE SOLUTIONS
BY OPEN SOURCE EXPERTS

Florent Gravin
0479444492