2015-08-02 20:59:11 +02:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<feed xmlns="http://www.w3.org/2005/Atom">
|
|
|
|
<id>urn:uuid:2853dacf-ed79-42f5-8e8a-a7bb3d1ae6a2</id>
|
|
|
|
<link rel="self"
|
2017-01-09 19:10:39 +01:00
|
|
|
href="{{request.script_root + request.full_path}}"
|
2017-01-07 18:08:12 +01:00
|
|
|
type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>
|
2015-08-02 20:59:11 +02:00
|
|
|
<link rel="start"
|
|
|
|
href="{{url_for('feed_index')}}"
|
2017-01-07 18:08:12 +01:00
|
|
|
type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>
|
2015-08-02 20:59:11 +02:00
|
|
|
<link rel="up"
|
|
|
|
href="{{url_for('feed_index')}}"
|
2017-01-07 18:08:12 +01:00
|
|
|
type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>
|
2017-01-12 20:43:36 +01:00
|
|
|
{% if pagination.has_prev %}
|
2017-01-09 19:10:39 +01:00
|
|
|
<link rel="first"
|
|
|
|
href="{{request.script_root + request.path}}"
|
|
|
|
type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>
|
2017-01-12 20:43:36 +01:00
|
|
|
{% endif %}
|
2017-01-07 18:08:12 +01:00
|
|
|
{% if pagination.has_next %}
|
2016-11-09 19:24:33 +01:00
|
|
|
<link rel="next"
|
|
|
|
title="{{_('Next')}}"
|
2017-01-09 19:10:39 +01:00
|
|
|
href="{{ request.script_root + request.path }}?offset={{ pagination.next_offset }}"
|
|
|
|
type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>
|
|
|
|
{% endif %}
|
|
|
|
{% if pagination.has_prev %}
|
|
|
|
<link rel="previous"
|
|
|
|
href="{{request.script_root + request.path}}?offset={{ pagination.previous_offset }}"
|
2017-01-07 18:08:12 +01:00
|
|
|
type="application/atom+xml;profile=opds-catalog;type=feed;kind=navigation"/>
|
|
|
|
{% endif %}
|
2017-08-20 07:10:53 +02:00
|
|
|
<link title="{{_('Search')}}" type="application/atom+xml" href="{{url_for('feed_normal_search')}}?query={searchTerms}" rel="search"/>
|
2017-01-29 21:06:08 +01:00
|
|
|
<title>{{instance}}</title>
|
2015-08-02 20:59:11 +02:00
|
|
|
<author>
|
2017-01-29 21:06:08 +01:00
|
|
|
<name>{{instance}}</name>
|
2016-04-15 18:23:00 +02:00
|
|
|
<uri>https://github.com/janeczku/calibre-web</uri>
|
2015-08-02 20:59:11 +02:00
|
|
|
</author>
|
|
|
|
|
2017-03-19 17:32:49 +01:00
|
|
|
{% if entries and entries[0] %}
|
2015-08-02 20:59:11 +02:00
|
|
|
{% for entry in entries %}
|
|
|
|
<entry>
|
|
|
|
<title>{{entry.title}}</title>
|
|
|
|
<id>{{entry.uuid}}</id>
|
2018-05-26 17:21:20 +02:00
|
|
|
<updated>{{entry.atom_timestamp}}</updated>
|
2015-08-02 20:59:11 +02:00
|
|
|
<author>
|
|
|
|
<name>{{entry.authors[0].name}}</name>
|
|
|
|
</author>
|
|
|
|
<language>{{entry.language}}</language>
|
|
|
|
{% for tag in entry.tags %}
|
|
|
|
<category scheme="http://www.bisg.org/standards/bisac_subject/index.html"
|
|
|
|
term="{{tag.name}}"
|
|
|
|
label="{{tag.name}}"/>
|
|
|
|
{% endfor %}
|
2017-01-07 18:08:12 +01:00
|
|
|
{% if entry.comments[0] %}<summary>{{entry.comments[0].text|striptags}}</summary>{% endif %}
|
2015-08-02 20:59:11 +02:00
|
|
|
{% if entry.has_cover %}
|
2017-01-07 18:08:12 +01:00
|
|
|
<link type="image/jpeg" href="{{url_for('feed_get_cover', book_id=entry.id)}}" rel="http://opds-spec.org/image"/>
|
|
|
|
<link type="image/jpeg" href="{{url_for('feed_get_cover', book_id=entry.id)}}" rel="http://opds-spec.org/image/thumbnail"/>
|
2015-08-02 20:59:11 +02:00
|
|
|
{% endif %}
|
|
|
|
{% for format in entry.data %}
|
2017-04-02 10:05:07 +02:00
|
|
|
<link rel="http://opds-spec.org/acquisition" href="{{ url_for('get_opds_download_link', book_id=entry.id, book_format=format.format|lower)}}"
|
2018-05-26 17:21:20 +02:00
|
|
|
length="{{format.uncompressed_size}}" mtime="{{entry.atom_timestamp}}" type="{{format.format|lower|mimetype}}"/>
|
2015-08-02 20:59:11 +02:00
|
|
|
{% endfor %}
|
|
|
|
</entry>
|
|
|
|
{% endfor %}
|
2017-03-07 19:10:17 +01:00
|
|
|
{% endif %}
|
2017-02-03 13:20:35 +01:00
|
|
|
{% for entry in listelements %}
|
2016-11-09 19:24:33 +01:00
|
|
|
<entry>
|
|
|
|
<title>{{entry.name}}</title>
|
2017-04-02 10:05:07 +02:00
|
|
|
<id>{{ url_for(folder, book_id=entry.id) }}</id>
|
2017-10-01 17:16:57 +02:00
|
|
|
<link rel="subsection" type="application/atom+xml;profile=opds-catalog" href="{{url_for(folder, book_id=entry.id)}}"/>
|
2016-12-28 15:51:58 +01:00
|
|
|
</entry>
|
2016-11-09 19:24:33 +01:00
|
|
|
{% endfor %}
|
2015-08-02 20:59:11 +02:00
|
|
|
</feed>
|