Hi everyone,
Someone reported me a problem with search in COPS. The problem is specific to Moon+ Reader and FBReaderJ, Mantano is working fine.
I remember that search in FBReaderJ was working fine in May 2012. So one change has been make in FBReaderJ during the last 4 months (I already checked I didn't do any).
Let me explain how I handle OpenSearch :
* I add the
xmlns:opensearch in the feed
* I add a Link :
<link href="feed.php?page=8" type="application/opensearchdescription+xml" rel="search" title="Search here"/>
* And following this link there is :
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>My catalog</ShortName>
<InputEncoding>UTF-8</InputEncoding>
<OutputEncoding>UTF-8</OutputEncoding>
<Image type="image/x-icon" width="16" height="16">favicon.ico</Image>
<Url type="application/atom+xml" template="http://cops-demo.slucas.fr/feed.php?query={searchTerms}"/>
<Query role="example" searchTerms="robot"/>
</OpenSearchDescription>
This used to work fine and the only way I found to make it work is to do like
http://manybooks.net/opds/ or
http://www.smashwords.com/atom :
<link href="http://xxx.fr/feed.php?query={searchTerms}" type="application/atom+xml" rel="search" title="Search here"/>
But that seems to violate the OPDS spec (so the validator too).
I already sent a issue to the author of FBReaderJ and quickly checked his sources but it will take some time for me to understand the code.
My main question is : Is my new way ok with current specs ? with any future one ?
Thanks in advance.
Sébastien