I'm trying to get a list of records from a GeoNetwork CSW, but I'm
getting some weird behaviour. A GetRecords request for the first 10
records gives me different responses each time. How am I supposed to
page through to get all the records if the ordering changes between
requests?! (See below) This doesn't happen with 5 other CSW servers
I've been working with, where the order is the same every time.
Of course I could increase the maxResults to get them all in one
request, but that is not a general solution for servers with large
numbers of records. The default and normal CSW way seems to be to get
10 at a time and as far as I can tell this is a bug in GeoNetworks.
David
$ curl -s 'http://scotgovsdi.edina.ac.uk/srv/en/csw?request=GetRecords&constraintLanguage=CQL_TEXT&typeNames=csw%3ARecord&resultType=results&startposition=1’
|grep dc:identifier
<dc:identifier>e4b8e08f-7314-4072-8fda-4b483ac51f6d</dc:identifier>
<dc:identifier>74af90a1-2871-45ef-92f1-c81c90a6bfd3</dc:identifier>
<dc:identifier>41999672-9d40-4269-b4cb-3befc98fea3c</dc:identifier>
<dc:identifier>d9f77d5c-6fc1-4307-ac12-49a4f6dd4696</dc:identifier>
<dc:identifier>ce258347-51f6-4b29-a9c6-170b468bd463</dc:identifier>
<dc:identifier>1106ed62-501b-4298-8718-d76e63e46ab1</dc:identifier>
<dc:identifier>fc784162-31cb-429b-a3c2-7ef99b466c62</dc:identifier>
<dc:identifier>c29059d5-48ee-4392-92bd-92c9b517ed13</dc:identifier>
<dc:identifier>e8544752-8d8e-4be4-8fad-68e7e70a90b8</dc:identifier>
<dc:identifier>3d64078a-3342-4386-99ba-0abb27e9dbaa</dc:identifier>
$ curl -s 'http://scotgovsdi.edina.ac.uk/srv/en/csw?request=GetRecords&constraintLanguage=CQL_TEXT&typeNames=csw%3ARecord&resultType=results&startposition=1’
|grep dc:identifier
<dc:identifier>41999672-9d40-4269-b4cb-3befc98fea3c</dc:identifier>
<dc:identifier>1106ed62-501b-4298-8718-d76e63e46ab1</dc:identifier>
<dc:identifier>78a01dba-d88d-4d19-a257-c96ab51155be</dc:identifier>
<dc:identifier>9d977a73-7884-4870-ae76-afccf8e6fae8</dc:identifier>
<dc:identifier>3d64078a-3342-4386-99ba-0abb27e9dbaa</dc:identifier>
<dc:identifier>b8130dd7-014d-40ae-ac82-878f48f86938</dc:identifier>
<dc:identifier>e4b8e08f-7314-4072-8fda-4b483ac51f6d</dc:identifier>
<dc:identifier>74af90a1-2871-45ef-92f1-c81c90a6bfd3</dc:identifier>
<dc:identifier>d9f77d5c-6fc1-4307-ac12-49a4f6dd4696</dc:identifier>
<dc:identifier>5c68fbb4-d220-4e07-97e8-230933e03774</dc:identifier>