def config_codepath(self): """Configure ZotQuery Workflow """ if self.flag == 'freshen': self.config_freshen() elif self.flag == 'api': self.zotero_api = api(self.wf) self.zotero_api.api_properties_setter() elif self.flag == 'prefs': self.zotquery.formatting_properties_setter() elif self.flag == 'all': self.zotero_api = api(self.wf) self.zotero_api.api_properties_setter() self.zotquery.formatting_properties_setter()
def append_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() # Append text of temp biblio self.append_item(cites) return self.zotquery.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
def __init__(self): self._backend = data(WF) self._web = api(WF) self._local = self._backend.zotero