From 0f3f918153fb1c2bf9e3c89bf1af9aeaba5677d8 Mon Sep 17 00:00:00 2001 From: Thore Schillmann Date: Sun, 22 May 2022 17:40:21 +0000 Subject: [PATCH] multiple authors and publication date in opds feed --- cps/templates/feed.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/cps/templates/feed.xml b/cps/templates/feed.xml index 940fb0da..c1e9f43d 100644 --- a/cps/templates/feed.xml +++ b/cps/templates/feed.xml @@ -43,16 +43,17 @@ {{entry.Books.title}} urn:uuid:{{entry.Books.uuid}} {{entry.Books.atom_timestamp}} - {% if entry.Books.authors.__len__() > 0 %} + {% for author in entry.Books.authors %} - {{entry.Books.authors[0].name}} + {{author.name}} - {% endif %} + {% endfor %} {% if entry.Books.publishers.__len__() > 0 %} {{entry.Books.publishers[0].name}} {% endif %} + {{entry.Books.pubdate}} {% for lang in entry.Books.languages %} {{lang.lang_code}} {% endfor %}