[GeoNetwork-devel] OpenSearch description document

Hi,

Could anyone please let me know if GeoNetwork (any version) supports retrieval of OpenSearch description document. I am planning to build a catalogue using GeoNetwork and would like to expose an OpenSearch endpoint interface so that my catalogue can be searched by anyone who has access to the endpoint. They can retrieve the OpenSearch description document from the endpoint and they can send query to the catalogue.

After going through user and developer manual, I am not able to find to how to make GeoNetwork expose the OpenSearch endpoint. In the end I want something like below. This URL returns OpenSearch description document.

https://scihub.esa.int/dhus/

Regards
Divya

I noticed that the URL to opensearch description document is no longer working. Here are another example:
http://grid-eo-catalog.esrin.esa.int/catalogue/gpod

I hope somebody could help me in understanding GeoNetwork’s capabilities to support OpenSearch endpoint.

regards

···

On Sun, Apr 24, 2016 at 6:26 PM, divzee Chandrashakher <divzeeblog@anonymised.com> wrote:

Hi,

Could anyone please let me know if GeoNetwork (any version) supports retrieval of OpenSearch description document. I am planning to build a catalogue using GeoNetwork and would like to expose an OpenSearch endpoint interface so that my catalogue can be searched by anyone who has access to the endpoint. They can retrieve the OpenSearch description document from the endpoint and they can send query to the catalogue.

After going through user and developer manual, I am not able to find to how to make GeoNetwork expose the OpenSearch endpoint. In the end I want something like below. This URL returns OpenSearch description document.

https://scihub.esa.int/dhus/

Regards
Divya

–

Divya C
www.dealbitte.com
Ideas for smart shopping

Hi,

For GeoNetwork 2.x (2.5.0 and above) it used to be here (recalling from 6 years ago):

http://www.fao.org/geonetwork/srv/en/portal.opensearch

Supporting text-suggest and geo extensions.

It had an auto-discover mechanism, so from GN’s home page you could add it to your browser’s search engines. Just tried on FireFox with FAO instance and still working.

In 3.0.4, the OpenSearchDescription document is no longer in the same location, so autodiscover mechanism breaks… don’t know if it’s just moved or has disappeared.

Regards,

Oscar.

···

–

Oscar Fonts
www.geomati.co

In fact, the description document is still there, also in GN 3.0.x:
http://SERVER:PORT/geonetwork/srv/eng/portal.opensearch

But it was failing on the server I tested… so ended up submitting a PR. :slight_smile:

Oscar.

···

2016-05-11 16:59 GMT+02:00 Oscar Fonts <oscar.fonts@anonymised.com>:

Hi,

For GeoNetwork 2.x (2.5.0 and above) it used to be here (recalling from 6 years ago):

http://www.fao.org/geonetwork/srv/en/portal.opensearch

Supporting text-suggest and geo extensions.

It had an auto-discover mechanism, so from GN’s home page you could add it to your browser’s search engines. Just tried on FireFox with FAO instance and still working.

In 3.0.4, the OpenSearchDescription document is no longer in the same location, so autodiscover mechanism breaks… don’t know if it’s just moved or has disappeared.

Regards,

Oscar.

–

Oscar Fonts
www.geomati.co

Thanks for the info. Somehow I couldn’t find this information in the user and developer manual (2.x).
Let me test also with the local installation. Thanks once again.

···

On Wed, May 11, 2016 at 5:17 PM, Oscar Fonts <oscar.fonts@anonymised.com> wrote:

In fact, the description document is still there, also in GN 3.0.x:
http://SERVER:PORT/geonetwork/srv/eng/portal.opensearch

But it was failing on the server I tested… so ended up submitting a PR. :slight_smile:

Oscar.

–

2016-05-11 16:59 GMT+02:00 Oscar Fonts <oscar.fonts@anonymised.com>:

Hi,

For GeoNetwork 2.x (2.5.0 and above) it used to be here (recalling from 6 years ago):

http://www.fao.org/geonetwork/srv/en/portal.opensearch

Supporting text-suggest and geo extensions.

It had an auto-discover mechanism, so from GN’s home page you could add it to your browser’s search engines. Just tried on FireFox with FAO instance and still working.

In 3.0.4, the OpenSearchDescription document is no longer in the same location, so autodiscover mechanism breaks… don’t know if it’s just moved or has disappeared.

Regards,

Oscar.

–

Oscar Fonts
www.geomati.co

Divya C
www.dealbitte.com
Ideas for smart shopping

Hi

Did you get the following error when trying to access OpenSearch endpoint in GN 3.0.x?

http://localhost:8080/geonetwork/srv/eng/portal.opensearch

{

  • error:

    {- message: “A sequence of more than one item is not allowed as the second argument of concat()”,

    • class: “XPathException”,

    • stack:

      {- at: “jeeves.config.springutil.JeevesDelegatingFilterProxy JeevesDelegatingFilterProxy.java line 64 #doFilter”
      },

    • request: { }
      }

}

regards

···

On Wed, May 11, 2016 at 5:21 PM, divzee Chandrashakher <divzeeblog@anonymised.com> wrote:

Thanks for the info. Somehow I couldn’t find this information in the user and developer manual (2.x).
Let me test also with the local installation. Thanks once again.

–

On Wed, May 11, 2016 at 5:17 PM, Oscar Fonts <oscar.fonts@anonymised.com> wrote:

In fact, the description document is still there, also in GN 3.0.x:
http://SERVER:PORT/geonetwork/srv/eng/portal.opensearch

But it was failing on the server I tested… so ended up submitting a PR. :slight_smile:

Oscar.

–

Divya C
www.dealbitte.com
Ideas for smart shopping

2016-05-11 16:59 GMT+02:00 Oscar Fonts <oscar.fonts@anonymised.com>:

Hi,

For GeoNetwork 2.x (2.5.0 and above) it used to be here (recalling from 6 years ago):

http://www.fao.org/geonetwork/srv/en/portal.opensearch

Supporting text-suggest and geo extensions.

It had an auto-discover mechanism, so from GN’s home page you could add it to your browser’s search engines. Just tried on FireFox with FAO instance and still working.

In 3.0.4, the OpenSearchDescription document is no longer in the same location, so autodiscover mechanism breaks… don’t know if it’s just moved or has disappeared.

Regards,

Oscar.

–

Oscar Fonts
www.geomati.co

Divya C
www.dealbitte.com
Ideas for smart shopping

Yes,

You have to patch xslt/services/rss/opensearch.xsl this way:

https://github.com/geonetwork/core-geonetwork/pull/1546/files

Oscar.

···

2016-05-15 22:42 GMT+02:00 divzee Chandrashakher <divzeeblog@anonymised.com>:

Hi

Did you get the following error when trying to access OpenSearch endpoint in GN 3.0.x?

http://localhost:8080/geonetwork/srv/eng/portal.opensearch

{

  • error:

    {- message: “A sequence of more than one item is not allowed as the second argument of concat()”,

    • class: “XPathException”,

    • stack:

      {- at: “jeeves.config.springutil.JeevesDelegatingFilterProxy JeevesDelegatingFilterProxy.java line 64 #doFilter”
      },

    • request: { }
      }

}

regards

–

Oscar Fonts
www.geomati.co