Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
With the previous configuration there was no option to retrieve the DCAT-AP record in their own format.
Update
own
outputSchema to return the XML as it is in the database. It is not defined in the CSW spec and is a GeoNetwork specificoutputSchema
. There is no need to define brief, full and summary conversions when they are all the same.When a CSW request is made (GetRecords or GetRecordById) in one of the DCAT related output schema (added in geonetwork/core-geonetwork#7600) return the DCAT record as it is.
eg. http://localhost:8080/geonetwork/srv/fre/csw?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&ID=f7106a8f-7a63-4521-bfb7-8125c8601c9b&outputSchema=http://www.w3.org/ns/dcat%23 return the same as http://localhost:8080/geonetwork/srv/fre/csw?SERVICE=CSW&VERSION=2.0.2&REQUEST=GetRecordById&ID=f7106a8f-7a63-4521-bfb7-8125c8601c9b&outputSchema=own
This will allow harvesting of DCAT-AP records using CSW protocol.