Closed roomthily closed 9 years ago
In the MODAPS example, we have:
<Url type="text/html" xmlns:MODAPSParameters="http://modwebsrv.modaps.eosdis.nasa.gov/opensearchextensions/1.0/" template="http://modwebsrv.modaps.eosdis.nasa.gov/axis2/services/MODAPSservices/getOpenSearch?products={MODAPSParameters:products}&collection={MODAPSParameters:collection?}&start={time:start}&stop={time:stop}&bbox={geo:box}&coordsOrTiles={MODAPSParameters:coordsOrTiles?}&dayNightBoth={MODAPSParameters:dayNightBoth?}"/>
where all of the parameter definitions are wrapped in curly brackets but in a randomly selected OSDD, we have:
<?xml version="1.0" encoding="utf-8"?> <OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/"> <ShortName>CEOS</ShortName> <Description/> <InputEncoding>UTF-8</InputEncoding> <Image type="image/vnd.microsoft.icon" width="16" height="16" >http://www.ceos.org/templates/oceanwaves/favicon.ico</Image> <Url type="application/opensearchdescription+xml" rel="self" template="http://www.ceos.org/index.php?option=com_search&view=remind&format=opensearch"/> <Url type="text/html" template="http://www.ceos.org/index.php?option=com_search&searchword={searchTerms}"/> </OpenSearchDescription>
with one Url.template half correct and the other not correct. Point being, the endpoint extraction curently assumes it's the correct {param} structure and strips off the first and last chars no matter what.
See semantics-preprocessors opensearch processor: https://github.com/b-cube/semantics-preprocessing/commit/461aeb74e55d62a1c3a4408c461f03019c9dd62d
In the MODAPS example, we have:
where all of the parameter definitions are wrapped in curly brackets but in a randomly selected OSDD, we have:
with one Url.template half correct and the other not correct. Point being, the endpoint extraction curently assumes it's the correct {param} structure and strips off the first and last chars no matter what.