''

@expose_api_anonymous
def citations(self, trans, history_id, **kwd):

    history = self.history_manager.get_accessible(self.decode_id(history_id), trans.user, current_history=trans.history)
    tool_ids = set([])
    for dataset in history.datasets:
        job = dataset.creating_job
        if (not job):
            continue
        tool_id = job.tool_id
        if (not tool_id):
            continue
        tool_ids.add(tool_id)
    return [citation.to_dict('bibtex') for citation in self.citations_manager.citations_for_tool_ids(tool_ids)]
