aboutsummaryrefslogtreecommitdiffstats
path: root/BibTeX.py
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2012-04-19 21:54:30 +0000
committerNick Mathewson <nickm@torproject.org>2012-04-19 21:54:30 +0000
commit48220744719ce8558790cceebc0656e65a2355a6 (patch)
tree8fe4ec99ed25c4b362ff18af53f272bb82f28d7b /BibTeX.py
parente7250feed7046f5e4d45d6ee733e8a6209f3afb4 (diff)
downloadanonbib-48220744719ce8558790cceebc0656e65a2355a6.tar.gz
Add support for @InCollection
svn:r394
Diffstat (limited to 'BibTeX.py')
-rw-r--r--BibTeX.py4
1 files changed, 3 insertions, 1 deletions
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: