From 48220744719ce8558790cceebc0656e65a2355a6 Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Thu, 19 Apr 2012 21:54:30 +0000 Subject: Add support for @InCollection svn:r394 --- BibTeX.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'BibTeX.py') diff --git a/BibTeX.py b/BibTeX.py index d58480f..bfe499e 100644 --- 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: -- cgit v1.2.3-70-g09d2