Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Initial commit
  • Loading branch information
Klaus Thoden committed May 23, 2018
0 parents commit 0e15fc0
Show file tree
Hide file tree
Showing 8 changed files with 2,151 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
@@ -0,0 +1,5 @@
# OPDS for EOA

Examples downloaded from <http://www.feedbooks.com/opensearch.xml>, <http://www.feedbooks.com/store/selection.atom> and <http://www.feedbooks.com/catalog.atom>. A title feed was at http://www.feedbooks.com/item/2846030.atom

`textbooks.atom` was manually coded following above examples. It is currently active at http://www.edition-open-access.de/textbooks.atom and can be harvested by programs like [Readium2](https://github.com/readium/readium-desktop/releases).
34 changes: 34 additions & 0 deletions examples/2846030.atom
@@ -0,0 +1,34 @@
<?xml version="1.0" encoding="UTF-8"?>
<entry xmlns:dcterms="http://purl.org/dc/terms/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:schema="http://schema.org/" xmlns:opds="http://opds-spec.org/2010/catalog" xmlns="http://www.w3.org/2005/Atom" xmlns:thr="http://purl.org/syndication/thread/1.0">
<title>Driving by Starlight</title>
<id>http://www.feedbooks.com/item/2846030</id>
<dcterms:identifier xsi:type="dcterms:URI">urn:ISBN:9781250133434</dcterms:identifier>
<author>
<name>Anat Deracine</name>
<uri>http://www.feedbooks.com/search?query=contributor%3A%22Anat+Deracine%22</uri>
</author>
<published>2018-04-27T07:05:29Z</published>
<updated>2018-05-22T14:01:22Z</updated>
<dcterms:language>en</dcterms:language>
<dcterms:publisher>Henry Holt and Co. (BYR)</dcterms:publisher>
<dcterms:issued>2018-05-21</dcterms:issued>
<summary>In this debut YA friendship story set in Saudi Arabia, two girls navigate typical teen issues—crushes, college, family expectations, future hopes, and dreams.Sixteen-year-olds Leena and Mishie are best friends. They delight in small rebellions aga...</summary>
<category term="FBFIC000000" scheme="http://www.feedbooks.com/categories" label="Fiction"/>
<category term="FBJUV000000" scheme="http://www.feedbooks.com/categories" label="Juvenile &amp; Young Adult"/>
<category term="FBJUV010000N" scheme="http://www.feedbooks.com/categories" label="Novels"/>
<link type="text/html" title="View on Feedbooks" href="http://www.feedbooks.com/item/2846030" rel="alternate"/>
<link type="image/jpeg" href="http://covers.feedbooks.net/item/2846030.jpg?size=large&amp;t=1525133735" rel="http://opds-spec.org/image"/>
<link type="image/jpeg" href="http://covers.feedbooks.net/item/2846030.jpg?size=large&amp;t=1525133735" rel="http://opds-spec.org/image/thumbnail"/>
<content type="html">&lt;p&gt;&lt;b&gt;In this debut YA friendship story set in Saudi Arabia, two girls navigate typical teen issues—crushes, college, family expectations, future hopes, and dreams.&lt;/b&gt;Sixteen-year-olds Leena and Mishie are best friends. They delight in small rebellions against the Saudi cultural police—secret Western clothing, forbidden music, flirtations. But Leena wants college, independence—she wants a different life. Though her story is specific to her world (a world where it's illegal for women to drive, where a ten-year-old boy is the natural choice as guardian of a fatherless woman), ultimately it's a story about friendship, family, and freedom that transcends cultural differences. - GODWIN BOOKS -&lt;/p&gt;</content>
<link type="application/atom+xml;type=entry;profile=opds-catalog" href="http://www.feedbooks.com/item/2846030.atom" rel="self"/>
<link type="text/html" href="https://www.feedbooks.com/item/2846030/buy" rel="http://opds-spec.org/acquisition/buy">
<opds:price currencycode="EUR">8.50</opds:price>
<opds:indirectAcquisition type="application/vnd.adobe.adept+xml">
<opds:indirectAcquisition type="application/epub+zip"/>
</opds:indirectAcquisition>
</link>
<link type="application/epub+zip" href="http://www.feedbooks.com/item/2846030/preview" rel="http://opds-spec.org/acquisition/sample"/>
<link type="application/atom+xml;profile=opds-catalog;kind=navigation" title="Categories for this book" href="http://www.feedbooks.com/item/2846030/categories.atom" rel="related"/>
<link type="application/atom+xml;profile=opds-catalog;kind=acquisition" title="From the same collection" href="http://www.feedbooks.com/store/top.atom?collection=Henry+Holt+and+Co.+%28BYR%29&amp;lang=en" rel="related"/>
<link type="application/atom+xml;profile=opds-catalog;kind=acquisition" title="From the same publisher" href="http://www.feedbooks.com/store/top.atom?lang=en&amp;amp;publisher=Henry+Holt+and+Co.+%28BYR%29" rel="related"/>
</entry>
61 changes: 61 additions & 0 deletions examples/catalog.atom
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns:schema="http://schema.org/" xmlns:app="http://www.w3.org/2007/app" xmlns:opds="http://opds-spec.org/2010/catalog" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:thr="http://purl.org/syndication/thread/1.0" xmlns="http://www.w3.org/2005/Atom" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:odl="http://opds-spec.org/odl" xml:lang="en">
<id>http://www.feedbooks.com/catalog.atom</id>
<title>Feedbooks</title>
<updated>2018-05-23T08:22:17Z</updated>
<icon>http://assets2.feedbooks.net/images/favicon.ico?t=1526652313</icon>
<author>
<name>Feedbooks</name>
<uri>http://www.feedbooks.com</uri>
<email>support@feedbooks.zendesk.com</email>
</author>
<link type="application/atom+xml; profile=opds-catalog; kind=navigation" href="http://www.feedbooks.com/catalog.atom" rel="self"/>
<link type="application/atom+xml;profile=opds-catalog;kind=navigation" title="Home" href="http://www.feedbooks.com/catalog.atom" rel="start"/>
<link type="application/opensearchdescription+xml" title="Search on Feedbooks" href="http://www.feedbooks.com/opensearch.xml" rel="search"/>
<link type="application/atom+xml;profile=opds-catalog;kind=acquisition" title="Bookshelf" href="https://www.feedbooks.com/user/bookshelf.atom" rel="http://opds-spec.org/shelf"/>
<link type="application/atom+xml;profile=opds-catalog;kind=acquisition" title="New &amp; Noteworthy" href="http://www.feedbooks.com/featured.atom" rel="http://opds-spec.org/featured"/>
<link type="application/atom+xml;profile=opds-catalog;kind=acquisition" title="Best Sellers" href="http://www.feedbooks.com/store/top.atom" rel="http://opds-spec.org/sort/popular"/>
<link type="application/atom+xml;profile=opds-catalog;kind=acquisition" title="Public Domain Books" href="http://www.feedbooks.com/books/top.atom?range=month" rel="http://opds-spec.org/sort/popular"/>
<entry>
<title>Best Sellers</title>
<link type="application/atom+xml;profile=opds-catalog;kind=acquisition" href="http://www.feedbooks.com/store/top.atom" rel="http://opds-spec.org/sort/popular"/>
<updated>2018-05-23T08:22:17Z</updated>
<id>http://www.feedbooks.com/books/top.atom?range=week</id>
<content type="text">All categories</content>
</entry>
<entry>
<title>New Releases</title>
<link type="application/atom+xml;profile=opds-catalog;kind=acquisition" href="http://www.feedbooks.com/store/recent.atom" rel="http://opds-spec.org/sort/new"/>
<updated>2018-05-23T08:22:17Z</updated>
<id>http://www.feedbooks.com/books/recent.atom</id>
<content type="text">Freshly arrived on Feedbooks</content>
</entry>
<entry>
<title>Recommended Readings</title>
<link type="application/atom+xml;profile=opds-catalog;kind=acquisition" href="http://www.feedbooks.com/store/selection.atom" rel="subsection"/>
<updated>2018-05-23T08:22:17Z</updated>
<id>http://www.feedbooks.com/store/selection.atom</id>
<content type="text">Browse through our lists of recommended books</content>
</entry>
<entry>
<title>Fiction</title>
<id>http://www.feedbooks.com/store/categories/FBFIC000000.atom</id>
<link type="application/atom+xml;profile=opds-catalog;kind=navigation" href="http://www.feedbooks.com/store/categories/FBFIC000000.atom" rel="subsection"/>
<updated>2018-05-23T08:22:17Z</updated>
<content type="text">Literary, Science Fiction, Romance, Thrillers, Fantasy</content>
</entry>
<entry>
<title>Non-Fiction</title>
<id>http://www.feedbooks.com/store/categories/FBNFC000000.atom</id>
<link type="application/atom+xml;profile=opds-catalog;kind=navigation" href="http://www.feedbooks.com/store/categories/FBNFC000000.atom" rel="subsection"/>
<updated>2018-05-23T08:22:17Z</updated>
<content type="text">Biography &amp; autobiography, Travel, History, Health &amp; fitness, Philosophy</content>
</entry>
<entry>
<title>Free Books</title>
<link type="application/atom+xml;profile=opds-catalog;kind=navigation" href="http://www.feedbooks.com/publicdomain/catalog.atom" rel="subsection"/>
<updated>2018-05-23T08:22:17Z</updated>
<id>http://www.feedbooks.com/publicdomain/catalog.atom</id>
<content type="text">Free classics and CC-licensed books</content>
</entry>
</feed>
14 changes: 14 additions & 0 deletions examples/opensearch.xml
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<OpenSearchDescription xmlns="http://a9.com/-/spec/opensearch/1.1/">
<ShortName>Feedbooks</ShortName>
<Description>Search on Feedbooks</Description>
<InputEncoding>UTF-8</InputEncoding>
<OutputEncoding>UTF-8</OutputEncoding>
<Image type="image/x-icon" width="16" height="16">http://www.feedbooks.com/favicon.ico</Image>
<Url type="text/html" template="http://www.feedbooks.com/search?query={searchTerms}"/>
<Url type="application/atom+xml" template="http://www.feedbooks.com/search.atom?query={searchTerms}"/>
<Url type="application/atom+xml;profile=opds-catalog;kind=acquisition" template="http://www.feedbooks.com/search.atom?query={searchTerms}"/>
<Url type="application/x-suggestions+json" rel="suggestions" template="http://www.feedbooks.com/search.json?query={searchTerms}"/>
<Url type="application/x-suggestions+xml" rel="suggestions" template="http://www.feedbooks.com/suggest.xml?query={searchTerms}"/>
<Query role="example" searchTerms="robot" />
</OpenSearchDescription>

0 comments on commit 0e15fc0

Please sign in to comment.