def read_temp_bib(self): """Read content of temporary bibliography. """ path = self.wf.cachefile('temp_bibliography.html') bib = utils.read_path(path) text = self.export_formatted(bib) bib = self._bib_sort(text, '\n\n') utils.set_clipboard(bib) return self.zotquery.output_format
def read_temp_bib(wf): """Read content of temporary bibliography. """ path = wf.cachefile('temp_bibliography.html') bib = utils.read_path(path) text = export.export_formatted(bib) bib = export._bib_sort(text, '\n\n') utils.set_clipboard(bib) return zq.backend.output_format
def export(flag, uid, wf): """Use Zotero API to export formatted references. :returns: format of exported text :rtype: ``unicode`` """ # Retrieve HTML of item cites = get_export_html(flag, uid, wf) # Export text of item to clipboard text = export_formatted(cites, flag, wf) utils.set_clipboard(text.strip()) return zq.backend.output_format
def export_codepath(self): """Use Zotero API to export formatted references. :returns: status of export process :rtype: :class:`boolean` """ self.zotero_api = api(self.wf) # Retrieve HTML of item cites = self.get_export_html() # Export text of item to clipboard text = self.export_formatted(cites) utils.set_clipboard(text.strip()) return self.zotquery.output_format