Merged in [12338] from rjsparks@nostrum.com:

Modified the RFC feed to better support digital preservation.

    Fix an issue with the agenda linking to group type \'other\' slides. Will patch production.
 - Legacy-Id: 12346
Note: SVN reference [12338] has been migrated to Git commit ab96f6c89c
This commit is contained in:
Henrik Levkowetz 2016-11-14 05:25:01 +00:00
commit f1210381ad
2 changed files with 3 additions and 4 deletions

View file

@ -120,10 +120,10 @@ class RfcFeed(Feed):
return [doc for doc,time in results]
def item_title(self, item):
return item.canonical_name()
return "%s : %s" % (item.canonical_name(),item.title)
def item_description(self, item):
return item.title
return item.abstract
def item_link(self, item):
return "https://rfc-editor.org/info/%s"%item.canonical_name()
@ -133,7 +133,6 @@ class RfcFeed(Feed):
def item_extra_kwargs(self, item):
extra = super(RfcFeed, self).item_extra_kwargs(item)
extra.update({'dcterms_abstract': item.abstract})
extra.update({'dcterms_accessRights': 'gratis'})
extra.update({'dcterms_format': 'text/html'})
extra.update({'media_content': {'url': 'https://rfc-editor.org/rfc/%s.txt' % item.canonical_name(),

View file

@ -208,7 +208,7 @@
<span class="hidden-xs">
{% if item.timeslot.type.slug == 'other' %}
{% for slide in item.session.slides %}
<a href="https://www.ietf.org/proceedings/{{meeting_num}}/slides/{{ slide.external_url }}">{{ slide.title|clean_whitespace }}</a>
<a href="{{slide.get_absolute_url}}">{{ slide.title|clean_whitespace }}</a>
<br>
{% endfor %}
{% endif %}