def generate_rest_bibliography(self): """Generate a bibliography of reST nodes.""" clusters = xciterst.cluster_tracker.get() bibdata = self.citeproc_process(clusters)[1] if not(bibdata): return html2rst("") else: return html2rst("%s%s%s"%(bibdata[0]["bibstart"], "".join(bibdata[1]), bibdata[0]["bibend"]))
def cache_citations(self): if (self.citations is None): clusters = xciterst.cluster_tracker.get() html = self.citeproc_process(clusters)[0] self.citations = [ html2rst(n) for n in html ]