Commit c7e83c45 by Erik Hetzner

id -> citeid

parent e9046eba
......@@ -17,7 +17,7 @@ class CitationInfo(object):
if self.suffix:
self.suffix = re.sub(r'\s+,', ',', self.suffix)
self.author_only = author_only
self.id = theid
self.citeid = theid
def __str__(self):
if self.suppress_author: suppress_str = "-"
......@@ -34,7 +34,7 @@ class CitationInfo(object):
"prefix" : self.prefix,
"suffix" : self.suffix,
"author_only" : self.author_only,
"id" : self.id}))
"id" : self.citeid}))
def __eq__(self, other):
return (isinstance(other, CitationInfo) and
......
......@@ -9,8 +9,8 @@ class ZoteroJSONEncoder(json.JSONEncoder):
# need to make a decision here at some point
if obj.citekey:
retval['easyKey'] = obj.citekey
elif obj.id:
retval['id'] = obj.id
elif obj.citeid:
retval['id'] = obj.citeid
if obj.prefix:
retval['prefix'] = "%s "%(obj.prefix) # ensure spaces in prefix, suffix
if obj.suffix:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment