[GeoNetwork-users] Customization of geonetworkv3.0.0

Hi,

I would like to customize the geonetwork v3.0.0, as I had already done for
the version 2.10.4
but it's hard without documentation.
I would like some information to:
- Change the default language. For doing this, I changed the field
<language></language> in several files, without any result.
- Add a new tab near the Map Tab.
- Add a banner above tabs (Where do I change the CSS ?)
- Where is configured the geoserver ? (It was configured before in
WEB-INF/geoserver-nodes.xml)
- Center the map on one region (I changed it in config-viewer.xml and
delete override -> no result)

Does anyone have information on one or more points of this list ?

Thanks in advance,

Regards.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Customization-of-geonetworkv3-0-0-tp5209924.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

Hi,

All the ui code is there :
https://github.com/geonetwork/core-geonetwork/tree/develop/web-ui/src/main/resources/catalog

The default view code is in
https://github.com/geonetwork/core-geonetwork/tree/develop/web-ui/src/main/resources/catalog/views/default

You can find there the templates html files, and the javascript components.

- Change the default language. For doing this, I changed the field

<language></language> in several files, without any result.

Try to set gnGlobalSettings.locale.lang in some module

- Add a new tab near the Map Tab.

https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/templates/top-toolbar.html#L31
https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/views/default/templates/index.html#L15

- Add a banner above tabs (Where do I change the CSS ?)

https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/views/default/less/gn_search_default.less

- Center the map on one region (I changed it in config-viewer.xml and
delete override -> no result)

https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/views/default/less/gn_search_default.less
or with a OWS context
https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/views/default/config.js#L15

On Tue, Jun 9, 2015 at 11:17 AM, onar123 <onaris123@anonymised.com> wrote:

Hi,

I would like to customize the geonetwork v3.0.0, as I had already done for
the version 2.10.4
but it's hard without documentation.
I would like some information to:
- Change the default language. For doing this, I changed the field
<language></language> in several files, without any result.
- Add a new tab near the Map Tab.
- Add a banner above tabs (Where do I change the CSS ?)
- Where is configured the geoserver ? (It was configured before in
WEB-INF/geoserver-nodes.xml)
- Center the map on one region (I changed it in config-viewer.xml and
delete override -> no result)

Does anyone have information on one or more points of this list ?

Thanks in advance,

Regards.

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Customization-of-geonetworkv3-0-0-tp5209924.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at
GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

--
Florent Gravin
Camptocamp - Chambéry
0479444492

Thank you for your answers.
I managed to add a new tab, to add a banner and focus my map on my area,
with your help. For authorized zoom level, I modified this file
(/views/default/config.js). Do you know, if there is a better method, I
don't like change the java code.

But I cannot change the default language, I even changed the language
information in database without success. Do you have another suggestion?

Regards.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Customization-of-geonetworkv3-0-0-tp5209924p5210591.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

with your help. For authorized zoom level, I modified this file
(/views/default/config.js). Do you know, if there is a better method, I
don't like change the java code.

What do you mean, it's javascript code, not java. It is the config place,
so it's here you can customize your maps.

But I cannot change the default language, I even changed the language
information in database without success. Do you have another suggestion?

https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/js/GnLocale.js#L50

It's either gnGlobalSettings.locale.lang if set (you can set in your config
module for example) or it's gotten from the url.
Have you tried a different url ? The srv/*eng*/ ? eng can be changed to
another language.
Whatever, if you want to have eng in your url but have a different language
in your app, you may set another value in gnGlobalSettings.lang
https://github.com/geonetwork/core-geonetwork/blob/develop/web-ui/src/main/resources/catalog/js/GnLocale.js#L52

Regards.

--
View this message in context:
http://osgeo-org.1560.x6.nabble.com/Customization-of-geonetworkv3-0-0-tp5209924p5210591.html
Sent from the GeoNetwork users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
GeoNetwork-users mailing list
GeoNetwork-users@lists.sourceforge.net
geonetwork-users List Signup and Options
GeoNetwork OpenSource is maintained at
GeoNetwork - Geographic Metadata Catalog download | SourceForge.net

--
Florent Gravin
Camptocamp - Chambéry
0479444492