add opds example
This commit is contained in:
parent
7736d5596c
commit
10486b8cf6
8 changed files with 624 additions and 0 deletions
201
public/books/all/index.json
Normal file
201
public/books/all/index.json
Normal file
|
|
@ -0,0 +1,201 @@
|
|||
{
|
||||
"metadata": {
|
||||
"title": "All Publications"
|
||||
},
|
||||
"links": [
|
||||
{
|
||||
"rel": "self",
|
||||
"href": "http://localhost:3000/books/all/index.json",
|
||||
"type": "application/opds+json"
|
||||
}
|
||||
],
|
||||
"publications": [
|
||||
{
|
||||
"metadata": {
|
||||
"@type": "http://schema.org/Book",
|
||||
"title": "Friends of the Outside (direct)",
|
||||
"author": "Open Machine",
|
||||
"language": "en",
|
||||
"modified": "2023-07-28T00:00:00Z"
|
||||
},
|
||||
"links": [
|
||||
{
|
||||
"rel": "http://opds-spec.org/acquisition/open-access",
|
||||
"href": "http://localhost:3000/books/foto.epub",
|
||||
"type": "application/epub+zip"
|
||||
}
|
||||
],
|
||||
"images": [
|
||||
{
|
||||
"href": "http://localhost:3000/books/foto.jpg",
|
||||
"type": "image/jpeg",
|
||||
"height": 2048,
|
||||
"width": 1453
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"@type": "http://schema.org/Book",
|
||||
"title": "Friends of the Outside (indirect)",
|
||||
"author": "Open Machine",
|
||||
"language": "en",
|
||||
"modified": "2023-07-28T00:00:00Z"
|
||||
},
|
||||
"links": [
|
||||
{
|
||||
"rel": "http://opds-spec.org/acquisition/open-access",
|
||||
"href": "http://localhost:3000/foto",
|
||||
"type": "text/html",
|
||||
"properties": {
|
||||
"indirectAcquisition": [
|
||||
{
|
||||
"href": "http://localhost:3000/books/foto.epub",
|
||||
"type": "application/epub+zip"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"images": [
|
||||
{
|
||||
"href": "http://localhost:3000/books/foto.jpg",
|
||||
"type": "image/jpeg",
|
||||
"height": 2048,
|
||||
"width": 1453
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"@type": "http://schema.org/Book",
|
||||
"title": "Friends of the Outside (priced)",
|
||||
"author": "Open Machine",
|
||||
"language": "en",
|
||||
"modified": "2023-07-28T00:00:00Z"
|
||||
},
|
||||
"links": [
|
||||
{
|
||||
"rel": "http://opds-spec.org/acquisition/open-access",
|
||||
"href": "http://localhost:3000/foto",
|
||||
"type": "text/html",
|
||||
"properties": {
|
||||
"price": {
|
||||
"currency": "USD",
|
||||
"value": 4.99
|
||||
},
|
||||
"indirectAcquisition": [
|
||||
{
|
||||
"href": "http://localhost:3000/books/foto.epub",
|
||||
"type": "application/epub+zip"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"images": [
|
||||
{
|
||||
"href": "http://localhost:3000/books/foto.jpg",
|
||||
"type": "image/jpeg",
|
||||
"height": 2048,
|
||||
"width": 1453
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"@type": "http://schema.org/Book",
|
||||
"title": "The Inverted City (direct)",
|
||||
"author": "Open Machine",
|
||||
"language": "en",
|
||||
"modified": "2024-02-28T00:00:00Z"
|
||||
},
|
||||
"links": [
|
||||
{
|
||||
"rel": "http://opds-spec.org/acquisition/open-access",
|
||||
"href": "https://theopenmachine.net/assets/pdf/invertedCity_digital.pdf",
|
||||
"type": "application/pdf+zip"
|
||||
}
|
||||
],
|
||||
"images": [
|
||||
{
|
||||
"href": "http://localhost:3000/books/tic.jpg",
|
||||
"type": "image/jpeg",
|
||||
"height": 2321,
|
||||
"width": 1502
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"@type": "http://schema.org/Book",
|
||||
"title": "The Inverted City (indirect)",
|
||||
"author": "Open Machine",
|
||||
"language": "en",
|
||||
"modified": "2024-02-28T00:00:00Z"
|
||||
},
|
||||
"links": [
|
||||
{
|
||||
"rel": "http://opds-spec.org/acquisition/open-access",
|
||||
"href": "http://localhost:3000/tic",
|
||||
"type": "text/html",
|
||||
"properties": {
|
||||
"indirectAcquisition": [
|
||||
{
|
||||
"href": "http://localhost:3000/books/tic.epub",
|
||||
"type": "application/epub+zip"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
],
|
||||
"images": [
|
||||
{
|
||||
"href": "http://localhost:3000/books/tic.jpg",
|
||||
"type": "image/jpeg",
|
||||
"height": 2321,
|
||||
"width": 1502
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"@type": "http://schema.org/Book",
|
||||
"title": "Toward a Nomad Web (direct)",
|
||||
"author": "Open Machine",
|
||||
"language": "en",
|
||||
"modified": "2026-07-07T00:00:00Z"
|
||||
},
|
||||
"links": [
|
||||
{
|
||||
"rel": "http://opds-spec.org/acquisition/open-access",
|
||||
"href": "http://localhost:3000/books/tanw.epub",
|
||||
"type": "application/epub+zip"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"metadata": {
|
||||
"@type": "http://schema.org/Book",
|
||||
"title": "Toward a Nomad Web (indirect)",
|
||||
"author": "Open Machine",
|
||||
"language": "en",
|
||||
"modified": "2026-07-07T00:00:00Z"
|
||||
},
|
||||
"links": [
|
||||
{
|
||||
"rel": "http://opds-spec.org/acquisition/open-access",
|
||||
"href": "http://localhost:3000/books/tanw.epub",
|
||||
"properties": {
|
||||
"indirectAcquisition": [
|
||||
{
|
||||
"href": "http://localhost:3000/books/tanw.epub",
|
||||
"type": "application/epub+zip"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue