commit 6d0f98e407790cce76920ffd47f221ed70e8e940
parent 1e09a800e037a667f5da60e86324b1dc5df25882
Author: Nick Mathewson <nickm@torproject.org>
Date: Thu, 19 Apr 2012 21:54:30 +0000
Add support for @InCollection
svn:r394
Diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/BibTeX.py b/BibTeX.py
@@ -364,6 +364,8 @@ class BibTeXEntry:
errs = []
if self.type == 'inproceedings':
fields = 'booktitle', 'year'
+ elif self.type == 'incollection':
+ fields = 'booktitle', 'year'
elif self.type == 'proceedings':
fields = 'booktitle', 'editor'
elif self.type == 'article':
@@ -413,7 +415,7 @@ class BibTeXEntry:
def biblio_to_html(self):
"""Return the HTML for the citation portion of entry."""
- if self.type == 'inproceedings':
+ if self.type in ('inproceedings', 'incollection'):
booktitle = self['booktitle']
bookurl = self.get('bookurl')
if bookurl: