Commit dc38d646 authored by Erik Hetzner's avatar Erik Hetzner

remove unused reset method; fix pelican processing

parent a85f8029
......@@ -107,17 +107,11 @@ class ZoteroConnection(xciterst.CiteprocWrapper):
self.local_items = json.load(open(path))
self.methods.registerLocalItems(self.prefix_items(self.local_items));
def reset(style=None):
def init(style=None):
if style is None: style = DEFAULT_CITATION_STYLE
xciterst.cluster_tracker = xciterst.ClusterTracker()
xciterst.citekeymap = zot4rst.ZoteroCitekeyMapper(xciterst.citeproc, None)
if xciterst.citeproc is None:
xciterst.citeproc = ZoteroConnection(style)
def init(style=None):
if style is None: style = DEFAULT_CITATION_STYLE
xciterst.citeproc = zot4rst.ZoteroConnection(style)
reset(style)
xciterst.citeproc = ZoteroConnection(style)
class ZoteroSetupDirective(docutils.parsers.rst.Directive):
def __init__(self, *args, **kwargs):
......
......@@ -10,4 +10,4 @@ def setup_zotero(generator):
zot4rst.init(generator.settings.get('CITATION_STYLE', zot4rst.DEFAULT_CITATION_STYLE))
def article_setup_zotero(generator):
zot4rst.reset()
zot4rst.init(generator.settings.get('CITATION_STYLE', zot4rst.DEFAULT_CITATION_STYLE))
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