Harvesting CSW (ISO) Geoserver not working with Geonetwork CSW
I have a problem Harvesting a Geoserver CSW Service from Geonetwork,
so to be sure i started fresh from scratch
Pasted the war a fresh Tomcat 9.0 webapps directory
geoserver-2.26.1-war
Stopped Geoserver from tomcat manager
Added this extensions
geoserver-2.26.1-metadata-plugin
geoserver-2.26.1-csw-plugin
geoserver-2.26.1-csw-iso-plugin
Added all files described in “INSPIRE metadata configuration using metadata and CSW”
Started Geoserver
In the browser i type (server url is not shown):
/geoserver/csw?request=GetRecords
&service=CSW
&version=2.0.2
&resultType=results
&outputFormat=application/xml
&startPosition=1
&maxRecords=20
&elementSetName=summary
&typeNames=gmd:MD_Metadata
&namespace=(can't add due post restrictions;
&outputSchema=http://www.isotc211.org/2005/gmd
And i get :
<csw:GetRecordsResponse version="2.0.2" xsi:schemaLocation=". . . omissis . . .">
<csw:SearchStatus timestamp="2024-11-27T14:16:48.341Z"/>
<csw:SearchResults numberOfRecordsMatched="0" numberOfRecordsReturned="0" nextRecord="0" recordSchema=". . . omissis . . ." elementSet="summary"/>
</csw:GetRecordsResponse>
Ok so far.
Then if i add a uuid in the sample “World rectangle” layer.
Then Save.
In i retry the above GetRecords i get :
<ows:ExceptionReport version="1.0.0" xsi:schemaLocation=". . . omissis . . .">
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>
javax.xml.transform.TransformerException: java.lang.RuntimeException: Can't get the id for a composite featurecollection; you need to identify the consituent collections
directly. java.lang.RuntimeException: Can't get the id for a composite featurecollection; you need to identify the consituent collections directly. Can't get the id
for a composite featurecollection; you need to identify the consituent collections directly.
</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
If i instead try with
&elementSetName=full
(instead of &elementSetName=summary)
I get the valid answer.
<csw:GetRecordsResponse version="2.0.2" xsi:schemaLocation=". . . omissis . . .">
<csw:SearchStatus timestamp="2024-11-27T14:21:56.896Z"/>
<csw:SearchResults numberOfRecordsMatched="1" numberOfRecordsReturned="1" nextRecord="0" recordSchema=". . . omissis . . ." elementSet="full">
<gmd:MD_Metadata>
<gmd:fileIdentifier>
<gco:CharacterString>7169c67d-a2e6-4084-8c76-5ddcbbdca696</gco:CharacterString>
</gmd:fileIdentifier>
. . . and so on . . .
The problems is the Geonetwork 4.4.6 CSW harvesting uses “&elementSetName=summary” and i can’t find a way to work around.
What’s wrong and what can i do about it ?
Thank you, best regards