Beispiel #1
0
    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()
Beispiel #2
0
    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()
Beispiel #3
0
    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
Beispiel #4
0
    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
Beispiel #5
0
    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
Beispiel #6
0
    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
Beispiel #7
0
 def __init__(self):
     self._backend = data(WF)
     self._web = api(WF)
     self._local = self._backend.zotero
Beispiel #8
0
 def __init__(self):
     self._backend = data(WF)
     self._web = api(WF)
     self._local = self._backend.zotero