CenterForOpenScience / SHARE

SHARE is building a free, open, data set about research and scholarly activities across their life cycle.
http://share-research.readthedocs.io/en/latest/index.html
Apache License 2.0
100 stars 58 forks source link

[SHARE-1008][Improvement] Add author to atom feed #729

Closed laurenbarker closed 6 years ago

laurenbarker commented 6 years ago

Purpose

Add authors to atom feed.

Changes

See "item_author_name" in https://docs.djangoproject.com/en/1.11/ref/contrib/syndication/#feed-class-reference. RSS doesn't support more than one author on the feed and it's really supposed to be an email.

Before:

<entry>
    <title>David's private project</title>
    <link href="http://localhost:8000/share/project/15038-C08-6B2" rel="alternate"/>
    <updated>2017-09-08T18:22:06+00:00</updated>
    <id>http://localhost:8000/share/project/15038-C08-6B2</id>
    <summary type="html"/>
    <category term="project"/>
</entry>
<entry>
    <title>Hello</title>
    <link href="http://localhost:8000/share/project/151AE-1EA-BC3" rel="alternate"/>
    <updated>2017-09-08T18:22:06+00:00</updated>
    <id>http://localhost:8000/share/project/151AE-1EA-BC3</id>
    <summary type="html">fake preprint test thing</summary>
    <category term="project"/>
</entry>

After:

<entry>
    <title>David's private project</title>
    <link href="http://localhost:8000/share/project/15038-C08-6B2" rel="alternate"/>
    <updated>2017-09-08T18:22:06+00:00</updated>
    <author>
        <name>Rebecca Rosenblatt et al.</name>
    </author>
    <id>http://localhost:8000/share/project/15038-C08-6B2</id>
    <summary type="html"/>
    <category term="project"/>
</entry>
<entry>
    <title>Hello</title>
    <link href="http://localhost:8000/share/project/151AE-1EA-BC3" rel="alternate"/>
    <updated>2017-09-08T18:22:06+00:00</updated>
    <author>
        <name>Viola</name>
    </author>
    <id>http://localhost:8000/share/project/151AE-1EA-BC3</id>
    <summary type="html">fake preprint test thing</summary>
    <category term="project"/>
</entry>

QA Notes

The Feed Intent Viewer chrome extension can format the atom feed results for you so you can actually read them.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.1%) to 78.812% when pulling 6819b3a66e79ba8d6b962b8ff9b00c459526de6a on laurenbarker:improvement/SHARE-1008 into a2f0ed2b4de7ec3ba374be1df9a3cd38b4c3f972 on CenterForOpenScience:develop.

coveralls commented 6 years ago

Coverage Status

Coverage increased (+0.1%) to 78.816% when pulling d04a4c057bbfa31ff28ddbdb5e43fb65f0d2bb1a on laurenbarker:improvement/SHARE-1008 into a2f0ed2b4de7ec3ba374be1df9a3cd38b4c3f972 on CenterForOpenScience:develop.