Skip to content
Browse files
publication_list: rename "presentation" to "slides".
  • Loading branch information
xuhdev committed Feb 28, 2017
1 parent 147b699 commit 0003d7cecb85239d9be318038747a59c96b64a29
Showing 1 changed file with 3 additions and 3 deletions.
@@ -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)
@@ -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>'

0 comments on commit 0003d7c

Please sign in to comment.