From 0f3f918153fb1c2bf9e3c89bf1af9aeaba5677d8 Mon Sep 17 00:00:00 2001 From: Thore Schillmann Date: Sun, 22 May 2022 17:40:21 +0000 Subject: [PATCH 1/2] 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 %} From 2816a75c3ec58f8c322f7426a287d64947e607e1 Mon Sep 17 00:00:00 2001 From: Thore Schillmann Date: Thu, 9 Jun 2022 20:35:44 +0000 Subject: [PATCH 2/2] changed datetime format of published tag --- cps/templates/feed.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/templates/feed.xml b/cps/templates/feed.xml index c1e9f43d..d2114157 100644 --- a/cps/templates/feed.xml +++ b/cps/templates/feed.xml @@ -53,7 +53,7 @@ {{entry.Books.publishers[0].name}} {% endif %} - {{entry.Books.pubdate}} + {{entry.Books.pubdate.strftime("%Y-%m-%dT%H:%M:%S+00:00")}} {% for lang in entry.Books.languages %} {{lang.lang_code}} {% endfor %}