Issue with description URL
Opened this issue · 0 comments
bunnis commented
using pycsw opensearch 1.10.3, if description URL does no contain startIndex, getting results gets looped at
for result in results:
File "build/bdist.linux-x86_64/egg/opensearch/results.py", line 37, in next
File "build/bdist.linux-x86_64/egg/opensearch/results.py", line 88, in _get_next_query
File "build/bdist.linux-x86_64/egg/opensearch/query.py", line 50, in has_macro
KeyboardInterrupt
example description url: http://100.100.0.200/csw?mode=opensearch&service=CSW&version=2.0.2&request=GetCapabilities
result from description url:
<!-- pycsw 1.10.3 -->
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>pycsw Geospatial Catalogue</ShortName>
<LongName>pycsw Geospatial Catalogue</LongName>
<Description>
pycsw is an OGC CSW server implementation written in Python
</Description>
<Tags>catalogue discovery metadata</Tags>
<Url type="application/atom+xml" method="get" template="http://100.100.0.200/csw?mode=opensearch&service=CSW&version=2.0.2&request=GetRecords&elementsetname=full&typenames=csw:Record&resulttype=results&q={searchTerms?}&bbox={geo:box?}&time={time:start?}/{time:end?}"/>
<Image type="image/vnd.microsoft.icon" width="16" height="16">http://pycsw.org/img/favicon.ico</Image>
<Developer>Lastname, Firstname</Developer>
<Contact>Email Address</Contact>
<Attribution>Organization Name</Attribution>
</OpenSearchDescription>