From 5ea513a02fa1227f7594457b6d8a56cb65947b94 Mon Sep 17 00:00:00 2001 From: eric Date: Mon, 3 Aug 2015 17:06:41 -0400 Subject: [PATCH] updated should be last ebook creation --- api/opds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api/opds.py b/api/opds.py index 03a54d7b..8cf13d63 100644 --- a/api/opds.py +++ b/api/opds.py @@ -80,7 +80,7 @@ def work_node(work, facet=None): node.append(text_node('id', "{base}{url}".format(base=UNGLUEIT_URL,url=work.get_absolute_url()))) # updated -- using creation date - node.append(text_node('updated', work.created.isoformat())) + node.append(text_node('updated', work.first_ebook().created.isoformat())) # links for all ebooks ebooks=facet.filter_model("Ebook",work.ebooks()) if facet else work.ebooks() @@ -122,7 +122,7 @@ def work_node(work, facet=None): #Open Book Publishers if len(work.publishers()): for publisher in work.publishers(): - node.append(text_node("{http://purl.org/dc/terms/}issued", publisher.name.name)) + node.append(text_node("{http://purl.org/dc/terms/}publisher", publisher.name.name)) # language #en