[GeoNetwork-devel] GeoServer on separate server

Hello,

I have a GeoNetwork 2.8RC0 test installation and I am using the TabSearch
Interface. I would like to configure this to have the GeoNetwork service
installed on a separate server form the GeoServer installation. Is this
possible? If so I do I achieve this?

Cheers,
Byron

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GeoServer-on-separate-server-tp4993258.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Okay, I found what I needed to do to make the application use a different
GeoServer host and service. It seems I needed to alter the the following two
files to include the full URL to the geoserver service:
  - .. apps/tabsearch/js/Settings.js
  - .. apps/tabsearch/js/map/Settings.js
But this by itself was not enough. I needed then to rebuild the project so
that these changes were minified into
  - .. apps/tabsearch/js/App-mini.js
Once this was done, and the application redeployed, the changes became
available.

This approach troubles me a bit. What I would like to do is be able to
deploy a GeoNetwork application for an organisation and leave them to be
able to alter these parameters in both Settings.js and map/Settings.js
without requiring them to rebuild the entire GeoNetwork application.

This would require that these two file no longer be minified into
App-mini.js but would instead be downloaded onto the client (in a single
separate Settings-mini.js perhaps) when launching GeoNetwork in their web
browser. I realize that there would be some performance cost involved, but
in my mind the flexibility provided to a system administrator would make
this worth it.

Perhaps I should submit this as an enhancement request? Or is there a better
way to acomplish the same end? One that could provide settings that apply
across all the viewers including the classic GeoNetwork interface and the
gui widgets one.

Cheers,
Byron

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GeoServer-on-separate-server-tp4993258p4993274.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Hello Byron,

2012/8/6 ByronCinNZ <cochranes4@anonymised.com>:

Okay, I found what I needed to do to make the application use a different
GeoServer host and service. It seems I needed to alter the the following two
files to include the full URL to the geoserver service:
  - .. apps/tabsearch/js/Settings.js
  - .. apps/tabsearch/js/map/Settings.js
But this by itself was not enough. I needed then to rebuild the project so
that these changes were minified into
  - .. apps/tabsearch/js/App-mini.js
Once this was done, and the application redeployed, the changes became
available.

This approach troubles me a bit. What I would like to do is be able to
deploy a GeoNetwork application for an organisation and leave them to be
able to alter these parameters in both Settings.js and map/Settings.js
without requiring them to rebuild the entire GeoNetwork application.

This would require that these two file no longer be minified into
App-mini.js but would instead be downloaded onto the client (in a single
separate Settings-mini.js perhaps) when launching GeoNetwork in their web
browser. I realize that there would be some performance cost involved, but
in my mind the flexibility provided to a system administrator would make
this worth it.

Perhaps I should submit this as an enhancement request? Or is there a better
way to acomplish the same end? One that could provide settings that apply
across all the viewers including the classic GeoNetwork interface and the
gui widgets one.

I agree with you that modification in minified JS is not easy. For the
map, I was thinking moving the map configuration to a WMC file so we
could a provide a WMC for embedded Geoserver layers, OSM, ...

Do you think we could easily initialized maps from a WMC ? Then we
could add a setting in the DB to choose the map to use.

Cheers.

Francois

Cheers,
Byron

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GeoServer-on-separate-server-tp4993258p4993274.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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

Hi,
loading GN background map settings from WMC sounds nice.

Sample code:
view-source:http://dev.openlayers.org/releases/OpenLayers-2.12/examples/wmc.html

cheers
Jørn-Vegard Røsnes

----- Original Message -----

From: "Francois Prunayre" <fx.prunayre@anonymised.com>
To: "ByronCinNZ" <cochranes4@anonymised.com>
Cc: geonetwork-devel@lists.sourceforge.net
Sent: Monday, 6 August, 2012 8:16:56 AM
Subject: Re: [GeoNetwork-devel] GeoServer on separate server

Hello Byron,

2012/8/6 ByronCinNZ <cochranes4@anonymised.com>:
> Okay, I found what I needed to do to make the application use a
> different
> GeoServer host and service. It seems I needed to alter the the
> following two
> files to include the full URL to the geoserver service:
> - .. apps/tabsearch/js/Settings.js
> - .. apps/tabsearch/js/map/Settings.js
> But this by itself was not enough. I needed then to rebuild the
> project so
> that these changes were minified into
> - .. apps/tabsearch/js/App-mini.js
> Once this was done, and the application redeployed, the changes
> became
> available.
>
> This approach troubles me a bit. What I would like to do is be able
> to
> deploy a GeoNetwork application for an organisation and leave them
> to be
> able to alter these parameters in both Settings.js and
> map/Settings.js
> without requiring them to rebuild the entire GeoNetwork
> application.
>
> This would require that these two file no longer be minified into
> App-mini.js but would instead be downloaded onto the client (in a
> single
> separate Settings-mini.js perhaps) when launching GeoNetwork in
> their web
> browser. I realize that there would be some performance cost
> involved, but
> in my mind the flexibility provided to a system administrator would
> make
> this worth it.
>
> Perhaps I should submit this as an enhancement request? Or is there
> a better
> way to acomplish the same end? One that could provide settings that
> apply
> across all the viewers including the classic GeoNetwork interface
> and the
> gui widgets one.
I agree with you that modification in minified JS is not easy. For
the
map, I was thinking moving the map configuration to a WMC file so we
could a provide a WMC for embedded Geoserver layers, OSM, ...

Do you think we could easily initialized maps from a WMC ? Then we
could add a setting in the DB to choose the map to use.

Cheers.

Francois

> Cheers,
> Byron
>
>
>
> --
> View this message in context:
> http://osgeo-org.1560.n6.nabble.com/GeoServer-on-separate-server-tp4993258p4993274.html
> Sent from the GeoNetwork developer mailing list archive at
> Nabble.com.
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond.
> Discussions
> will include endpoint security, mobile security and the latest in
> malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> 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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond.
Discussions
will include endpoint security, mobile security and the latest in
malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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

CONFIDENTIALITY
This e-mail and any attachment contain KONGSBERG information which may be
proprietary, confidential or subject to export regulations, and is only meant
for the intended recipient(s). Any disclosure, copying, distribution or use is
prohibited, if not otherwise explicitly agreed with KONGSBERG. If received in
error, please delete it immediately from your system and notify the sender
properly.

So I managed to get most everything using a remote Geoserver instance. But
what about the Geopublisher option? Is it possible to use the Geopublisher
if the Geoserver install is on a separate host?

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GeoServer-on-separate-server-tp4993258p4993764.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

2012/8/8 ByronCinNZ <cochranes4@anonymised.com>:

So I managed to get most everything using a remote Geoserver instance. But
what about the Geopublisher option? Is it possible to use the Geopublisher
if the Geoserver install is on a separate host?

Yes, add it on the WEB-INF/geoserver-nodes.xml where you can define
one or more GeoServer nodes (having the REST config extension
installed which is by default in latest GeoServer version).

Cheers.

Francois

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/GeoServer-on-separate-server-tp4993258p4993764.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
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