aboutsummaryrefslogtreecommitdiffstats
path: root/BibTeX.py
diff options
context:
space:
mode:
Diffstat (limited to 'BibTeX.py')
-rw-r--r--BibTeX.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/BibTeX.py b/BibTeX.py
index a1f45c7..a4ad624 100644
--- a/BibTeX.py
+++ b/BibTeX.py
@@ -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']))