[GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

Hi,

I want to customize the interface of Geonetwork 2.6.4, according to the
following:-

1. On main page there should be only a flashy buttons for uploading &
downloading data, search field and registration button.
When the upload/download button is clicked, the user should be navigated to
the registration page and after that, in case of downloading data - the user
must be able to see the list of all downloadable data, and in case of
uploading data - page should be opened for entering data.
In case of search the user should be navigated to a page containing all
search results.
In case of registration, the user should be navigated to registration page.

2. Is it possible to have all these functionalities ajax based?

Please could someone help me from where I should take the start, and for
this do i need to download the source code from svn?

Please guide me as we need to launch our portal by the end of this month.

Best Regards,
Saher

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-cuztomize-interface-of-Geonetwork-2-6-4-tp5005993.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Comments inline:

On Wed, Oct 3, 2012 at 8:39 AM, Saher Murad <sahermurad@anonymised.com> wrote:

Hi,

I want to customize the interface of Geonetwork 2.6.4, according to the
following:-

  1. On main page there should be only a flashy buttons for uploading &
    downloading data, search field and registration button.
    When the upload/download button is clicked, the user should be navigated to
    the registration page and after that, in case of downloading data - the user
    must be able to see the list of all downloadable data, and in case of
    uploading data - page should be opened for entering data.
    In case of search the user should be navigated to a page containing all
    search results.
    In case of registration, the user should be navigated to registration page.

You can change the config-gui.xml to specify which service is the “home” service. So create a new service which is your home page. To do this:

  • edit config.xml and add a service
  • add service to user-profiles.xml
    look at another service defined in config.xml for an example on how to create a service

For branding you can change the header.xsl to change the header on virtually all pages. And you can change the geonetwork.css for more customizations

  1. Is it possible to have all these functionalities ajax based?

Please could someone help me from where I should take the start, and for
this do i need to download the source code from svn?

The source is now on github: https://github.com/geonetwork/core-geonetwork

You don’t need the source for these changes. you can build a war. Extract it. make your customizations and re-compress it and upload it to a server. Or just install it in a server and edit there.

I am planning on deploying geonetwork artifacts to maven central repository soon. That will allow you to make a maven project that can overlay your changes over the basic war and that way you can have a project with only your changes.

Jesse

Hi Jesse,

Thank you so much, I will try to follow as you have mentioned.
It would be of great help if you are going to deploy geonetwork artifacts to maven central repository.
Looking forward to it.

Kind Regards,
Saher


From: Jesse Eichar <jesse.eichar@anonymised.com9…>
To: Saher Murad sahermurad@anonymised.com
Cc: geonetwork-devel@lists.sourceforge.net
Sent: Wednesday, 3 October 2012, 11:57
Subject: Re: [GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

Comments inline:

On Wed, Oct 3, 2012 at 8:39 AM, Saher Murad <sahermurad@anonymised.com> wrote:

Hi,

I want to customize the interface of Geonetwork 2.6.4, according to the
following:-

  1. On main page there should be only a flashy buttons for uploading &
    downloading data, search field and registration button.
    When the upload/download button is clicked, the user should be navigated to
    the registration page and after that, in case of downloading data - the user
    must be able to see the list of all downloadable data, and in case of
    uploading data - page should be opened for entering data.
    In case of search the user should be navigated to a page containing all
    search results.
    In case of registration, the user should be navigated to registration page.

You can change the config-gui.xml to specify which service is the “home” service. So create a new service which is your home page. To do this:

  • edit config.xml and add a service
  • add service to user-profiles.xml
    look at another service defined in config.xml for an example on how to create a service

For branding you can change the header.xsl to change the header on virtually all pages. And you can change the geonetwork.css for more customizations

  1. Is it possible to have all these functionalities ajax based?

Please could someone help me from where I should take the start, and for
this do i need to download the source code from svn?

The source is now on github: https://github.com/geonetwork/core-geonetwork

You don’t need the source for these changes. you can build a war. Extract it. make your customizations and re-compress it and upload it to a server. Or just install it in a server and edit there.

I am planning on deploying geonetwork artifacts to maven central repository soon. That will allow you to make a maven project that can overlay your changes over the basic war and that way you can have a project with only your changes.

Jesse

Hi Jesse,

After editing config.xml and adding services to user-profiles.xml, I'm able
to design a new user home page, please you also provide me some guidance
related to following question:

1. When a user click on a 'Downloads button' - that i have set on home page
- the user should be able to see the list of all downloadable data?

I will be very grateful for you help.

Best Regards,
Saher

--
View this message in context: http://osgeo-org.1560.n6.nabble.com/How-to-cuztomize-interface-of-Geonetwork-2-6-4-tp5005993p5007991.html
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

On Thu, Oct 11, 2012 at 1:08 PM, Saher Murad <sahermurad@anonymised.com> wrote:

Hi Jesse,

After editing config.xml and adding services to user-profiles.xml, I’m able
to design a new user home page, please you also provide me some guidance
related to following question:

  1. When a user click on a ‘Downloads button’ - that i have set on home page
  • the user should be able to see the list of all downloadable data?

What data is downloadable? The metadata? the data attached to a metadata? All data that is attached to any metadata?

Jesse

All that is attached to metadata.
For example, when we go to the following link, the user is able to see list of all the Metadata

http://localhost:8080/geonetwork/srv/eng/main.search

Now i want to display list of all those metadata that has some downloadable data.


From: Jesse Eichar jesse.eichar@anonymised.com
To: Saher Murad sahermurad@anonymised.com
Cc: geonetwork-devel@lists.sourceforge.net
Sent: Thursday, 11 October 2012, 16:51
Subject: Re: [GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

On Thu, Oct 11, 2012 at 1:08 PM, Saher Murad <sahermurad@anonymised.com> wrote:

Hi Jesse,

After editing config.xml and adding services to user-profiles.xml, I’m able
to design a new user home page, please you also provide me some guidance
related to following question:

  1. When a user click on a ‘Downloads button’ - that i have set on home page
  • the user should be able to see the list of all downloadable data?

What data is downloadable? The metadata? the data attached to a metadata? All data that is attached to any metadata?

Jesse

there are a few methods you can do this:

  1. Do an ajax request for all metadata with an attachment and then process the result and display it with javascript
  2. Create a second service that is configured with a predefined search and create an xsl to display it. Then from your first page you can call that service for downloading the data.

For the first solution the query you probably want is:
http://tc-geocat0i.bgdi.admin.ch/geonetwork/srv/eng/q?fast=index&from=1&to=20&download=true

For the second solution you might be able to use the existing search:

http://localhost:8080/geonetwork/srv/eng/main.search.embedded?download=true&hitsPerPage=10&output=full

or implement your own.

You can look at the definition of main.search.embedded (in config-metadata.xml) for inspiration on how to do that.

Jesse

On Thu, Oct 11, 2012 at 2:04 PM, saher murad <sahermurad@anonymised.com> wrote:

All that is attached to metadata.
For example, when we go to the following link, the user is able to see list of all the Metadata

http://localhost:8080/geonetwork/srv/eng/main.search

Now i want to display list of all those metadata that has some downloadable data.


From: Jesse Eichar <jesse.eichar@anonymised.com>
To: Saher Murad <sahermurad@anonymised.com>
Cc: geonetwork-devel@lists.sourceforge.net

Sent: Thursday, 11 October 2012, 16:51

Subject: Re: [GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

On Thu, Oct 11, 2012 at 1:08 PM, Saher Murad <sahermurad@anonymised.com> wrote:

Hi Jesse,

After editing config.xml and adding services to user-profiles.xml, I’m able
to design a new user home page, please you also provide me some guidance
related to following question:

  1. When a user click on a ‘Downloads button’ - that i have set on home page
  • the user should be able to see the list of all downloadable data?

What data is downloadable? The metadata? the data attached to a metadata? All data that is attached to any metadata?

Jesse

Thank you so much. First i will go for the 2nd method.
October 13, 2012 is our final launch, so i hope it would help me to do it.

Best Regards,
Saher


From: jesse.eichar [via OSGeo.org] <[hidden email]>
To: Saher Murad <[hidden email]>
Sent: Thursday, 11 October 2012, 17:34
Subject: Re: How to cuztomize interface of Geonetwork 2.6.4?

there are a few methods you can do this:

  1. Do an ajax request for all metadata with an attachment and then process the result and display it with javascript
  2. Create a second service that is configured with a predefined search and create an xsl to display it. Then from your first page you can call that service for downloading the data.

For the first solution the query you probably want is:
http://tc-geocat0i.bgdi.admin.ch/geonetwork/srv/eng/q?fast=index&from=1&to=20&download=true

For the second solution you might be able to use the existing search:

http://localhost:8080/geonetwork/srv/eng/main.search.embedded?download=true&hitsPerPage=10&output=full

or implement your own.

You can look at the definition of main.search.embedded (in config-metadata.xml) for inspiration on how to do that.

Jesse

On Thu, Oct 11, 2012 at 2:04 PM, saher murad <[hidden email]> wrote:

All that is attached to metadata.
For example, when we go to the following link, the user is able to see list of all the Metadata

http://localhost:8080/geonetwork/srv/eng/main.search

Now i want to display list of all those metadata that has some downloadable data.


From: Jesse Eichar <[hidden email]>
To: Saher Murad <[hidden email]>
Cc: [hidden email]

Sent: Thursday, 11 October 2012, 16:51

Subject: Re: [GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

On Thu, Oct 11, 2012 at 1:08 PM, Saher Murad <[hidden email]> wrote:

Hi Jesse,

After editing config.xml and adding services to user-profiles.xml, I’m able
to design a new user home page, please you also provide me some guidance
related to following question:

  1. When a user click on a ‘Downloads button’ - that i have set on home page
  • the user should be able to see the list of all downloadable data?

What data is downloadable? The metadata? the data attached to a metadata? All data that is attached to any metadata?

Jesse


Don’t let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev


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


If you reply to this email, your message will be added to the discussion below:
http://osgeo-org.1560.n6.nabble.com/How-to-cuztomize-interface-of-Geonetwork-2-6-4-tp5005993p5008019.html
To unsubscribe from How to cuztomize interface of Geonetwork 2.6.4?, click here.
NAML


View this message in context: Re: How to cuztomize interface of Geonetwork 2.6.4?
Sent from the GeoNetwork developer mailing list archive at Nabble.com.

Dear Jesse,

For the second method, i get the following message:
“This XML file does not appear to have any style information associated with it. The document tree is shown below”

What does it mean?


From: Jesse Eichar jesse.eichar@anonymised.com
To: saher murad sahermurad@anonymised.com
Cc:geonetwork-devel@lists.sourceforge.netgeonetwork-devel@lists.sourceforge.net
Sent: Thursday, 11 October 2012, 17:33
Subject: Re: [GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

there are a few methods you can do this:

  1. Do an ajax request for all metadata with an attachment and then process the result and display it with javascript
  2. Create a second service that is configured with a predefined search and create an xsl to display it. Then from your first page you can call that service for downloading the data.

For the first solution the query you probably want is:
http://tc-geocat0i.bgdi.admin.ch/geonetwork/srv/eng/q?fast=index&from=1&to=20&download=true

For the second solution you might be able to use the existing search:

http://localhost:8080/geonetwork/srv/eng/main.search.embedded?download=true&hitsPerPage=10&output=full

or implement your own.

You can look at the definition of main.search.embedded (in config-metadata.xml) for inspiration on how to do that.

Jesse

On Thu, Oct 11, 2012 at 2:04 PM, saher murad <sahermurad@anonymised.com> wrote:

All that is attached to metadata.
For example, when we go to the following link, the user is able to see list of all the Metadata

http://localhost:8080/geonetwork/srv/eng/main.search

Now i want to display list of all those metadata that has some downloadable data.


From: Jesse Eichar <jesse.eichar@anonymised.com89…>
To: Saher Murad <sahermurad@anonymised.com>
Cc: geonetwork-devel@lists.sourceforge.net

Sent: Thursday, 11 October 2012, 16:51

Subject: Re: [GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

On Thu, Oct 11, 2012 at 1:08 PM, Saher Murad <sahermurad@anonymised.com> wrote:

Hi Jesse,

After editing config.xml and adding services to user-profiles.xml, I’m able
to design a new user home page, please you also provide me some guidance
related to following question:

  1. When a user click on a ‘Downloads button’ - that i have set on home page
  • the user should be able to see the list of all downloadable data?

What data is downloadable? The metadata? the data attached to a metadata? All data that is attached to any metadata?

Jesse

THe url I gave you is the embedded url. It is intended to be embedded into another html page. If you want a standalone page use:

http://localhost:8080/geonetwork/srv/eng/main.search?download=true&hitsPerPage=10&output=full

Jesse

On Thu, Oct 11, 2012 at 3:46 PM, saher murad <sahermurad@anonymised.com> wrote:

Dear Jesse,

For the second method, i get the following message:
“This XML file does not appear to have any style information associated with it. The document tree is shown below”

What does it mean?


From: Jesse Eichar <jesse.eichar@anonymised.com…189…>

To: saher murad <sahermurad@anonymised.com>
Cc:geonetwork-devel@lists.sourceforge.net” <geonetwork-devel@lists.sourceforge.net>
Sent: Thursday, 11 October 2012, 17:33

Subject: Re: [GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

there are a few methods you can do this:

  1. Do an ajax request for all metadata with an attachment and then process the result and display it with javascript
  2. Create a second service that is configured with a predefined search and create an xsl to display it. Then from your first page you can call that service for downloading the data.

For the first solution the query you probably want is:
http://tc-geocat0i.bgdi.admin.ch/geonetwork/srv/eng/q?fast=index&from=1&to=20&download=true

For the second solution you might be able to use the existing search:

http://localhost:8080/geonetwork/srv/eng/main.search.embedded?download=true&hitsPerPage=10&output=full

or implement your own.

You can look at the definition of main.search.embedded (in config-metadata.xml) for inspiration on how to do that.

Jesse

On Thu, Oct 11, 2012 at 2:04 PM, saher murad <sahermurad@anonymised.com> wrote:

All that is attached to metadata.
For example, when we go to the following link, the user is able to see list of all the Metadata

http://localhost:8080/geonetwork/srv/eng/main.search

Now i want to display list of all those metadata that has some downloadable data.


From: Jesse Eichar <jesse.eichar@anonymised.com>
To: Saher Murad <sahermurad@anonymised.com>
Cc: geonetwork-devel@lists.sourceforge.net

Sent: Thursday, 11 October 2012, 16:51

Subject: Re: [GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

On Thu, Oct 11, 2012 at 1:08 PM, Saher Murad <sahermurad@anonymised.com> wrote:

Hi Jesse,

After editing config.xml and adding services to user-profiles.xml, I’m able
to design a new user home page, please you also provide me some guidance
related to following question:

  1. When a user click on a ‘Downloads button’ - that i have set on home page
  • the user should be able to see the list of all downloadable data?

What data is downloadable? The metadata? the data attached to a metadata? All data that is attached to any metadata?

Jesse

Dear Jesse,

For http://localhost:8080/geonetwork/srv/eng/main.search?download=true&hitsPerPage=10&output=full it show all metadata that is even those which has no downloadable data.

I have also tried to create new service in config.xml, which is as follow:

And a created new xsl file “download-all-data.xsl”

Please could you guide me what i have to do in “download-all-data.xsl”


From: Jesse Eichar jesse.eichar@anonymised.com
To: saher murad sahermurad@anonymised.com
Cc:geonetwork-devel@lists.sourceforge.netgeonetwork-devel@lists.sourceforge.net
Sent: Thursday, 11 October 2012, 19:05
Subject: Re: [GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

THe url I gave you is the embedded url. It is intended to be embedded into another html page. If you want a standalone page use:

http://localhost:8080/geonetwork/srv/eng/main.search?download=true&hitsPerPage=10&output=full

Jesse

On Thu, Oct 11, 2012 at 3:46 PM, saher murad <sahermurad@anonymised.com> wrote:

Dear Jesse,

For the second method, i get the following message:
“This XML file does not appear to have any style information associated with it. The document tree is shown below”

What does it mean?


From: Jesse Eichar <jesse.eichar@anonymised.com.189…>

To: saher murad <sahermurad@anonymised.com>
Cc:geonetwork-devel@anonymised.comourceforge.net” <geonetwork-devel@lists.sourceforge.net>
Sent: Thursday, 11 October 2012, 17:33

Subject: Re: [GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

there are a few methods you can do this:

  1. Do an ajax request for all metadata with an attachment and then process the result and display it with javascript
  2. Create a second service that is configured with a predefined search and create an xsl to display it. Then from your first page you can call that service for downloading the data.

For the first solution the query you probably want is:
http://tc-geocat0i.bgdi.admin.ch/geonetwork/srv/eng/q?fast=index&from=1&to=20&download=true

For the second solution you might be able to use the existing search:

http://localhost:8080/geonetwork/srv/eng/main.search.embedded?download=true&hitsPerPage=10&output=full

or implement your own.

You can look at the definition of main.search.embedded (in config-metadata.xml) for inspiration on how to do that.

Jesse

On Thu, Oct 11, 2012 at 2:04 PM, saher murad <sahermurad@anonymised.com> wrote:

All that is attached to metadata.
For example, when we go to the following link, the user is able to see list of all the Metadata

http://localhost:8080/geonetwork/srv/eng/main.search

Now i want to display list of all those metadata that has some downloadable data.


From: Jesse Eichar <jesse.eichar@anonymised.com89…>
To: Saher Murad <sahermurad@anonymised.com>
Cc: geonetwork-devel@lists.sourceforge.net

Sent: Thursday, 11 October 2012, 16:51

Subject: Re: [GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

On Thu, Oct 11, 2012 at 1:08 PM, Saher Murad <sahermurad@anonymised.com> wrote:

Hi Jesse,

After editing config.xml and adding services to user-profiles.xml, I’m able
to design a new user home page, please you also provide me some guidance
related to following question:

  1. When a user click on a ‘Downloads button’ - that i have set on home page
  • the user should be able to see the list of all downloadable data?

What data is downloadable? The metadata? the data attached to a metadata? All data that is attached to any metadata?

Jesse

you might have to check the code in that case. I tested against 2.8.x

On Thu, Oct 11, 2012 at 4:24 PM, saher murad <sahermurad@anonymised.com> wrote:

Dear Jesse,

For http://localhost:8080/geonetwork/srv/eng/main.search?download=true&hitsPerPage=10&output=full it show all metadata that is even those which has no downloadable data.

I have also tried to create new service in config.xml, which is as follow:

And a created new xsl file “download-all-data.xsl”

Please could you guide me what i have to do in “download-all-data.xsl”


From: Jesse Eichar <jesse.eichar@anonymised.com…189…>
To: saher murad <sahermurad@anonymised.com>
Cc:geonetwork-devel@lists.sourceforge.net” <geonetwork-devel@anonymised.comrge.net>

Sent: Thursday, 11 October 2012, 19:05

Subject: Re: [GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

THe url I gave you is the embedded url. It is intended to be embedded into another html page. If you want a standalone page use:

http://localhost:8080/geonetwork/srv/eng/main.search?download=true&hitsPerPage=10&output=full

Jesse

On Thu, Oct 11, 2012 at 3:46 PM, saher murad <sahermurad@anonymised.com> wrote:

Dear Jesse,

For the second method, i get the following message:
“This XML file does not appear to have any style information associated with it. The document tree is shown below”

What does it mean?


From: Jesse Eichar <jesse.eichar@anonymised.com>

To: saher murad <sahermurad@anonymised.com>
Cc:geonetwork-devel@lists.sourceforge.net” <geonetwork-devel@lists.sourceforge.net>
Sent: Thursday, 11 October 2012, 17:33

Subject: Re: [GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

there are a few methods you can do this:

  1. Do an ajax request for all metadata with an attachment and then process the result and display it with javascript
  2. Create a second service that is configured with a predefined search and create an xsl to display it. Then from your first page you can call that service for downloading the data.

For the first solution the query you probably want is:
http://tc-geocat0i.bgdi.admin.ch/geonetwork/srv/eng/q?fast=index&from=1&to=20&download=true

For the second solution you might be able to use the existing search:

http://localhost:8080/geonetwork/srv/eng/main.search.embedded?download=true&hitsPerPage=10&output=full

or implement your own.

You can look at the definition of main.search.embedded (in config-metadata.xml) for inspiration on how to do that.

Jesse

On Thu, Oct 11, 2012 at 2:04 PM, saher murad <sahermurad@anonymised.com> wrote:

All that is attached to metadata.
For example, when we go to the following link, the user is able to see list of all the Metadata

http://localhost:8080/geonetwork/srv/eng/main.search

Now i want to display list of all those metadata that has some downloadable data.


From: Jesse Eichar <jesse.eichar@anonymised.com>
To: Saher Murad <sahermurad@anonymised.com>
Cc: geonetwork-devel@lists.sourceforge.net

Sent: Thursday, 11 October 2012, 16:51

Subject: Re: [GeoNetwork-devel] How to cuztomize interface of Geonetwork 2.6.4?

On Thu, Oct 11, 2012 at 1:08 PM, Saher Murad <sahermurad@anonymised.com> wrote:

Hi Jesse,

After editing config.xml and adding services to user-profiles.xml, I’m able
to design a new user home page, please you also provide me some guidance
related to following question:

  1. When a user click on a ‘Downloads button’ - that i have set on home page
  • the user should be able to see the list of all downloadable data?

What data is downloadable? The metadata? the data attached to a metadata? All data that is attached to any metadata?

Jesse