Ejemplo n.º 1
0
    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
Ejemplo n.º 2
0
    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
Ejemplo n.º 3
0
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
Ejemplo n.º 4
0
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
Ejemplo n.º 5
0
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
Ejemplo n.º 6
0
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
Ejemplo n.º 7
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
Ejemplo n.º 8
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