Open kalxas opened 2 years ago
Some more instructions: https://github.com/geonetwork/core-geonetwork/issues/1899
As a reference: https://en.wikipedia.org/wiki/Atom_(Web_standard)
Some examples of current deployment
ISO record: http://beta.geoportal.ypen.gr/geonetwork/srv/api/records/3c66ab4d-4c64-96df-9c0f-976dc9d0d00b/formatters/xml
OpenSearch endpoint: http://beta.geoportal.ypen.gr/geonetwork/srv/eng/portal.opensearch
Atom record (internal mode): http://beta.geoportal.ypen.gr/geonetwork/srv/atom/describe/dataset?spatial_dataset_identifier_code=http://nsdi.gov.gr/set/dataset/MINNENV/aqd-data
More references on OGC OpenSearch extensions:
https://www.ogc.org/standards/opensearchgeo https://www.ogc.org/standards/opensearch-eo
Folder created to store the custom atom files: http://beta.geoportal.ypen.gr/atom/
Steps:
TG Requirement 43: The OpenSearch description shall contain a 'Url' element that describes a template URL for the Get Spatial Data Set operation. This template shall accept the INSPIRE parameters 'crs', 'spatial_dataset_identifier_code', 'spatial_dataset_identifier_namespace' and the OpenSearch 'language' parameter. The 'Url' element shall have an attribute 'type' with a value corresponding to the media type of the result and an attribute 'rel' with the value 'results'.
OpenSearch description document for the tested service: url: http://beta.geoportal.ypen.gr/geonetwork/opensearch/eng/92f4ad89-eebc-4f59-a8d8-e4683130979c/OpenSearchDescription.xml
response: correct OpenSearch Description response
Try to get the dataset using the template from the OpenSearch response (Get Spatial Dataset Url): http://beta.geoportal.ypen.gr/geonetwork/opensearch/eng/download?spatial_dataset_identifier_code=aqddataatom&spatial_dataset_identifier_namespace=http://nsdi.gov.gr/set/dataset/MINNENV/&crs=http://www.opengis.net/def/crs/EPSG/0/4258&language=en
response: {"error": { "message": "Metadata not found" , "class": "MetadataNotFoundEx" , "request": {} } }
I notice that the attribute inspire_dls:crs is not set in the service atom feed, like the other two (inspire_dls:spatial_dataset_identifier_code and inspire_dls:spatial_dataset_identifier_namespace).
I checked the inspire_dls xsd here and I see that this attribute is
so I go back to the service feed and add this element
Need to set the port number on Service Settings
After the insertion of the port number in Admin console > Settings (port number=80), the test "OpesearchDescription > URI to itself" passed succesfully.
The "Get Spatial Dataset Operation" and "Describe Spatial Dataset Operation" still fail though.
The issue is reported upstream here https://github.com/geonetwork/core-geonetwork/issues/6086
Documentation: