diff --git a/cps/templates/feed.xml b/cps/templates/feed.xml index b8c0a2bd..f2470958 100644 --- a/cps/templates/feed.xml +++ b/cps/templates/feed.xml @@ -1,5 +1,5 @@ - + urn:uuid:2853dacf-ed79-42f5-8e8a-a7bb3d1ae6a2 {{ current_time }} {% endif %} {% if entry.publishers.__len__() > 0 %} - + {{entry.publishers[0].name}} - + + {% endif %} + {% if entry.pubdate %} + {{entry.pubdate}} {% endif %} {% for lang in entry.languages %} - {{lang.lang_code}} + {{lang.lang_code}} {% endfor %} {% for tag in entry.tags %} {% endfor %} + {% for identifier in entry.identifiers %} + {{identifier.val}} + {% endfor %} {% if entry.comments[0] %}{{entry.comments[0].text|striptags}}{% endif %} {% if entry.has_cover %} @@ -68,7 +74,7 @@ {% endif %} {% for format in entry.data %} + length="{{format.uncompressed_size}}" type="{{format.format|lower|mimetype}}"/> {% endfor %} {% endfor %} diff --git a/cps/templates/index.xml b/cps/templates/index.xml index 6a69d732..4dd477d9 100644 --- a/cps/templates/index.xml +++ b/cps/templates/index.xml @@ -15,28 +15,28 @@ {{_('Hot Books')}} - + {{url_for('opds.feed_hot')}} {{ current_time }} {{_('Popular publications from this catalog based on Downloads.')}} {{_('Top Rated Books')}} - + {{url_for('opds.feed_best_rated')}} {{ current_time }} {{_('Popular publications from this catalog based on Rating.')}} {{_('Recently added Books')}} - + {{url_for('opds.feed_new')}} {{ current_time }} {{_('The latest Books')}} {{_('Random Books')}} - + {{url_for('opds.feed_discover')}} {{ current_time }} {{_('Show Random Books')}} @@ -44,57 +44,57 @@ {% if not current_user.is_anonymous %} {{_('Read Books')}} - + {{url_for('opds.feed_read_books')}} {{ current_time }} - {{_('Read Books')}} + {{_('Show Read Books')}} {{_('Unread Books')}} - + {{url_for('opds.feed_unread_books')}} {{ current_time }} - {{_('Unread Books')}} + {{_('Show Unread Books')}} {% endif %} {{_('Authors')}} - + {{url_for('opds.feed_authorindex')}} {{ current_time }} {{_('Books ordered by Author')}} {{_('Publishers')}} - + {{url_for('opds.feed_publisherindex')}} {{ current_time }} {{_('Books ordered by publisher')}} {{_('Categories')}} - + {{url_for('opds.feed_categoryindex')}} {{ current_time }} {{_('Books ordered by category')}} {{_('Series')}} - + {{url_for('opds.feed_seriesindex')}} {{ current_time }} {{_('Books ordered by series')}} {{_('Languages')}} - + {{url_for('opds.feed_languagesindex')}} {{ current_time }} {{_('Books ordered by Languages')}} {{_('Ratings')}} - + {{url_for('opds.feed_ratingindex')}} {{ current_time }} {{_('Books ordered by Rating')}} @@ -102,14 +102,14 @@ {{_('File formats')}} - + {{url_for('opds.feed_formatindex')}} {{ current_time }} {{_('Books ordered by file formats')}} {{_('Shelves')}} - + {{url_for('opds.feed_shelfindex')}} {{ current_time }} {{_('Books organized in shelves')}}