Skip to content

Commit

Permalink
publication_list: rename "presentation" to "slides".
Browse files Browse the repository at this point in the history
  • Loading branch information
xuhdev committed Feb 28, 2017
1 parent 147b699 commit 0003d7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions v7/publication_list/publication_list.py
Expand Up @@ -112,7 +112,7 @@ def run(self):
bibtex_fields = dict(entry.fields)
# Remove some fields for the publicly available BibTeX file since they are mostly only
# used by this plugin.
for field_to_remove in ('abstract', 'fulltext', 'presentation'):
for field_to_remove in ('abstract', 'fulltext', 'slides'):
if field_to_remove in bibtex_fields:
del bibtex_fields[field_to_remove]
bibtex_entry = Entry(entry.type, bibtex_fields, entry.persons)
Expand All @@ -127,8 +127,8 @@ def run(self):
if 'fulltext' in entry.fields: # the link to the full text, usually a link to the pdf file
extra_links += '[<a href="{}">full text</a>] '.format(entry.fields['fulltext'])

if 'presentation' in entry.fields: # the link to the presentation
extra_links += '[<a href="{}">presentation</a>] '.format(entry.fields['presentation'])
if 'slides' in entry.fields: # the link to the presentation slides
extra_links += '[<a href="{}">slides</a>] '.format(entry.fields['slides'])

if extra_links or detail_page_dir:
html += '<br>'
Expand Down

0 comments on commit 0003d7c

Please sign in to comment.