diff options
| author | Nick Mathewson <nickm@torproject.org> | 2012-04-19 21:54:30 +0000 |
|---|---|---|
| committer | Nick Mathewson <nickm@torproject.org> | 2012-04-19 21:54:30 +0000 |
| commit | 48220744719ce8558790cceebc0656e65a2355a6 (patch) | |
| tree | 8fe4ec99ed25c4b362ff18af53f272bb82f28d7b | |
| parent | e7250feed7046f5e4d45d6ee733e8a6209f3afb4 (diff) | |
| download | anonbib-48220744719ce8558790cceebc0656e65a2355a6.tar.gz | |
Add support for @InCollection
svn:r394
| -rw-r--r-- | BibTeX.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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: |
