#447: CSW GetRecords returns incorrect # of results returned
----------------------------+-----------------------------------------------
Reporter: heikki | Owner: geonetwork-devel@…
Type: defect | Status: new
Priority: major | Milestone: v2.7.0
Component: General | Version: v2.6.3
Keywords: csw getrecords |
----------------------------+-----------------------------------------------
To reproduce: in a clean GN 2.6.3 installation, with no metadata;
load all templates; load sample metadata; issue this GetRecords request:
{{{
<?xml version="1.0" encoding="UTF-8"?>
<csw:GetRecords
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
xmlns:ogc="http://www.opengis.net/ogc"
resultType="results"
service="CSW" version="2.0.2"
outputSchema="http://www.isotc211.org/2005/gmd">
<csw:Query typeNames="gmd:MD_Metadata" elementSet="summary">
</csw:Query>
</csw:GetRecords>
}}}
The response says:
{{{
<csw:SearchResults numberOfRecordsMatched="7" numberOfRecordsReturned="7"
elementSet="summary" nextRecord="0">
}}}
But there are only 4 <gmd:MD_Metadata> and 1 <MD_Metadata> really returned
in the response.
Possibly some of the sample metadata could not be transformed to ISO
format or so, but I think the numberOfRecordsReturned attribute should
reflect how many records are really returned.
--
Ticket URL: <http://trac.osgeo.org/geonetwork/ticket/447>
GeoNetwork opensource Developer website <http://sourceforge.net/projects/geonetwork/>
GeoNetwork opensource is a standards based, Free and Open Source catalog application to manage spatially referenced resources through the web. It provides powerful metadata editing and search functions as well as an embedded interactive web map viewer. This website contains information related to the development of the software.