mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-25 17:40:31 +00:00
multiple authors and publication date in opds feed
This commit is contained in:
parent
790080f2a0
commit
0f3f918153
@ -43,16 +43,17 @@
|
|||||||
<title>{{entry.Books.title}}</title>
|
<title>{{entry.Books.title}}</title>
|
||||||
<id>urn:uuid:{{entry.Books.uuid}}</id>
|
<id>urn:uuid:{{entry.Books.uuid}}</id>
|
||||||
<updated>{{entry.Books.atom_timestamp}}</updated>
|
<updated>{{entry.Books.atom_timestamp}}</updated>
|
||||||
{% if entry.Books.authors.__len__() > 0 %}
|
{% for author in entry.Books.authors %}
|
||||||
<author>
|
<author>
|
||||||
<name>{{entry.Books.authors[0].name}}</name>
|
<name>{{author.name}}</name>
|
||||||
</author>
|
</author>
|
||||||
{% endif %}
|
{% endfor %}
|
||||||
{% if entry.Books.publishers.__len__() > 0 %}
|
{% if entry.Books.publishers.__len__() > 0 %}
|
||||||
<publisher>
|
<publisher>
|
||||||
<name>{{entry.Books.publishers[0].name}}</name>
|
<name>{{entry.Books.publishers[0].name}}</name>
|
||||||
</publisher>
|
</publisher>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<published>{{entry.Books.pubdate}}</published>
|
||||||
{% for lang in entry.Books.languages %}
|
{% for lang in entry.Books.languages %}
|
||||||
<dcterms:language>{{lang.lang_code}}</dcterms:language>
|
<dcterms:language>{{lang.lang_code}}</dcterms:language>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
Loading…
Reference in New Issue
Block a user