diff options
| author | Nick Mathewson <nickm@torproject.org> | 2007-11-29 20:31:54 +0000 |
|---|---|---|
| committer | Nick Mathewson <nickm@torproject.org> | 2007-11-29 20:31:54 +0000 |
| commit | 21ba3834984db6dd30556abdd17a2d866920f8cb (patch) | |
| tree | 7f51655836649638e7b15d27bdfb39b72538bdda /BibTeX.py | |
| parent | 452ea497fcdb9f23c4e640c30744206e385a4c3b (diff) | |
| download | anonbib-21ba3834984db6dd30556abdd17a2d866920f8cb.tar.gz | |
r16856@catbus: nickm | 2007-11-29 15:31:50 -0500
Make "location" a preferred synonym for "address."
svn:r260
Diffstat (limited to 'BibTeX.py')
| -rw-r--r-- | BibTeX.py | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -263,7 +263,7 @@ def sortEntriesByDate(entries): # List of fields that appear when we display the entries as BibTeX. DISPLAYED_FIELDS = [ 'title', 'author', 'journal', 'booktitle', 'school', 'institution', 'organization', 'volume', 'number', 'year', -'month', 'address', 'chapter', 'edition', 'pages', 'editor', +'month', 'address', 'location', 'chapter', 'edition', 'pages', 'editor', 'howpublished', 'key', 'publisher', 'type', 'note', 'series' ] class BibTeXEntry: @@ -419,7 +419,10 @@ class BibTeXEntry: if self.get("edition"): res.append(",") res.append(self['edition']) - if self.get("address"): + if self.get("location"): + res.append(", ") + res.append(self['location']) + elif self.get("address"): res.append(", ") res.append(self['address']) res.append(", %s %s" % (self.get('month',""), self['year'])) |
