Hi list
I am facing an issue using Xpath on an ElementName in a csw GetRecords query.
when using
csw:ElementName/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:descriptiveKeywords/gmd:MD_Keywords</csw:ElementName>
the response only contains the first Keyword (I have other I’m expecting to receive)
Trying to use : csw:ElementName//gmd:MD_Keywords</csw:ElementName>
does not solve the issue. It even removes the only Keyword I got back
I’m running a 2.6.0, could this be solved deploying a 2.6.4 (see http://trac.osgeo.org/geonetwork/ticket/492) ?
To reproduce, you can try
here : http://services.sandre.eaufrance.fr/geonetwork_CSW/srv/en/csw
this :
<csw:GetRecords xmlns:csw=“http://www.opengis.net/cat/csw/2.0.2” xmlns:gco=“http://www.isotc211.org/2005/gco” xmlns:gmd=“http://www.isotc211.org/2005/gmd” xmlns:gmx=“http://www.isotc211.org/2005/gmx” service=“CSW” version=“2.0.2” resultType=“results” startPosition=“1” maxRecords=“1” outputSchema=“csw:IsoRecord”>
<csw:Query typeNames=“csw:Record”>
csw:ElementName/gmd:MD_Metadata/gmd:fileIdentifier/</csw:ElementName>
csw:ElementName/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:citation/gmd:CI_Citation/gmd:title/</csw:ElementName>
csw:ElementName/gmd:MD_Metadata/gmd:identificationInfo/gmd:MD_DataIdentification/gmd:descriptiveKeywords/gmd:MD_Keywords</csw:ElementName>
csw:ElementName/gmd:MD_Metadata/gmd:dateStamp/</csw:ElementName>
<ogc:SortBy xmlns:ogc=“http://www.opengis.net/ogc”>
ogc:SortProperty
ogc:PropertyNamerelevance</ogc:PropertyName>
ogc:SortOrderD</ogc:SortOrder>
</ogc:SortProperty>
</ogc:SortBy>
<csw:Constraint version=“1.0.0”>
<ogc:Filter xmlns:ogc=“http://www.opengis.net/ogc”>
ogc:And
ogc:PropertyIsEqualTo
ogc:PropertyNameAnyText</ogc:PropertyName>
ogc:Literalmasses</ogc:Literal>
</ogc:PropertyIsEqualTo>
ogc:Intersects
ogc:PropertyNameows:BoundingBox</ogc:PropertyName>
<gml:Box xmlns:gml=“http://www.opengis.net/gml”>
<gml:coordinates decimal=“.” cs=“,” ts=" ">-180,-90 180,90</gml:coordinates>
</gml:Box>
</ogc:Intersects>
</ogc:And>
</ogc:Filter>
</csw:Constraint>
</csw:Query>
</csw:GetRecords>
Thanks
Sylvain