-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
One more update to handle another case
- Loading branch information
1 parent
f234f88
commit adb1809
Showing
3 changed files
with
186 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"metadata": { | ||
"title": "Example listing publications" | ||
}, | ||
"links": [ | ||
{ | ||
"rel": "self", | ||
"href": "http://example.com/new", | ||
"type": "application/opds+json" | ||
} | ||
], | ||
"publications": [ | ||
{ | ||
"metadata": { | ||
"@type": "http://schema.org/Book", | ||
"title": { | ||
"fr": "Vingt mille lieues sous les mers", | ||
"en": "Twenty Thousand Leagues Under the Sea", | ||
"ja": "海底二万里" | ||
}, | ||
"description": "Adventures of Huckleberry Finn is a novel by Mark Twain, first published in the United Kingdom in December 1884 and in the United States in February 1885.", | ||
"http://palaceproject.io/terms/timeTracking": true, | ||
"author": [ | ||
{ | ||
"name": "Mark Twain", | ||
"identifier": "http://example.org/mark-twain" | ||
}, | ||
{ | ||
"name": "Samuel Langhorne Clemens" | ||
} | ||
], | ||
"identifier": "http://example.org/huckleberry-finn", | ||
"language": "this is a bad language code", | ||
"publisher": { | ||
"name": "Test Publisher" | ||
}, | ||
"published": "2014-09-28T00:00:00Z", | ||
"modified": "2015-09-29T17:00:00Z", | ||
"subject": [ | ||
{ | ||
"scheme": "http://schema.org/audience", | ||
"code": "juvenile-fiction", | ||
"name": "Juvenile Fiction", | ||
"links": [] | ||
} | ||
] | ||
}, | ||
"links": [ | ||
{ | ||
"type": "application/opds-publication+json", | ||
"rel": "http://opds-spec.org/acquisition/borrow", | ||
"href": "http://example.org/huckleberry-finn", | ||
"properties": { | ||
"availability": { | ||
"state": "available" | ||
}, | ||
"indirectAcquisition": [ | ||
{ | ||
"type": "application/vnd.adobe.adept+xml", | ||
"child": [ | ||
{ | ||
"type": "application/epub+zip" | ||
} | ||
] | ||
}, | ||
{ | ||
"type": "application/vnd.readium.lcp.license.v1.0+json", | ||
"child": [ | ||
{ | ||
"type": "application/epub+zip" | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"rel": "http://opds-spec.org/acquisition/sample", | ||
"type": "application/epub+zip", | ||
"href": "https://example.com/medias/e5/318061475b11cf8c8e3752da2a1cf68384d8bf.epub" | ||
} | ||
], | ||
"images": [ | ||
{ | ||
"href": "http://example.org/cover.jpg", | ||
"type": "image/jpeg", | ||
"height": 1400, | ||
"width": 800 | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters